egovamap 0.18.3 → 0.18.6

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.
@@ -148,7 +148,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
148
148
  font: {
149
149
  size: options.textStyle.fontSize + "px",
150
150
  weight: options.textStyle.fontWeight,
151
- family: options.textStyle.family || "microsoft-yahei"
151
+ family: options.textStyle.family || "microsoft-yahei-regular"
152
152
  }
153
153
  };
154
154
  }
@@ -190,7 +190,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
190
190
  font: {
191
191
  size: options.clusterStyle.fontSize + "px",
192
192
  weight: options.clusterStyle.fontWeight || "normal",
193
- family: options.clusterStyle.family || "microsoft-yahei"
193
+ family: options.clusterStyle.family || "microsoft-yahei-regular"
194
194
  }
195
195
  }
196
196
  };
@@ -693,6 +693,9 @@ var egovaBI = function(globeMap, gisMap, mapType){
693
693
  }
694
694
  }
695
695
  }
696
+ this.cancelHighlightedRegion=function(layerName){
697
+ globeMap.cancelHighlightedRegion(layerName);
698
+ }
696
699
  /*
697
700
  * @description:新参数格式的旧线接口,主要用来做中间层参数格式转换
698
701
  * @method showPolyline_BI
@@ -902,7 +905,8 @@ var egovaBI = function(globeMap, gisMap, mapType){
902
905
  minZoom: options.visiblitySetting.beginLevel,
903
906
  maxZoom: options.visiblitySetting.endLevel,
904
907
  layerId: options.layerName,
905
- comCallbak: callback
908
+ comCallbak: callback,
909
+ order: options.order
906
910
  // hLabelStyle: options.hLabelStyle, // 选中文字时效果,没用
907
911
  },
908
912
  options.layerName, // layerTag
@@ -923,7 +927,8 @@ var egovaBI = function(globeMap, gisMap, mapType){
923
927
  {
924
928
  minZoom: options.visiblitySetting.beginLevel,
925
929
  maxZoom: options.visiblitySetting.endLevel,
926
- layerId: options.layerName
930
+ layerId: options.layerName,
931
+ order: options.order
927
932
  // hLabelStyle: options.hLabelStyle, // 选中文字时效果,没用
928
933
  },
929
934
  options.layerName, // layerTag
@@ -949,7 +954,8 @@ var egovaBI = function(globeMap, gisMap, mapType){
949
954
  minZoom: options.visiblitySetting.beginLevel,
950
955
  maxZoom: options.visiblitySetting.endLevel,
951
956
  layerId: options.layerName,
952
- comCallbak: callback
957
+ comCallbak: callback,
958
+ order: options.order
953
959
  // hLabelStyle: options.hLabelStyle, // 选中文字时效果,没用
954
960
  },
955
961
  options.layerName, // layerTag
@@ -462,6 +462,26 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
462
462
  }
463
463
  scene.fire(msgPrefix + ":getAddressByXY", { args : [ x, y, searchStr, radius ] }, parentScene);
464
464
  }
465
+ that.getGaAddressByXY = function(x, y, options, callback) {
466
+ if (scene == null) return;
467
+ if(callback) {
468
+ that.removeEventBind("getGaAddressByXYCallback");
469
+ that.bindEvent("getGaAddressByXYCallback", function (evt) {
470
+ callback(evt.args);
471
+ });
472
+ }
473
+ scene.fire(msgPrefix + ":getGaAddressByXY", { args : [ x, y, options ] }, parentScene);
474
+ }
475
+ that.getGaStandardAddress = function(params, callback) {
476
+ if (scene == null) return;
477
+ if(callback) {
478
+ that.removeEventBind("getGaStandardAddressCallbackCallback");
479
+ that.bindEvent("getGaStandardAddressCallbackCallback", function (evt) {
480
+ callback(evt.args);
481
+ });
482
+ }
483
+ scene.fire(msgPrefix + ":getGaStandardAddress", { args : [ params ] }, parentScene);
484
+ }
465
485
  /* 根据坐标获取单元网格 */
