egovamap 0.32.1 → 0.32.3

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.
@@ -391,7 +391,7 @@ var egovaBI = function (globeMap, gisMap, mapType) {
391
391
  }
392
392
  };
393
393
 
394
- if (!options.usageID) {
394
+ if (!options.usageID && !options.phyLayerID) {
395
395
  drawData(layerName, positions, options);
396
396
  return;
397
397
  }
@@ -408,7 +408,7 @@ var egovaBI = function (globeMap, gisMap, mapType) {
408
408
  });
409
409
  };
410
410
  let queryParams = {
411
- layerID: options.usageID,
411
+ layerID: options.usageID || options.phyLayerID,
412
412
  outGeometry: true,
413
413
  };
414
414
  queryFeature(queryParams).then(function (resultData) {
@@ -2528,8 +2528,8 @@ var EGovaGISMap = function (
2528
2528
  that.callMap("destroyMap");
2529
2529
  };
2530
2530
 
2531
- that.switchGisMapType = function (type) {
2532
- that.callMap("switchGisMapType", type);
2531
+ that.switchGisMapType = function (type, callback) {
2532
+ that.callMap("switchGisMapType", type, callback);
2533
2533
  };
2534
2534
  that.startQueryWMSFeature = function (
2535
2535
  layerUsageID,
@@ -5259,6 +5259,13 @@ var EGovaMap = function (
5259
5259
  }
5260
5260
  };
5261
5261
 
5262
+ /* 切换底图 */
5263
+ that.switchGisMapType = function (type, callback) {
5264
+ if (scene == null) return;
5265
+ if (gisMap != null) {
5266
+ gisMap.switchGisMapType(type, callback);
5267
+ }
5268
+ };
5262
5269
  that.initMap(containerID, callback, mapType, mapConfig);
5263
5270
 
5264
5271
  // EGovaBI(globeMap).bind(this)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.32.1",
3
+ "version": "0.32.3",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {