egovamap 0.15.27 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/egovamap/egovagis.js +7 -0
- package/egovamap/egovagisviewer.js +3 -3
- package/egovamap/egovamap.js +10 -0
- package/package.json +1 -1
package/egovamap/egovagis.js
CHANGED
|
@@ -298,6 +298,13 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
298
298
|
scene.fire(msgPrefix + ":showWMSLayer", { args : [ layerUsageID, IDs, keyField, geometry, where ] }, parentScene, false);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
/*清除WMS服务图层*/
|
|
302
|
+
that.removeWMSLayer = function(serviceID) {
|
|
303
|
+
if (scene == null)
|
|
304
|
+
return;
|
|
305
|
+
scene.fire(msgPrefix + ":removeWMSLayer", { args : [ serviceID ] }, parentScene, false);
|
|
306
|
+
}
|
|
307
|
+
|
|
301
308
|
|
|
302
309
|
/*根据要素坐标定位显示要素*/
|
|
303
310
|
that.locateFeatureByCoords=function(geometries, type, ID, style, hStyle, zoom, keyFiled, labelField, labelStyle, randomColor, renderCanvas, singleSelected, options, layerTag){
|
|
@@ -93,7 +93,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
that.id = msgPrefix ? msgPrefix + "_emap" : 'emap';
|
|
96
|
-
that.gisDebug = getLocalStorageItem('gisDebug');
|
|
96
|
+
that.gisDebug = (getLocalStorageItem('gisDebug')=='true');
|
|
97
97
|
//that.gisMapContainer = $container.getElementsByClassName(id)[0];
|
|
98
98
|
//that.gisMapContainer = $container.find("#" + that.id)[0];
|
|
99
99
|
that.gisMapContainer = document.getElementById(that.id);
|
|
@@ -365,7 +365,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
365
365
|
that.globalCallback = function (callbackName, params) {
|
|
366
366
|
if (that.callbackList[callbackName]) {
|
|
367
367
|
var args = [{ args: params }];
|
|
368
|
-
console.log(callbackName);
|
|
368
|
+
that.gisDebug && console.log(callbackName);
|
|
369
369
|
that.callbackList[callbackName].apply(that, args);
|
|
370
370
|
} else {
|
|
371
371
|
that.fireCallback(callbackName, params);
|
|
@@ -391,7 +391,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
391
391
|
args.push(arguments[i]);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
console.log(funcName);
|
|
394
|
+
that.gisDebug && console.log(funcName);
|
|
395
395
|
return eMap[funcName].apply(eMap, args);
|
|
396
396
|
}
|
|
397
397
|
}
|
package/egovamap/egovamap.js
CHANGED
|
@@ -560,6 +560,16 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
+
|
|
564
|
+
/*清除WMS服务图层*/
|
|
565
|
+
that.removeWMSLayer = function (serviceID) {
|
|
566
|
+
if (scene == null)
|
|
567
|
+
return;
|
|
568
|
+
if (gisMap != null) {
|
|
569
|
+
gisMap.removeWMSLayer.apply(this, arguments);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
563
573
|
/* 清除指定图形 */
|
|
564
574
|
that.clearGraphic = function (id, tag) {
|
|
565
575
|
if (scene == null)
|