Skip to content

Commit b8f7492

Browse files
committed
fix dataflow es6报错
1 parent 37ed3f6 commit b8f7492

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

dist/openlayers/iclient9-openlayers-es6.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63801,7 +63801,7 @@ var MapExtend = function () {
6380163801

6380263802
external_ol_default.a.Map.prototype.forEachFeatureAtPixel = function (pixel, callback, opt_options) {
6380363803

63804-
//如果满足高性能图层选取要求优先返回高性能图层选中结果
63804+
//如果满足高效率图层选取要求优先返回高效率图层选中结果
6380563805
const layerFilter = (opt_options && opt_options.layerFilter) ? opt_options.layerFilter : () => {
6380663806
return true;
6380763807
};
@@ -68404,12 +68404,11 @@ external_ol_default.a.supermap.WebMap = WebMap_WebMap;
6840468404
class services_DataFlowService_DataFlowService extends ServiceBase_ServiceBase {
6840568405

6840668406
constructor(url, options) {
68407-
super(url, options);
6840868407
options = options || {};
6840968408
if (options.projection) {
68410-
this.options.prjCoordSys = options.projection;
68409+
options.prjCoordSys = options.projection;
6841168410
}
68412-
ServiceBase_ServiceBase.call(this, url, options);
68411+
super(url, options);
6841368412
this.dataFlow = new DataFlowService_DataFlowService(url, options);
6841468413
this.dataFlow.events.on({
6841568414
"broadcastSocketConnected": this._defaultEvent,

dist/openlayers/iclient9-openlayers-es6.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.

dist/openlayers/iclient9-openlayers.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30371,13 +30371,13 @@ var DataFlowService = exports.DataFlowService = function (_ServiceBase) {
3037130371
function DataFlowService(url, options) {
3037230372
_classCallCheck(this, DataFlowService);
3037330373

30374-
var _this = _possibleConstructorReturn(this, (DataFlowService.__proto__ || Object.getPrototypeOf(DataFlowService)).call(this, url, options));
30375-
3037630374
options = options || {};
3037730375
if (options.projection) {
30378-
_this.options.prjCoordSys = options.projection;
30376+
options.prjCoordSys = options.projection;
3037930377
}
30380-
_ServiceBase2.ServiceBase.call(_this, url, options);
30378+
30379+
var _this = _possibleConstructorReturn(this, (DataFlowService.__proto__ || Object.getPrototypeOf(DataFlowService)).call(this, url, options));
30380+
3038130381
_this.dataFlow = new _iclientCommon.DataFlowService(url, options);
3038230382
_this.dataFlow.events.on({
3038330383
"broadcastSocketConnected": _this._defaultEvent,
@@ -33859,7 +33859,7 @@ var MapExtend = exports.MapExtend = function () {
3385933859

3386033860
_openlayers2.default.Map.prototype.forEachFeatureAtPixel = function (pixel, callback, opt_options) {
3386133861

33862-
//如果满足高性能图层选取要求优先返回高性能图层选中结果
33862+
//如果满足高效率图层选取要求优先返回高效率图层选中结果
3386333863
var layerFilter = opt_options && opt_options.layerFilter ? opt_options.layerFilter : function () {
3386433864
return true;
3386533865
};

dist/openlayers/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.

dist/openlayers/include-openlayers.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@
6767
inputScript("http://iclient.supermap.io/web/libs/deck.gl/5.1.3/deck.gl.js");
6868
}
6969
if (!inArray(excludes, 'iclient9-openlayers')) {
70-
if (supportES6()) {
71-
inputScript("../../dist/openlayers/iclient9-openlayers-es6.min.js");
72-
} else {
73-
inputScript("../../dist/openlayers/iclient9-openlayers.min.js");
70+
if (!inArray(excludes, 'iclient9-openlayers')) {
71+
if (supportES6()) {
72+
inputScript("../../dist/openlayers/iclient9-openlayers-es6.js");
73+
} else {
74+
inputScript("../../dist/openlayers/iclient9-openlayers.js");
75+
}
7476
}
7577
}
7678
if (!inArray(excludes, 'iclient9-openlayers-css')) {

src/openlayers/services/DataFlowService.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ import {DataFlowService as DataFlow} from '@supermap/iclient-common';
2525
export class DataFlowService extends ServiceBase {
2626

2727
constructor(url, options) {
28-
super(url, options);
2928
options = options || {};
3029
if (options.projection) {
31-
this.options.prjCoordSys = options.projection;
30+
options.prjCoordSys = options.projection;
3231
}
33-
ServiceBase.call(this, url, options);
32+
super(url, options);
3433
this.dataFlow = new DataFlow(url, options);
3534
this.dataFlow.events.on({
3635
"broadcastSocketConnected": this._defaultEvent,

0 commit comments

Comments
 (0)