egovamap 0.35.14 → 0.35.16
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/egovaglobe.js +9 -0
- package/egovamap/egovamap.js +24 -15
- package/package.json +1 -1
package/egovamap/egovaglobe.js
CHANGED
|
@@ -3760,6 +3760,15 @@ var EGovaGlobeMap = function (
|
|
|
3760
3760
|
false
|
|
3761
3761
|
);
|
|
3762
3762
|
};
|
|
3763
|
+
that.changeImageryPriority = function (options) {
|
|
3764
|
+
if (scene == null) return;
|
|
3765
|
+
scene.fire(
|
|
3766
|
+
msgPrefix + ':changeImageryPriority',
|
|
3767
|
+
{ args: [options] },
|
|
3768
|
+
parentScene,
|
|
3769
|
+
false
|
|
3770
|
+
);
|
|
3771
|
+
};
|
|
3763
3772
|
that.init();
|
|
3764
3773
|
};
|
|
3765
3774
|
|
package/egovamap/egovamap.js
CHANGED
|
@@ -1647,7 +1647,7 @@ var EGovaMap = function (
|
|
|
1647
1647
|
// By hth 2021/5/11: 如果颜色大于50,考虑到性能和可能卡死的问题,则直接采用随机颜色赋值且不考虑随机到重复色的情况
|
|
1648
1648
|
var extraColor = getRandomColorArray(
|
|
1649
1649
|
keyValueArray.length -
|
|
1650
|
-
|
|
1650
|
+
tempValue.length,
|
|
1651
1651
|
tempValue[0]
|
|
1652
1652
|
);
|
|
1653
1653
|
tempValue =
|
|
@@ -1684,10 +1684,10 @@ var EGovaMap = function (
|
|
|
1684
1684
|
obj[key] =
|
|
1685
1685
|
obj[key] ||
|
|
1686
1686
|
tempValue[
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1687
|
+
Math.round(
|
|
1688
|
+
Math.random() *
|
|
1689
|
+
(colorLength - 1)
|
|
1690
|
+
)
|
|
1691
1691
|
];
|
|
1692
1692
|
} else {
|
|
1693
1693
|
obj[key] = obj[key] || tempValue[index];
|
|
@@ -2545,7 +2545,7 @@ var EGovaMap = function (
|
|
|
2545
2545
|
if (gisMap != null) {
|
|
2546
2546
|
gisMap.setTraceLayerOptions(options);
|
|
2547
2547
|
}
|
|
2548
|
-
}
|
|
2548
|
+
};
|
|
2549
2549
|
|
|
2550
2550
|
/* 二维轨迹获取轨迹播放状态 */
|
|
2551
2551
|
that.getTracePlayStatus = function () {
|
|
@@ -2553,7 +2553,7 @@ var EGovaMap = function (
|
|
|
2553
2553
|
if (gisMap != null) {
|
|
2554
2554
|
return gisMap.getTracePlayStatus();
|
|
2555
2555
|
}
|
|
2556
|
-
}
|
|
2556
|
+
};
|
|
2557
2557
|
|
|
2558
2558
|
that.showTraceGradientLayer = function (
|
|
2559
2559
|
traceData,
|
|
@@ -5555,7 +5555,7 @@ var EGovaMap = function (
|
|
|
5555
5555
|
|
|
5556
5556
|
that.destroyMap = function () {
|
|
5557
5557
|
if (scene == null) return;
|
|
5558
|
-
if (gisMap
|
|
5558
|
+
if (gisMap && gisMap.destroyMap) {
|
|
5559
5559
|
gisMap.destroyMap();
|
|
5560
5560
|
}
|
|
5561
5561
|
};
|
|
@@ -5572,41 +5572,50 @@ var EGovaMap = function (
|
|
|
5572
5572
|
if (gisMap != null) {
|
|
5573
5573
|
gisMap.editGeometry.apply(this, arguments);
|
|
5574
5574
|
}
|
|
5575
|
-
}
|
|
5575
|
+
};
|
|
5576
5576
|
|
|
5577
5577
|
that.editAction = function () {
|
|
5578
5578
|
if (scene == null) return;
|
|
5579
5579
|
if (gisMap != null) {
|
|
5580
5580
|
gisMap.editAction.apply(this, arguments);
|
|
5581
5581
|
}
|
|
5582
|
-
}
|
|
5582
|
+
};
|
|
5583
5583
|
|
|
5584
5584
|
that.addLineArrow = function () {
|
|
5585
5585
|
if (scene == null) return;
|
|
5586
5586
|
if (gisMap != null) {
|
|
5587
5587
|
gisMap.addLineArrow.apply(this, arguments);
|
|
5588
5588
|
}
|
|
5589
|
-
}
|
|
5589
|
+
};
|
|
5590
5590
|
|
|
5591
5591
|
/**
|
|
5592
5592
|
* 地图叠加图片接口,可用于添加云图
|
|
5593
5593
|
*/
|
|
5594
|
-
that.addOverlayImage = function(image, extent, width
|
|
5594
|
+
that.addOverlayImage = function (image, extent, width, height, layerName) {
|
|
5595
5595
|
if (scene == null) return;
|
|
5596
5596
|
if (gisMap != null) {
|
|
5597
5597
|
gisMap.addOverlayImage.apply(this, arguments);
|
|
5598
5598
|
}
|
|
5599
|
-
}
|
|
5599
|
+
};
|
|
5600
5600
|
|
|
5601
5601
|
/**
|
|
5602
5602
|
* 地图移除叠加图片接口
|
|
5603
5603
|
*/
|
|
5604
|
-
that.removeOverlayImageLayer = function(id) {
|
|
5604
|
+
that.removeOverlayImageLayer = function (id) {
|
|
5605
5605
|
if (scene == null) return;
|
|
5606
5606
|
if (gisMap != null) {
|
|
5607
5607
|
gisMap.removeOverlayImageLayer.apply(this, arguments);
|
|
5608
5608
|
}
|
|
5609
|
-
}
|
|
5609
|
+
};
|
|
5610
|
+
/**
|
|
5611
|
+
* 调整影像图优先级(覆盖关系)
|
|
5612
|
+
*/
|
|
5613
|
+
that.changeImageryPriority = function (options) {
|
|
5614
|
+
if (scene == null) return;
|
|
5615
|
+
if (globeMap != null) {
|
|
5616
|
+
globeMap.changeImageryPriority(options);
|
|
5617
|
+
}
|
|
5618
|
+
};
|
|
5610
5619
|
|
|
5611
5620
|
that.initMap(containerID, callback, mapType, mapConfig, mapParam);
|
|
5612
5621
|
|