egovamap 0.24.4 → 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.
- package/egovamap/egovagisviewer.js +4 -0
- package/egovamap/egovamap.js +13 -0
- package/package.json +1 -1
|
@@ -1905,6 +1905,10 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1905
1905
|
that.callMap('agsToWKT', geometry, callback);
|
|
1906
1906
|
}
|
|
1907
1907
|
|
|
1908
|
+
that.getZoomInfo = function(callback) {
|
|
1909
|
+
that.callMap('getZoomInfo', callback);
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1908
1912
|
that.zoomIn = function () {
|
|
1909
1913
|
that.callMap('zoomIn');
|
|
1910
1914
|
}
|
package/egovamap/egovamap.js
CHANGED
|
@@ -4388,6 +4388,19 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
4388
4388
|
that.geometryToWKT = function(geometry){
|
|
4389
4389
|
return GeometryTrans.geometryToWKT(geometry)
|
|
4390
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
|
+
|
|
4391
4404
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
4392
4405
|
|
|
4393
4406
|
// EGovaBI(globeMap).bind(this)();
|