xy-map 1.1.16 → 1.1.17
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/package.json +1 -1
- package/xy-map.common.js +3 -3
- package/xy-map.umd.js +3 -3
- package/xy-map.umd.min.js +1 -1
package/package.json
CHANGED
package/xy-map.common.js
CHANGED
|
@@ -48547,7 +48547,7 @@ const addLayerPoint = (option, layerId) => {
|
|
|
48547
48547
|
const addFlashPoint = (option = {
|
|
48548
48548
|
id: 'flash',
|
|
48549
48549
|
data: [],
|
|
48550
|
-
|
|
48550
|
+
time: 0,
|
|
48551
48551
|
// 闪烁时间
|
|
48552
48552
|
size: 140 // 大小
|
|
48553
48553
|
}, layerId) => {
|
|
@@ -48622,12 +48622,12 @@ const addFlashPoint = (option = {
|
|
|
48622
48622
|
} else {
|
|
48623
48623
|
addDiyPoint(opt, layerId);
|
|
48624
48624
|
}
|
|
48625
|
-
if (option.
|
|
48625
|
+
if (option.time > 0) {
|
|
48626
48626
|
window.clearInterval(clock);
|
|
48627
48627
|
clock = window.setInterval(() => {
|
|
48628
48628
|
map.removeImage(imgId);
|
|
48629
48629
|
window.clearInterval(clock);
|
|
48630
|
-
}, option.
|
|
48630
|
+
}, option.time);
|
|
48631
48631
|
}
|
|
48632
48632
|
};
|
|
48633
48633
|
|
package/xy-map.umd.js
CHANGED
|
@@ -48565,7 +48565,7 @@ const addLayerPoint = (option, layerId) => {
|
|
|
48565
48565
|
const addFlashPoint = (option = {
|
|
48566
48566
|
id: 'flash',
|
|
48567
48567
|
data: [],
|
|
48568
|
-
|
|
48568
|
+
time: 0,
|
|
48569
48569
|
// 闪烁时间
|
|
48570
48570
|
size: 140 // 大小
|
|
48571
48571
|
}, layerId) => {
|
|
@@ -48640,12 +48640,12 @@ const addFlashPoint = (option = {
|
|
|
48640
48640
|
} else {
|
|
48641
48641
|
addDiyPoint(opt, layerId);
|
|
48642
48642
|
}
|
|
48643
|
-
if (option.
|
|
48643
|
+
if (option.time > 0) {
|
|
48644
48644
|
window.clearInterval(clock);
|
|
48645
48645
|
clock = window.setInterval(() => {
|
|
48646
48646
|
map.removeImage(imgId);
|
|
48647
48647
|
window.clearInterval(clock);
|
|
48648
|
-
}, option.
|
|
48648
|
+
}, option.time);
|
|
48649
48649
|
}
|
|
48650
48650
|
};
|
|
48651
48651
|
|