egovamap 0.31.11 → 0.31.12
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/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,
|