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.
package/egovamap/egovaBI.js
CHANGED
|
@@ -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
|
|
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
|
}
|