Skip to content

Commit fcae409

Browse files
committed
fix openlayers dataflowlayer父类参数无效的bug
1 parent ee68e1c commit fcae409

File tree

5 files changed

+8
-18
lines changed

5 files changed

+8
-18
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: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59335,12 +59335,7 @@ var DataFlow = exports.DataFlow = function (_ol$source$Vector) {
5933559335

5933659336
var options = opt_options ? opt_options : {};
5933759337

59338-
var _this = _possibleConstructorReturn(this, (DataFlow.__proto__ || Object.getPrototypeOf(DataFlow)).call(this, {
59339-
ws: options.ws,
59340-
geometry: options.geometry,
59341-
prjCoordSys: options.prjCoordSys,
59342-
excludeField: options.excludeField
59343-
}));
59338+
var _this = _possibleConstructorReturn(this, (DataFlow.__proto__ || Object.getPrototypeOf(DataFlow)).call(this, options));
5934459339

5934559340
_this.idField = options.idField || 'id';
5934659341
_this.dataService = new _DataFlowService.DataFlowService(options.ws, {
@@ -59415,7 +59410,7 @@ var DataFlow = exports.DataFlow = function (_ol$source$Vector) {
5941559410
}
5941659411
this.addFeature(feature);
5941759412
this.featureCache[geoID] = feature;
59418-
this.dispatchEvent({ type: "dataUpdated", value: { source: this, data: msg.featureResult } });
59413+
this.dispatchEvent({ type: "dataUpdated", value: { source: this, data: msg.value.featureResult } });
5941959414
}
5942059415
}]);
5942159416

@@ -91733,7 +91728,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
9173391728
/* 472 */
9173491729
/***/ (function(module, exports) {
9173591730

91736-
module.exports = {"_args":[["proj4@2.3.15","G:\\iClient9"]],"_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":"http://registry.npm.taobao.org/proj4/download/proj4-2.3.15.tgz","_spec":"2.3.15","_where":"G:\\iClient9","author":"","bugs":{"url":"https://github.com/proj4js/proj4js/issues"},"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"},"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"}
91731+
module.exports = {"_args":[["proj4@2.3.15","E:\\git\\iClient9"]],"_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":"http://registry.npm.taobao.org/proj4/download/proj4-2.3.15.tgz","_spec":"2.3.15","_where":"E:\\git\\iClient9","author":"","bugs":{"url":"https://github.com/proj4js/proj4js/issues"},"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"},"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"}
9173791732

9173891733
/***/ }),
9173991734
/* 473 */

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/DataFlow.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ export class DataFlow extends ol.source.Vector {
1111

1212
constructor(opt_options) {
1313
var options = opt_options ? opt_options : {};
14-
super({
15-
ws: options.ws,
16-
geometry: options.geometry,
17-
prjCoordSys: options.prjCoordSys,
18-
excludeField: options.excludeField
19-
});
14+
super(options);
2015
this.idField = options.idField || 'id';
2116
this.dataService = new DataFlowService(options.ws, {
2217
geometry: options.geometry,
@@ -78,7 +73,7 @@ export class DataFlow extends ol.source.Vector {
7873
}
7974
this.addFeature(feature);
8075
this.featureCache[geoID] = feature;
81-
this.dispatchEvent({type: "dataUpdated", value: {source: this, data: msg.featureResult}})
76+
this.dispatchEvent({type: "dataUpdated", value: {source: this, data: msg.value.featureResult}})
8277
}
8378
}
8479
ol.source.DataFlow = DataFlow;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy