Skip to content

Commit 83eb580

Browse files
author
caoxinke@supermap.com
committed
fix openlayers下mvt矢量瓦片示例不能选中的问题。
1 parent ae64168 commit 83eb580

File tree

5 files changed

+6
-107
lines changed

5 files changed

+6
-107
lines changed

dist/iclient9-openlayers.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-openlayers.js

Lines changed: 2 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -86031,7 +86031,7 @@ var VectorTileStyles = function (_ol$Observable) {
8603186031
value: function getFeatureStyle(feature) {
8603286032
var selectedStyle;
8603386033
var layerName = feature.getProperties().layerName || feature.getProperties().layer;
86034-
var id = feature.getProperties().id || feature.id_;
86034+
var id = feature.getProperties().id || parseInt(feature.getProperties().SmID);
8603586035
if (feature.getProperties().type && feature.getProperties().type.toUpperCase() === 'TEXT') {
8603686036
selectedStyle = _olDebug2.default.supermap.VectorTileStyles.getSelectedStyle(feature.getProperties().type.toUpperCase());
8603786037
if (feature.getProperties().texts) {
@@ -92030,108 +92030,7 @@ module.exports = whatwgFetch;
9203092030
/* 439 */
9203192031
/***/ (function(module, exports) {
9203292032

92033-
module.exports = {
92034-
"_from": "proj4@2.3.15",
92035-
"_id": "proj4@2.3.15",
92036-
"_inBundle": false,
92037-
"_integrity": "sha1-WtBui8owvg/6OJpJ5FZfUfBtCJ4=",
92038-
"_location": "/proj4",
92039-
"_phantomChildren": {},
92040-
"_requested": {
92041-
"type": "version",
92042-
"registry": true,
92043-
"raw": "proj4@2.3.15",
92044-
"name": "proj4",
92045-
"escapedName": "proj4",
92046-
"rawSpec": "2.3.15",
92047-
"saveSpec": null,
92048-
"fetchSpec": "2.3.15"
92049-
},
92050-
"_requiredBy": [
92051-
"/"
92052-
],
92053-
"_resolved": "http://registry.npm.taobao.org/proj4/download/proj4-2.3.15.tgz",
92054-
"_shasum": "5ad06e8bca30be0ffa389a49e4565f51f06d089e",
92055-
"_spec": "proj4@2.3.15",
92056-
"_where": "F:\\dev\\iClient",
92057-
"author": "",
92058-
"bugs": {
92059-
"url": "https://github.com/proj4js/proj4js/issues"
92060-
},
92061-
"bundleDependencies": false,
92062-
"contributors": [
92063-
{
92064-
"name": "Mike Adair",
92065-
"email": "madair@dmsolutions.ca"
92066-
},
92067-
{
92068-
"name": "Richard Greenwood",
92069-
"email": "rich@greenwoodmap.com"
92070-
},
92071-
{
92072-
"name": "Calvin Metcalf",
92073-
"email": "calvin.metcalf@gmail.com"
92074-
},
92075-
{
92076-
"name": "Richard Marsden",
92077-
"url": "http://www.winwaed.com"
92078-
},
92079-
{
92080-
"name": "T. Mittan"
92081-
},
92082-
{
92083-
"name": "D. Steinwand"
92084-
},
92085-
{
92086-
"name": "S. Nelson"
92087-
}
92088-
],
92089-
"dependencies": {
92090-
"mgrs": "~0.0.2"
92091-
},
92092-
"deprecated": false,
92093-
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",
92094-
"devDependencies": {
92095-
"browserify": "~12.0.1",
92096-
"chai": "~1.8.1",
92097-
"curl": "git://github.com/cujojs/curl.git",
92098-
"grunt": "~0.4.2",
92099-
"grunt-browserify": "~4.0.1",
92100-
"grunt-cli": "~0.1.13",
92101-
"grunt-contrib-connect": "~0.6.0",
92102-
"grunt-contrib-jshint": "~0.8.0",
92103-
"grunt-contrib-uglify": "~0.11.1",
92104-
"grunt-mocha-phantomjs": "~0.4.0",
92105-
"istanbul": "~0.2.4",
92106-
"mocha": "~1.17.1",
92107-
"tin": "~0.4.0"
92108-
},
92109-
"directories": {
92110-
"test": "test",
92111-
"doc": "docs"
92112-
},
92113-
"homepage": "https://github.com/proj4js/proj4js#readme",
92114-
"jam": {
92115-
"main": "dist/proj4.js",
92116-
"include": [
92117-
"dist/proj4.js",
92118-
"README.md",
92119-
"AUTHORS",
92120-
"LICENSE.md"
92121-
]
92122-
},
92123-
"license": "MIT",
92124-
"main": "lib/index.js",
92125-
"name": "proj4",
92126-
"repository": {
92127-
"type": "git",
92128-
"url": "git://github.com/proj4js/proj4js.git"
92129-
},
92130-
"scripts": {
92131-
"test": "./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"
92132-
},
92133-
"version": "2.3.15"
92134-
};
92033+
module.exports = {"_from":"proj4@2.3.15","_id":"proj4@2.3.15","_inBundle":false,"_integrity":"sha1-WtBui8owvg/6OJpJ5FZfUfBtCJ4=","_location":"/proj4","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"proj4@2.3.15","name":"proj4","escapedName":"proj4","rawSpec":"2.3.15","saveSpec":null,"fetchSpec":"2.3.15"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/proj4/-/proj4-2.3.15.tgz","_shasum":"5ad06e8bca30be0ffa389a49e4565f51f06d089e","_spec":"proj4@2.3.15","_where":"F:\\codes\\iClient9Copy\\iClient9","author":"","bugs":{"url":"https://github.com/proj4js/proj4js/issues"},"bundleDependencies":false,"contributors":[{"name":"Mike Adair","email":"madair@dmsolutions.ca"},{"name":"Richard Greenwood","email":"rich@greenwoodmap.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"},{"name":"Richard Marsden","url":"http://www.winwaed.com"},{"name":"T. Mittan"},{"name":"D. Steinwand"},{"name":"S. Nelson"}],"dependencies":{"mgrs":"~0.0.2"},"deprecated":false,"description":"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.","devDependencies":{"browserify":"~12.0.1","chai":"~1.8.1","curl":"git://github.com/cujojs/curl.git","grunt":"~0.4.2","grunt-browserify":"~4.0.1","grunt-cli":"~0.1.13","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-uglify":"~0.11.1","grunt-mocha-phantomjs":"~0.4.0","istanbul":"~0.2.4","mocha":"~1.17.1","tin":"~0.4.0"},"directories":{"test":"test","doc":"docs"},"homepage":"https://github.com/proj4js/proj4js#readme","jam":{"main":"dist/proj4.js","include":["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},"license":"MIT","main":"lib/index.js","name":"proj4","repository":{"type":"git","url":"git://github.com/proj4js/proj4js.git"},"scripts":{"test":"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},"version":"2.3.15"}
9213592034

9213692035
/***/ }),
9213792036
/* 440 */

dist/iclient9-openlayers.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openlayers/overlay/vectortile/VectorTileStyles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ export default class VectorTileStyles extends ol.Observable {
510510
getFeatureStyle(feature) {
511511
var selectedStyle;
512512
var layerName = feature.getProperties().layerName || feature.getProperties().layer;
513-
var id = feature.getProperties().id || feature.id_;
513+
var id = feature.getProperties().id || parseInt(feature.getProperties().SmID);
514514
if (feature.getProperties().type && feature.getProperties().type.toUpperCase() === 'TEXT') {
515515
selectedStyle = ol.supermap.VectorTileStyles.getSelectedStyle(feature.getProperties().type.toUpperCase());
516516
if (feature.getProperties().texts) {

0 commit comments

Comments
 (0)