466
486
  that.getCellNameByPosXY = function(x, y, gridType) {
467
487
  if (scene == null)
@@ -497,6 +497,13 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
497
497
  scene.remove(msgPrefix + ":" + msgId, parentScene, stopOnTop);
498
498
  }
499
499
 
500
+ /* 切换到平移工具 */
501
+ that.reorderLayer = function (id, order, options) {
502
+ if (scene == null)
503
+ return;
504
+ that.callMap('reorderLayer', id, order, options);
505
+ }
506
+
500
507
  /* 切换到平移工具 */
501
508
  that.panMap = function () {
502
509
  if (scene == null)
@@ -966,10 +973,10 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
966
973
  return;
967
974
  that.callMap('showMapLayers', layerTag, showLevel, mode, styles);
968
975
  }
969
- that.showWMSLayer = function (layerUsageID, IDs, keyField, geometry, where, layerName) {
976
+ that.showWMSLayer = function (layerUsageID, IDs, keyField, geometry, where, layerName, options) {
970
977
  if (scene == null)
971
978
  return;
972
- that.callMap('showWMSLayer', layerUsageID, IDs, keyField, geometry, where, layerName);
979
+ that.callMap('showWMSLayer', layerUsageID, IDs, keyField, geometry, where, layerName, options);
973
980
  }
974
981
  that.removeWMSLayerId = function (layerId, options) {
975
982
  if (scene == null)
@@ -1837,6 +1837,11 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
1837
1837
  if (scene == null)
1838
1838
  return;
1839
1839
  scene.fire((msgPrefix + ":regionOperation"), {args: [options, data]}, parentScene, false);
1840
+ };
1841
+ that.cancelHighlightedRegion = function(layerName){
1842
+ if (scene == null)
1843
+ return;
1844
+ scene.fire((msgPrefix + ":cancelHighlightedPrimitive"), {args: [layerName]}, parentScene, false);
1840
1845
  };
1841
1846
  that.activeLayer = function(layerName, options, filter){
1842
1847
  if (scene == null)
@@ -386,6 +386,14 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
386
386
 
387
387
  }
388
388
 
389
+ that.reorderLayer = function (id, order, options) {
390
+ if (scene == null)
391
+ return;
392
+ if (gisMap != null) {
393
+ gisMap.reorderLayer(id, order, options);
394
+ }
395
+ }
396
+
389
397
 
390
398
  /* 切换到平移工具 */
391
399
  that.panMap = function () {
@@ -573,7 +581,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
573
581
 
574
582
 
575
583
  /*添加WMS服务图层*/
576
- that.showWMSLayer = function (layerUsageID, IDs, keyField, geometry, where, layerName) {
584
+ that.showWMSLayer = function (layerUsageID, IDs, keyField, geometry, where, layerName, options) {
577
585
  if (scene == null)
578
586
  return;
579
587
  if (gisMap != null) {
@@ -964,7 +972,18 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
964
972
  gisMap.getAddressByXY.apply(this, arguments);
965
973
  }
966
974
  };
967
-
975
+ that.getGaAddressByXY = function (x, y, options, callback) {
976
+ if (scene == null) return;
977
+ if (gisMap != null) {
978
+ gisMap.getGaAddressByXY.apply(this, arguments);
979
+ }
980
+ };
981
+ that.getGaStandardAddress = function (params, callback) {
982
+ if (scene == null) return;
983
+ if (gisMap != null) {
984
+ gisMap.getGaStandardAddress.apply(this, arguments);
985
+ }
986
+ };
968
987
  /* 根据坐标获取单元网格 */
969
988
  that.getCellNameByPosXY = function (x, y, gridType) {
970
989
  if (scene == null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.18.3",
3
+ "version": "0.18.6",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {