egovamap 0.17.22 → 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.
@@ -607,7 +607,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
607
607
  that.getMultiPointBuffer = function(points, radius){
608
608
  if (scene == null)
609
609
  return;
610
- scene.fire((msgPrefix + ":getMultiPointBuffer"), {args: args}, parentScene, true);
610
+ scene.fire((msgPrefix + ":getMultiPointBuffer"), {args: [points, radius]}, parentScene, true);
611
611
 
612
612
  }
613
613
  /**
@@ -620,7 +620,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
620
620
  that.setGraphicStyle = function(id, tag, style){
621
621
  if (scene == null)
622
622
  return;
623
- scene.fire((msgPrefix + ":setGraphicStyle"), {args: args}, parentScene, true);
623
+ scene.fire((msgPrefix + ":setGraphicStyle"), {args: [id, tag, style]}, parentScene, true);
624
624
  }
625
625
  /* 显示监督员责任网格 */
626
626
  that.showPatrolDutygridCells = function(infoJson, zoom, clickCallback) {
@@ -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 () {
@@ -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) {
@@ -1839,14 +1847,14 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
1839
1847
  if (scene == null)
1840
1848
  return;
1841
1849
  if (gisMap != null)
1842
- gisMap.getMultiPointBuffer(this, arguments);
1850
+ gisMap.getMultiPointBuffer.apply(this, arguments);
1843
1851
  }
1844
1852
  that.setGraphicStyle = function(id, tag, style){
1845
1853
  if (scene == null){
1846
1854
  return;
1847
1855
  }
1848
1856
  if(gisMap!=null){
1849
- gisMap.setGraphicStyle(this, arguments);
1857
+ gisMap.setGraphicStyle.apply(this, arguments);
1850
1858
  }
1851
1859
  }
1852
1860
  /* 显示监督员责任网格 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.17.22",
3
+ "version": "0.17.25",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {