@besovideo/bvmap-leaflet 0.0.18 → 0.0.20

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/dist/main.js CHANGED
@@ -6405,11 +6405,11 @@ const $o = {
6405
6405
  },
6406
6406
  Google: {
6407
6407
  Normal: {
6408
- Map: "//www.google.com/maps/vt?lyrs=m@189&gl=cn&x={x}&y={y}&z={z}"
6408
+ Map: "//www.google.com/maps/vt?lyrs=m@189&hl=en&x={x}&y={y}&z={z}"
6409
6409
  },
6410
6410
  Satellite: {
6411
- Map: "//www.google.com/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}",
6412
- Annotion: "//www.google.com/maps/vt?lyrs=y@189&gl=cn&x={x}&y={y}&z={z}"
6411
+ Map: "//www.google.com/maps/vt?lyrs=s@189&hl=en&x={x}&y={y}&z={z}",
6412
+ Annotion: "//www.google.com/maps/vt?lyrs=y@189&hl=en&x={x}&y={y}&z={z}"
6413
6413
  },
6414
6414
  Subdomains: ["0", "1", "2", "3"]
6415
6415
  },
@@ -7595,31 +7595,31 @@ function th(e) {
7595
7595
  }
7596
7596
  if (e.iconCustom) {
7597
7597
  r(e.iconCustom.className ? e.iconCustom.className : "");
7598
- const l = e.iconCustom.title.length * 12;
7599
- typeof e.iconCustom.imgUrl == "string" && e.iconCustom.imgUrl, n.innerHTML = `
7600
- <img src='${e.iconCustom.imgUrl}' style="width: 32px; height: 32px"/>
7598
+ const l = e.iconCustom.title.length * 12, u = typeof e.iconCustom.imgUrl == "string" ? e.iconCustom.imgUrl : Yo;
7599
+ n.innerHTML = `
7600
+ <img src='${u}' style="width: 32px; height: 32px"/>
7601
7601
  <div style='position: absolute; text-align: center; pointer-events: none; width: ${l}px; left: -${(l - 32) / 2}px;'>
7602
7602
  <span style='border: 1px solid grey; background-color: white; color: black; padding: 2px 5px; pointer-events: auto;'>
7603
7603
  ${e.iconCustom.title}
7604
7604
  </span>
7605
7605
  </div>
7606
- `, typeof e.iconCustom.imgUrl != "string" && e.iconCustom.imgUrl.then((f) => {
7607
- var m;
7608
- f && (n.innerHTML = `
7609
- <img src='${f}' style="width: 32px; height: 32px"/>
7606
+ `, typeof e.iconCustom.imgUrl != "string" && e.iconCustom.imgUrl.then((m) => {
7607
+ var y;
7608
+ m && (n.innerHTML = `
7609
+ <img src='${m}' style="width: 32px; height: 32px"/>
7610
7610
  <div style='position: absolute; text-align: center; pointer-events: none; width: ${l}px; left: -${(l - 32) / 2}px;'>
7611
7611
  <span style='border: 1px solid grey; background-color: white; color: black; padding: 2px 5px; pointer-events: auto;'>
7612
- ${(m = e.iconCustom) == null ? void 0 : m.title}
7612
+ ${(y = e.iconCustom) == null ? void 0 : y.title}
7613
7613
  </span>
7614
7614
  </div>
7615
7615
  `);
7616
7616
  });
7617
- const u = rt.divIcon({
7617
+ const f = rt.divIcon({
7618
7618
  html: n,
7619
7619
  iconSize: [32, 32],
7620
7620
  className: ""
7621
7621
  });
7622
- i.icon = u;
7622
+ i.icon = f;
7623
7623
  }
7624
7624
  const h = rt.marker(e.latlng, {
7625
7625
  ...e.options,
@@ -10280,13 +10280,11 @@ class ph {
10280
10280
  this.passedLine.SetCurrentTime(n[0].time);
10281
10281
  const h = this.map.wrapLatLng(n[0].latlng), a = this.map.wrapLatLng(n[1].latlng);
10282
10282
  if (h && a) {
10283
- const l = this.passedLine.calculateAngle(h, a);
10284
- console.log("angle", l);
10285
- const u = this.passedLine.markerCurrent.getElement();
10286
- if (console.log("iconEle", u), u) {
10283
+ const l = this.passedLine.calculateAngle(h, a), u = this.passedLine.markerCurrent.getElement();
10284
+ if (u) {
10287
10285
  this.passedLine.rotateAngle = l;
10288
10286
  const f = u.style.transform;
10289
- console.log("currentTransform", f), u.style.transform = `${f} rotate(${l + 90}deg)`;
10287
+ u.style.transform = `${f} rotate(${l + 90}deg)`;
10290
10288
  }
10291
10289
  }
10292
10290
  (r = this.timeCallback) == null || r.call(this, n[0].time, 0, 1);