xy-map 1.1.15 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xy-map",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
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: [],
48549
+ data: [],
48550
48550
  timer: 3000,
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,7 +48620,7 @@ 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
48625
  if (option.timer > 0) {
48627
48626
  window.clearInterval(clock);
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: [],
48567
+ data: [],
48568
48568
  timer: 3000,
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,7 +48638,7 @@ 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
48643
  if (option.timer > 0) {
48645
48644
  window.clearInterval(clock);