egovamap 0.17.24 → 0.17.25
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.
|
@@ -971,6 +971,11 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
971
971
|
return;
|
|
972
972
|
that.callMap('showWMSLayer', layerUsageID, IDs, keyField, geometry, where, layerName);
|
|
973
973
|
}
|
|
974
|
+
that.removeWMSLayerId = function (layerId, options) {
|
|
975
|
+
if (scene == null)
|
|
976
|
+
return;
|
|
977
|
+
that.callMap('removeWMSLayerId', layerId, options);
|
|
978
|
+
}
|
|
974
979
|
|
|
975
980
|
/* 刷新图层目录树中图层 */
|
|
976
981
|
that.refreshMapLayers = function () {
|
package/egovamap/egovamap.js
CHANGED
|
@@ -590,6 +590,14 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
590
590
|
gisMap.removeWMSLayer.apply(this, arguments);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
+
/*清除WMS服务图层Id*/
|
|
594
|
+
that.removeWMSLayerId = function (layerId, options) {//{layerId:usageID|phylayerID
|
|
595
|
+
if (scene == null)
|
|
596
|
+
return;
|
|
597
|
+
if (gisMap != null) {
|
|
598
|
+
gisMap.removeWMSLayerId.apply(this, arguments);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
593
601
|
|
|
594
602
|
/* 清除指定图形 */
|
|
595
603
|
that.clearGraphic = function (id, tag) {
|