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.
@@ -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,
@@ -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
 
@@ -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)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.31.11",
3
+ "version": "0.31.13",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {