egovamap 0.31.11 → 0.31.13
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 +28 -26
- package/egovamap/egovagisviewer.js +4 -0
- package/egovamap/egovamap.js +8 -0
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -454,34 +454,36 @@ var egovaBI = function (globeMap, gisMap, mapType) {
|
|
|
454
454
|
function showParts(data) {
|
|
455
455
|
var drawParam = options.drawParam || {};
|
|
456
456
|
var ctrOption = drawParam.clusterOption;
|
|
457
|
-
var clusterOption =
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
style:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
457
|
+
var clusterOption = null;
|
|
458
|
+
if(ctrOption){
|
|
459
|
+
clusterOption = {
|
|
460
|
+
clusterType: ctrOption.clusterType,
|
|
461
|
+
level: ctrOption.level || 0,
|
|
462
|
+
style: {
|
|
463
|
+
type: "simple-marker",
|
|
464
|
+
style: "circle",
|
|
465
|
+
color: ctrOption.color || [255, 0, 0, 0.6],
|
|
466
|
+
size: ctrOption.size || 20,
|
|
467
|
+
outline: {
|
|
468
|
+
//if outline has been specified
|
|
469
|
+
color: ctrOption.outlineColor || [255, 168, 0, 1],
|
|
470
|
+
width: ctrOption.outlineWidth || 2,
|
|
471
|
+
},
|
|
469
472
|
},
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
473
|
+
labelStyle: {
|
|
474
|
+
type: "text",
|
|
475
|
+
color: ctrOption.labelColor || [255, 255, 255, 1],
|
|
476
|
+
text: "",
|
|
477
|
+
zlevel: ctrOption.labelZlevel || 1,
|
|
478
|
+
yoffset: 0,
|
|
479
|
+
font: ctrOption.labelFont || {
|
|
480
|
+
family: "Arial",
|
|
481
|
+
size: 10,
|
|
482
|
+
},
|
|
480
483
|
},
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
|
|
484
|
+
distance: ctrOption.distance || 50,
|
|
485
|
+
}
|
|
486
|
+
}
|
|
485
487
|
var param = [
|
|
486
488
|
data,
|
|
487
489
|
true,
|
|
@@ -2747,6 +2747,10 @@ var EGovaGISMap = function (
|
|
|
2747
2747
|
that.searchRegionInfo = function (params, callback) {
|
|
2748
2748
|
that.callMap("searchRegionInfo", params, callback);
|
|
2749
2749
|
};
|
|
2750
|
+
|
|
2751
|
+
that.playPoint = function (params) {
|
|
2752
|
+
that.callMap("playPoint", params);
|
|
2753
|
+
};
|
|
2750
2754
|
that.init();
|
|
2751
2755
|
};
|
|
2752
2756
|
|
package/egovamap/egovamap.js
CHANGED
|
@@ -5243,6 +5243,14 @@ var EGovaMap = function (
|
|
|
5243
5243
|
}
|
|
5244
5244
|
};
|
|
5245
5245
|
|
|
5246
|
+
/* 播放图层 */
|
|
5247
|
+
that.playPoint = function (params) {
|
|
5248
|
+
if (scene == null) return;
|
|
5249
|
+
if (gisMap != null) {
|
|
5250
|
+
gisMap.playPoint(params);
|
|
5251
|
+
}
|
|
5252
|
+
};
|
|
5253
|
+
|
|
5246
5254
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
5247
5255
|
|
|
5248
5256
|
// EGovaBI(globeMap).bind(this)();
|