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.
@@ -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){
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.15.29",
3
+ "version": "0.16.0",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {