egovamap 0.17.11 → 0.17.12

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.
@@ -775,7 +775,12 @@ var egovaBI = function(globeMap, gisMap, mapType){
775
775
  * @date: 2021-11-26 09:49:16
776
776
  */
777
777
  this.activeLayer = function (layerName, options, filter) {
778
- globeMap.activeLayer(layerName, options, filter);
778
+ if (globeMap != null && mapType == "globe") {
779
+ globeMap.activeLayer(layerName, options, filter);
780
+ }
781
+ if (gisMap != null && mapType == "map") {
782
+ gisMap.activeLayer(layerName, options, filter);
783
+ }
779
784
  }
780
785
 
781
786
  function gridPolygon2dOperation(options, data) {
@@ -1847,6 +1847,9 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
1847
1847
  that.callMap('getLayerUsage', cb);
1848
1848
  }
1849
1849
 
1850
+ that.activeLayer = function(layerName, options, filter){
1851
+ that.callMap('activeLayer', layerName, options, filter);
1852
+ }
1850
1853
 
1851
1854
  that.init();
1852
1855
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.17.11",
3
+ "version": "0.17.12",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {