egovamap 0.15.10 → 0.15.13
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/egovagis.js +3 -3
- package/egovamap/egovagisviewer.js +1 -1
- package/egovamap/egovaglobe.js +13 -3
- package/package.json +1 -1
package/egovamap/egovagis.js
CHANGED
|
@@ -516,9 +516,9 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
516
516
|
// 移除监听
|
|
517
517
|
var clickBackName = "showMultiObjectCurrentPositionClick";
|
|
518
518
|
var mouseOverBackName = "showMultiObjectCurrentPositionMouseover";
|
|
519
|
-
if(
|
|
520
|
-
clickBackName +=
|
|
521
|
-
mouseOverBackName +=
|
|
519
|
+
if(options&&options.callbacksuffix){
|
|
520
|
+
clickBackName += options.callbacksuffix;
|
|
521
|
+
mouseOverBackName += options.callbacksuffix;
|
|
522
522
|
}
|
|
523
523
|
that.removeEventBind(clickBackName);
|
|
524
524
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -1654,7 +1654,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1654
1654
|
/* 获取图层信息 */
|
|
1655
1655
|
that.getPhyLayerInfo = function (phyLayerID, callback) {
|
|
1656
1656
|
var cb = function (type, data) {
|
|
1657
|
-
if (callback && type == '
|
|
1657
|
+
if (callback && type == 'getPhyLayerInfoCallback') {
|
|
1658
1658
|
callback(data);
|
|
1659
1659
|
}
|
|
1660
1660
|
};
|
package/egovamap/egovaglobe.js
CHANGED
|
@@ -1837,17 +1837,27 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
|
|
|
1837
1837
|
that.getMainSubTypeTree = function(params, callback){
|
|
1838
1838
|
if (scene == null)
|
|
1839
1839
|
return;
|
|
1840
|
-
|
|
1840
|
+
var cb = function (type, data) {
|
|
1841
|
+
if (callback && type == 'getMainSubTypeTreeCallback') {
|
|
1842
|
+
callback(data);
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
1845
|
+
scene.fire((msgPrefix + ":getMainSubTypeTree"), {args: [params, cb]}, parentScene, false);
|
|
1841
1846
|
};
|
|
1842
1847
|
that.getRegion = function(params, callback){
|
|
1843
1848
|
if (scene == null)
|
|
1844
1849
|
return;
|
|
1845
|
-
|
|
1850
|
+
var cb = function (type, data) {
|
|
1851
|
+
if (callback && type == 'getRegionCallback') {
|
|
1852
|
+
callback(data);
|
|
1853
|
+
}
|
|
1854
|
+
};
|
|
1855
|
+
scene.fire((msgPrefix + ":getRegion"), {args: [params, cb]}, parentScene, false);
|
|
1846
1856
|
};
|
|
1847
1857
|
that.getMapConfig = function(key, callback){
|
|
1848
1858
|
if (scene == null)
|
|
1849
1859
|
return;
|
|
1850
|
-
scene.fire((msgPrefix + ":getMapConfig"), {args: [
|
|
1860
|
+
scene.fire((msgPrefix + ":getMapConfig"), {args: [key, callback]}, parentScene, false);
|
|
1851
1861
|
};
|
|
1852
1862
|
|
|
1853
1863
|
that.init();
|