xy-map 1.1.15 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xy-map",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "雄越地图",
5
5
  "main": "xy-map.umd.min.js",
6
6
  "scripts": {
package/xy-map.common.js CHANGED
@@ -48546,14 +48546,13 @@ const addLayerPoint = (option, layerId) => {
48546
48546
  */
48547
48547
  const addFlashPoint = (option = {
48548
48548
  id: 'flash',
48549
- position: [],
48550
- timer: 3000,
48549
+ data: [],
48550
+ time: 0,
48551
48551
  // 闪烁时间
48552
- size: 140,
48553
- // 大小
48554
- layerId // 层级
48555
- }) => {
48552
+ size: 140 // 大小
48553
+ }, layerId) => {
48556
48554
  // 点
48555
+
48557
48556
  let {
48558
48557
  map
48559
48558
  } = package_map;
@@ -48621,14 +48620,14 @@ const addFlashPoint = (option = {
48621
48620
  if (hasLayer(opt.id)) {
48622
48621
  setSource(opt.id, opt.data);
48623
48622
  } else {
48624
- addDiyPoint(opt, option.layerId);
48623
+ addDiyPoint(opt, layerId);
48625
48624
  }
48626
- if (option.timer > 0) {
48625
+ if (option.time > 0) {
48627
48626
  window.clearInterval(clock);
48628
48627
  clock = window.setInterval(() => {
48629
48628
  map.removeImage(imgId);
48630
48629
  window.clearInterval(clock);
48631
- }, option.timer);
48630
+ }, option.time);
48632
48631
  }
48633
48632
  };
48634
48633
 
package/xy-map.umd.js CHANGED
@@ -48564,14 +48564,13 @@ const addLayerPoint = (option, layerId) => {
48564
48564
  */
48565
48565
  const addFlashPoint = (option = {
48566
48566
  id: 'flash',
48567
- position: [],
48568
- timer: 3000,
48567
+ data: [],
48568
+ time: 0,
48569
48569
  // 闪烁时间
48570
- size: 140,
48571
- // 大小
48572
- layerId // 层级
48573
- }) => {
48570
+ size: 140 // 大小
48571
+ }, layerId) => {
48574
48572
  // 点
48573
+
48575
48574
  let {
48576
48575
  map
48577
48576
  } = package_map;
@@ -48639,14 +48638,14 @@ const addFlashPoint = (option = {
48639
48638
  if (hasLayer(opt.id)) {
48640
48639
  setSource(opt.id, opt.data);
48641
48640
  } else {
48642
- addDiyPoint(opt, option.layerId);
48641
+ addDiyPoint(opt, layerId);
48643
48642
  }
48644
- if (option.timer > 0) {
48643
+ if (option.time > 0) {
48645
48644
  window.clearInterval(clock);
48646
48645
  clock = window.setInterval(() => {
48647
48646
  map.removeImage(imgId);
48648
48647
  window.clearInterval(clock);
48649
- }, option.timer);
48648
+ }, option.time);
48650
48649
  }
48651
48650
  };
48652
48651