egovamap 0.15.10 → 0.15.11

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.
@@ -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
- scene.fire((msgPrefix + ":getMainSubTypeTree"), {args: [params, callback]}, parentScene, false);
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
- scene.fire((msgPrefix + ":getRegion"), {args: [params, callback]}, parentScene, false);
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: [params, callback]}, parentScene, false);
1860
+ scene.fire((msgPrefix + ":getMapConfig"), {args: [key, callback]}, parentScene, false);
1851
1861
  };
1852
1862
 
1853
1863
  that.init();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.15.10",
3
+ "version": "0.15.11",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {