egovamap 0.24.3 → 0.24.5

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.
@@ -1904,6 +1904,18 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
1904
1904
  that.agsToWKT = function (geometry, callback) {
1905
1905
  that.callMap('agsToWKT', geometry, callback);
1906
1906
  }
1907
+
1908
+ that.getZoomInfo = function(callback) {
1909
+ that.callMap('getZoomInfo', callback);
1910
+ }
1911
+
1912
+ that.zoomIn = function () {
1913
+ that.callMap('zoomIn');
1914
+ }
1915
+
1916
+ that.zoomOut = function () {
1917
+ that.callMap('zoomOut');
1918
+ }
1907
1919
  that.init();
1908
1920
  }
1909
1921
 
@@ -3957,6 +3957,9 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
3957
3957
  return;
3958
3958
  if (globeMap != null) {
3959
3959
  globeMap.zoomIn();
3960
+ }
3961
+ if (gisMap != null) {
3962
+ gisMap.zoomIn && gisMap.zoomIn();
3960
3963
  }
3961
3964
  };
3962
3965
  that.zoomOut = function() {
@@ -3964,6 +3967,9 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
3964
3967
  return;
3965
3968
  if (globeMap != null) {
3966
3969
  globeMap.zoomOut();
3970
+ }
3971
+ if (gisMap != null) {
3972
+ gisMap.zoomOut && gisMap.zoomOut();
3967
3973
  }
3968
3974
  };
3969
3975
 
@@ -4382,6 +4388,19 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
4382
4388
  that.geometryToWKT = function(geometry){
4383
4389
  return GeometryTrans.geometryToWKT(geometry)
4384
4390
  }
4391
+
4392
+ /**
4393
+ * 获取地图层级信息
4394
+ * @param {Function} callback 回调函数,返回地图的层级信息:[{ minZoom, maxZoom }]
4395
+ * @returns
4396
+ */
4397
+ that.getZoomInfo = function(callback) {
4398
+ if (scene == null) { return; }
4399
+ if (gisMap != null) {
4400
+ gisMap.getZoomInfo(callback);
4401
+ }
4402
+ }
4403
+
4385
4404
  that.initMap(containerID, callback, mapType, mapConfig);
4386
4405
 
4387
4406
  // EGovaBI(globeMap).bind(this)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.24.3",
3
+ "version": "0.24.5",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {