egovamap 0.31.10 → 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.
Files changed (2) hide show
  1. package/egovamap/egovaBI.js +29 -26
  2. package/package.json +1 -1
@@ -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
- clusterType: ctrOption.clusterType,
459
- level: ctrOption.level || 0,
460
- style: {
461
- type: "simple-marker",
462
- style: "circle",
463
- color: ctrOption.color || [255, 0, 0, 0.6],
464
- size: ctrOption.size || 20,
465
- outline: {
466
- //if outline has been specified
467
- color: ctrOption.outlineColor || [255, 168, 0, 1],
468
- width: ctrOption.outlineWidth || 2,
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
- labelStyle: {
472
- type: "text",
473
- color: ctrOption.labelColor || [255, 255, 255, 1],
474
- text: "",
475
- zlevel: ctrOption.labelZlevel || 1,
476
- yoffset: 0,
477
- font: ctrOption.labelFont || {
478
- family: "Arial",
479
- size: 10,
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
- distance: ctrOption.distance || 50,
483
- };
484
-
484
+ distance: ctrOption.distance || 50,
485
+ }
486
+ }
485
487
  var param = [
486
488
  data,
487
489
  true,
@@ -707,6 +709,7 @@ var egovaBI = function (globeMap, gisMap, mapType) {
707
709
  const geometry = null;
708
710
  const where = queryParam.where || "1=1";
709
711
  const opts = {
712
+ ...queryParam.options,
710
713
  layerId: layerName,
711
714
  mouseOverCallback: queryParam.mouseOverCallback,
712
715
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.31.10",
3
+ "version": "0.31.12",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {