egovamap 0.15.9 → 0.15.10
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/egovaBI.js +8 -1
- package/egovamap/egovaglobe.js +15 -0
- package/egovamap/egovamap.js +9 -0
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -773,7 +773,14 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
773
773
|
}
|
|
774
774
|
} else {
|
|
775
775
|
var _data = JSON.parse(JSON.stringify(data[0]));
|
|
776
|
-
|
|
776
|
+
var newData = data[0];
|
|
777
|
+
if (newData && newData.geometry) {
|
|
778
|
+
_data = JSON.parse(JSON.stringify(data));
|
|
779
|
+
showGrid(data);
|
|
780
|
+
} else {
|
|
781
|
+
showGrid(data[0]);
|
|
782
|
+
}
|
|
783
|
+
|
|
777
784
|
var dbRequest = window.indexedDB.open('regionDB');
|
|
778
785
|
dbRequest.onsuccess = function() {
|
|
779
786
|
addStore(this.result.version);
|
package/egovamap/egovaglobe.js
CHANGED
|
@@ -1834,6 +1834,21 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
|
|
|
1834
1834
|
return;
|
|
1835
1835
|
scene.fire((msgPrefix + ":lineOperation"), {args: [options, data]}, parentScene, false);
|
|
1836
1836
|
};
|
|
1837
|
+
that.getMainSubTypeTree = function(params, callback){
|
|
1838
|
+
if (scene == null)
|
|
1839
|
+
return;
|
|
1840
|
+
scene.fire((msgPrefix + ":getMainSubTypeTree"), {args: [params, callback]}, parentScene, false);
|
|
1841
|
+
};
|
|
1842
|
+
that.getRegion = function(params, callback){
|
|
1843
|
+
if (scene == null)
|
|
1844
|
+
return;
|
|
1845
|
+
scene.fire((msgPrefix + ":getRegion"), {args: [params, callback]}, parentScene, false);
|
|
1846
|
+
};
|
|
1847
|
+
that.getMapConfig = function(key, callback){
|
|
1848
|
+
if (scene == null)
|
|
1849
|
+
return;
|
|
1850
|
+
scene.fire((msgPrefix + ":getMapConfig"), {args: [params, callback]}, parentScene, false);
|
|
1851
|
+
};
|
|
1837
1852
|
|
|
1838
1853
|
that.init();
|
|
1839
1854
|
};
|
package/egovamap/egovamap.js
CHANGED
|
@@ -3642,6 +3642,9 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
3642
3642
|
that.getMainSubTypeTree = function (params, callback) {
|
|
3643
3643
|
if (scene == null)
|
|
3644
3644
|
return;
|
|
3645
|
+
if(globeMap != null) {
|
|
3646
|
+
return globeMap.getMainSubTypeTree(params, callback);
|
|
3647
|
+
}
|
|
3645
3648
|
if (gisMap != null) {
|
|
3646
3649
|
gisMap.getMainSubTypeTree(params, callback);
|
|
3647
3650
|
}
|
|
@@ -3659,6 +3662,9 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
3659
3662
|
that.getRegion = function (params, callback) {
|
|
3660
3663
|
if (scene == null)
|
|
3661
3664
|
return;
|
|
3665
|
+
if(globeMap != null) {
|
|
3666
|
+
return globeMap.getRegion(params, callback);
|
|
3667
|
+
}
|
|
3662
3668
|
if (gisMap != null) {
|
|
3663
3669
|
gisMap.getRegion(params, callback);
|
|
3664
3670
|
}
|
|
@@ -3726,6 +3732,9 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
3726
3732
|
that.getMapConfig = function(key, callback){
|
|
3727
3733
|
if (scene == null)
|
|
3728
3734
|
return;
|
|
3735
|
+
if(globeMap != null) {
|
|
3736
|
+
return globeMap.getMapConfig(key, callback)
|
|
3737
|
+
}
|
|
3729
3738
|
if (gisMap != null) {
|
|
3730
3739
|
gisMap.getMapConfig.apply(this, arguments);
|
|
3731
3740
|
}
|