egovamap 0.15.7 → 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.
@@ -306,6 +306,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
306
306
  var drawParam = options.drawParam || {};
307
307
  var ctrOption = drawParam.clusterOption;
308
308
  var clusterOption = {
309
+ clusterType: ctrOption.clusterType,
309
310
  level: ctrOption.level || 0,
310
311
  style: {
311
312
  "type": "simple-marker",
@@ -322,7 +323,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
322
323
  "color": ctrOption.labelColor || [255, 255, 255, 1],
323
324
  "text": "",
324
325
  "zlevel": ctrOption.labelZlevel || 1,
325
- "yoffset": -4,
326
+ "yoffset": 0,
326
327
  "font": ctrOption.labelFont || {
327
328
  "family": "Arial",
328
329
  "size": 10
@@ -772,7 +773,14 @@ var egovaBI = function(globeMap, gisMap, mapType){
772
773
  }
773
774
  } else {
774
775
  var _data = JSON.parse(JSON.stringify(data[0]));
775
- showGrid(data[0]);
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
+
776
784
  var dbRequest = window.indexedDB.open('regionDB');
777
785
  dbRequest.onsuccess = function() {
778
786
  addStore(this.result.version);
@@ -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
  };
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.15.7",
3
+ "version": "0.15.10",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {