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.
- package/egovamap/egovaglobe.js +8 -0
- package/egovamap/egovamap.js +1 -1
- package/package.json +1 -1
package/egovamap/egovaglobe.js
CHANGED
|
@@ -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)
|
package/egovamap/egovamap.js
CHANGED
|
@@ -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
|
-
|
|
434
|
+
globeMap.zoomByRegionCode(regionCode, options, callback);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
|