egovamap 0.17.5 → 0.17.8
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 +11 -1
- package/egovamap/egovagisviewer.js +6 -0
- package/egovamap/egovamap.js +8 -0
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -57,7 +57,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function rgbToRgbArray(color) {
|
|
60
|
-
if (!color || (typeof color == 'string'&&color.indexOf('rgb') == -1)) return color;
|
|
60
|
+
if (!color || (typeof color == 'string'&&color.indexOf('rgb') == -1) || Object.prototype.toString.call(color) === '[object Array]') return color;
|
|
61
61
|
|
|
62
62
|
var r, g, b, a;
|
|
63
63
|
var rgbaAttr = color.match(/[\d.]+/g);
|
|
@@ -109,6 +109,16 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
109
109
|
let hasHover = null;
|
|
110
110
|
let callback = null;
|
|
111
111
|
datalist = positions.map(function(p) {
|
|
112
|
+
if(options.textStyle.label) {
|
|
113
|
+
for (const key in p) {
|
|
114
|
+
if(key !== "id" && key !== "x" && key !== "y" && key !== "objectID"){
|
|
115
|
+
if(!p.label) p.label = [];
|
|
116
|
+
var labelItem = {};
|
|
117
|
+
labelItem[key] = p[key];
|
|
118
|
+
p.label.push(labelItem);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
112
122
|
p.minZoom = options.common.beginLevel;
|
|
113
123
|
p.maxZoom = options.common.endLevel;
|
|
114
124
|
p.symbolType = -1;
|
|
@@ -1348,6 +1348,12 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1348
1348
|
params.push(cb);
|
|
1349
1349
|
that.callMap.apply(that, params);
|
|
1350
1350
|
}
|
|
1351
|
+
|
|
1352
|
+
that.stopEdit = function() {
|
|
1353
|
+
if (scene == null)
|
|
1354
|
+
return;
|
|
1355
|
+
that.callMap('stopEdit');
|
|
1356
|
+
};
|
|
1351
1357
|
|
|
1352
1358
|
/* 圆饼图 */
|
|
1353
1359
|
that.addCircleChart = function (name, data, color, param, id, minZoom, maxZoom, clickCallback) {
|
package/egovamap/egovamap.js
CHANGED
|
@@ -2145,6 +2145,14 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
2145
2145
|
gisMap.editGraphic.apply(this, arguments);
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
|
+
|
|
2149
|
+
that.stopEdit = function() {
|
|
2150
|
+
if (scene == null)
|
|
2151
|
+
return;
|
|
2152
|
+
if (gisMap != null) {
|
|
2153
|
+
gisMap.stopEdit.apply(this, arguments);
|
|
2154
|
+
}
|
|
2155
|
+
};
|
|
2148
2156
|
|
|
2149
2157
|
/* 区域饼图 */
|
|
2150
2158
|
that.addCircleChart = function (name, data, color, param, minZoom, maxZoom, clickCallback) {
|