Skip to content

Commit 45f9785

Browse files
committed
修改openlayer的serviceBase下的option以及注释 reviewBy:zhurc
1 parent 36a7c67 commit 45f9785

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

dist/iclient9-openlayers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,8 @@ _olDebug2.default.supermap = _olDebug2.default.supermap || {};
16481648
* @class ol.supermap.ServiceBase
16491649
* @classdesc ol.supermap的服务基类。
16501650
* @param url - {string} 与客户端交互的服务地址。
1651-
* @param options - {Object} 参数。
1651+
* @param options - {Object} 参数。<br>
1652+
* serverType -{SuperMap.ServerType} 服务来源 iServer|iPortal|online <br>
16521653
* @extends ol.Observable{@linkdoc-openlayers/ol.Observable}
16531654
*/
16541655

@@ -1662,8 +1663,6 @@ var ServiceBase = function (_ol$Observable) {
16621663

16631664
_this.options = options || {};
16641665
_this.url = url;
1665-
//服务来源 iServer|iPortal|online
1666-
_this.options.serverType = options.serverType;
16671666
_this.dispatchEvent({ type: 'initialized', value: _this });
16681667
return _this;
16691668
}

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/services/ServiceBase.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ ol.supermap = ol.supermap || {};
55
* @class ol.supermap.ServiceBase
66
* @classdesc ol.supermap的服务基类。
77
* @param url - {string} 与客户端交互的服务地址。
8-
* @param options - {Object} 参数。
8+
* @param options - {Object} 参数。<br>
9+
* serverType -{SuperMap.ServerType} 服务来源 iServer|iPortal|online <br>
910
* @extends ol.Observable{@linkdoc-openlayers/ol.Observable}
1011
*/
1112
export default class ServiceBase extends ol.Observable {
1213
constructor(url, options) {
1314
super(url, options);
1415
this.options = options || {};
1516
this.url = url;
16-
//服务来源 iServer|iPortal|online
17-
this.options.serverType = options.serverType;
1817
this.dispatchEvent({type: 'initialized', value: this});
1918
}
2019
}

0 commit comments

Comments
 (0)