File tree Expand file tree Collapse file tree 4 files changed +6
-35
lines changed Expand file tree Collapse file tree 4 files changed +6
-35
lines changed Original file line number Diff line number Diff line change @@ -33970,9 +33970,9 @@ var WebMap = function (_ol$Observable) {
33970
33970
}
33971
33971
me.createLayer(type, layerInfo);
33972
33972
}
33973
- me.dispatchEvent({ type: _olDebug2.default.supermap.WebMap.EventType.WEBMAPLOADEND, value: this.map });
33973
+ me.dispatchEvent({ type: _olDebug2.default.supermap.WebMap.EventType.WEBMAPLOADEND, value: this });
33974
33974
});
33975
- view.fit(options .extent);
33975
+ view.fit(viewOptions .extent);
33976
33976
}
33977
33977
}
33978
33978
}, {
@@ -33986,9 +33986,6 @@ var WebMap = function (_ol$Observable) {
33986
33986
* @param options -{Object} 创建图层所需参数
33987
33987
*/
33988
33988
value: function addLayer(layer, options) {
33989
- if (!this.map) {
33990
- this.createMap(options);
33991
- }
33992
33989
return this.map.addLayer(layer);
33993
33990
}
33994
33991
}, {
@@ -34014,18 +34011,6 @@ var WebMap = function (_ol$Observable) {
34014
34011
return 'EPSG:' + epsgCode;
34015
34012
}
34016
34013
34017
- /**
34018
- * @function ol.supermap.WebMap.prototype.createMap
34019
- * @description 创建地图
34020
- * @param options - {Object} 创建地图所需参数
34021
- */
34022
-
34023
- }, {
34024
- key: 'createMap',
34025
- value: function createMap(options) {
34026
- if (!this.map) {}
34027
- }
34028
-
34029
34014
/**
34030
34015
* @function ol.supermap.WebMap.prototype.getResolutionsFromScales
34031
34016
* @description 通过比例尺获取分辨率
Original file line number Diff line number Diff line change 52
52
inputScript ( "http://cdn.bootcss.com/elasticsearch/13.0.1/elasticsearch.min.js" ) ;
53
53
}
54
54
if ( ! inArray ( excludes , 'iclient9-leaflet' ) ) {
55
- inputScript ( "../../dist/iclient9-leaflet.js" ) ;
55
+ inputScript ( "../../dist/iclient9-leaflet.min. js" ) ;
56
56
}
57
57
if ( inArray ( includes , 'iclient9-leaflet-css' ) ) {
58
58
inputCSS ( "../../dist/iclient9-leaflet.min.css" ) ;
Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ export default class WebMap extends ol.Observable {
110
110
}
111
111
me . createLayer ( type , layerInfo ) ;
112
112
}
113
- me . dispatchEvent ( { type : ol . supermap . WebMap . EventType . WEBMAPLOADEND , value : this . map } ) ;
113
+ me . dispatchEvent ( { type : ol . supermap . WebMap . EventType . WEBMAPLOADEND , value : this } ) ;
114
114
} )
115
- view . fit ( options . extent ) ;
115
+ view . fit ( viewOptions . extent ) ;
116
116
117
117
}
118
118
@@ -126,9 +126,6 @@ export default class WebMap extends ol.Observable {
126
126
* @param options -{Object} 创建图层所需参数
127
127
*/
128
128
addLayer ( layer , options ) {
129
- if ( ! this . map ) {
130
- this . createMap ( options ) ;
131
- }
132
129
return this . map . addLayer ( layer ) ;
133
130
}
134
131
@@ -153,17 +150,6 @@ export default class WebMap extends ol.Observable {
153
150
return 'EPSG:' + epsgCode ;
154
151
}
155
152
156
- /**
157
- * @function ol.supermap.WebMap.prototype.createMap
158
- * @description 创建地图
159
- * @param options - {Object} 创建地图所需参数
160
- */
161
- createMap ( options ) {
162
- if ( ! this . map ) {
163
-
164
- }
165
- }
166
-
167
153
/**
168
154
* @function ol.supermap.WebMap.prototype.getResolutionsFromScales
169
155
* @description 通过比例尺获取分辨率
You can’t perform that action at this time.
0 commit comments