egovamap 0.15.29 → 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/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){
|
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)
|