egovamap 0.18.12 → 0.18.15
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 +7 -1
- package/egovamap/egovagis.js +6 -1
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -898,6 +898,12 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
|
+
var color = options.customColor ? interpolateColor(options.customColor[0], options.customColor[1], Math.min(geometries.length, 10)) : 10;
|
|
902
|
+
if(options.setFieldColor && options.layeredColor) {
|
|
903
|
+
var colorConfig = options.layeredColor(geometries);
|
|
904
|
+
geometries = colorConfig.data;
|
|
905
|
+
color = colorConfig.color;
|
|
906
|
+
}
|
|
901
907
|
gisMap.locateFeatureByCoords(geometries, 'polygon',
|
|
902
908
|
options.layerName, // id,如果已经有attributes就没用了
|
|
903
909
|
options.style, // style
|
|
@@ -906,7 +912,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
906
912
|
options.keyFieldName,
|
|
907
913
|
options.labelSetting.showLabel && options.labelFieldName, // keyField, labelField
|
|
908
914
|
options.labelStyle, // labelStyle
|
|
909
|
-
|
|
915
|
+
color,
|
|
910
916
|
false, // renderCanvas
|
|
911
917
|
true, // singleSelect
|
|
912
918
|
{
|
package/egovamap/egovagis.js
CHANGED
|
@@ -244,7 +244,12 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
244
244
|
return;
|
|
245
245
|
scene.remove(msgPrefix + ":" + msgId, parentScene, stopOnTop);
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
/* 设置图层显示顺序 */
|
|
248
|
+
that.reorderLayer = function(id, order, options) {
|
|
249
|
+
if (scene == null)
|
|
250
|
+
return;
|
|
251
|
+
scene.fire((msgPrefix + ":reorderLayer"), {args: [id, order, options]}, parentScene);
|
|
252
|
+
}
|
|
248
253
|
/* 切换到平移工具 */
|
|
249
254
|
that.panMap = function() {
|
|
250
255
|
if (scene == null)
|