egovamap 0.16.6 → 0.16.7

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.
@@ -791,6 +791,14 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
791
791
  that.fireEvent("zoomToLevel", {args: [level, duration]}, false);
792
792
  }
793
793
 
794
+ /* 缩放到指定级别 */
795
+ that.zoomByRegionCode = function (regionCode, options, callback) {
796
+ if (scene == null)
797
+ return;
798
+
799
+ that.fireEvent("zoomByRegionCode", {args: [regionCode, options, callback]}, false);
800
+ }
801
+
794
802
  //三维场景按照中心点旋转,更方便查看
795
803
  that.rotateScene = function (heading, pitch, roll, duration, callback) {
796
804
  if (scene == null)
@@ -431,7 +431,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
431
431
  gisMap.zoomByRegionCode(regionCode, options, callback);
432
432
  }
433
433
  if(globeMap){
434
- //globeMap.zoomByRegionCode(regionCode, options, callback);
434
+ globeMap.zoomByRegionCode(regionCode, options, callback);
435
435
  }
436
436
  }
437
437
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.16.6",
3
+ "version": "0.16.7",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {