egovamap 0.17.10 → 0.17.13

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) {
@@ -815,6 +820,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
815
820
  {
816
821
  minZoom: options.visiblitySetting.beginLevel,
817
822
  maxZoom: options.visiblitySetting.endLevel,
823
+ layerId: options.layerName
818
824
  // hLabelStyle: options.hLabelStyle, // 选中文字时效果,没用
819
825
  },
820
826
  options.layerName, // layerTag
@@ -1387,7 +1387,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
1387
1387
  that.callMap('addBarChart', option);
1388
1388
  }
1389
1389
 
1390
- that.drawGeometry = function (type, style, clear, callback) {
1390
+ that.drawGeometry = function (type, style, clear, callback, options) {
1391
1391
  type = type || "point";
1392
1392
  style = style || {
1393
1393
  "type": "simple-line",
@@ -1401,26 +1401,9 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
1401
1401
  callback(data);
1402
1402
  }
1403
1403
  };
1404
- that.callMap('drawGeometry', type, style, clear, cb);
1404
+ that.callMap('drawGeometry', type, style, clear, cb, options);
1405
1405
  }
1406
-
1407
- that.drawGeometry = function (type, style, clear, callback) {
1408
- type = type || "point";
1409
- style = style || {
1410
- "type": "simple-line",
1411
- "style": "solid",
1412
- "color": [255, 0, 0, 255],
1413
- "width": 2
1414
- };
1415
-
1416
- var cb = function (type, data) {
1417
- if (callback && type == 'drawGeometryCallback') {
1418
- callback(data);
1419
- }
1420
- };
1421
- that.callMap('drawGeometry', type, style, clear, cb);
1422
- }
1423
-
1406
+
1424
1407
  /* 热力图*/
1425
1408
  that.addHeatMap = function (data, option) {
1426
1409
  that.callMap('addHeatMap', data, option);
@@ -1864,6 +1847,9 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
1864
1847
  that.callMap('getLayerUsage', cb);
1865
1848
  }
1866
1849
 
1850
+ that.activeLayer = function(layerName, options, filter){
1851
+ that.callMap('activeLayer', layerName, options, filter);
1852
+ }
1867
1853
 
1868
1854
  that.init();
1869
1855
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.17.10",
3
+ "version": "0.17.13",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {