@hpcc-js/map 3.6.3 → 3.6.5

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/index.js CHANGED
@@ -24,7 +24,7 @@ var ne = Object.create, re = Object.defineProperty, __name = (e, t) => re(e, "na
24
24
  }, __toESM = (e, t, n) => (n = e == null ? {} : ne(oe(e)), __copyProps(t || !e || !e.__esModule ? re(n, "default", {
25
25
  value: e,
26
26
  enumerable: !0
27
- }) : n, e)), ce = "@hpcc-js/map", le = "3.6.3", ue = "3.27.1";
27
+ }) : n, e)), ce = "@hpcc-js/map", le = "3.6.5", ue = "3.29.0";
28
28
  //#endregion
29
29
  //#region ../../node_modules/d3-quadtree/src/add.js
30
30
  function add_default(e) {
@@ -3340,11 +3340,11 @@ function setScriptSrc(e, t) {
3340
3340
  e.src = getPolicy().createScriptURL(t);
3341
3341
  }
3342
3342
  var bootstrap = (e) => {
3343
- var t, n, s, c = "The Google Maps JavaScript API", l = "google", d = "importLibrary", f = "__ib__", p = document, m = window, h = m[l] || (m[l] = {}), g = h.maps ||= {}, _ = /* @__PURE__ */ new Set(), v = new URLSearchParams(), triggerBootstrap = () => t ||= new Promise(async (d, m) => {
3344
- for (s in await (n = p.createElement("script")), v.set("libraries", [..._] + ""), e) v.set(s.replace(/[A-Z]/g, (e) => "_" + e[0].toLowerCase()), e[s]);
3345
- v.set("callback", l + ".maps." + f), setScriptSrc(n, "https://maps.googleapis.com/maps/api/js?" + v), g[f] = d, n.onerror = () => t = m(Error(c + " could not load.")), n.nonce = p.querySelector("script[nonce]")?.nonce || "", p.head.append(n);
3343
+ var t, n, s, c = "The Google Maps JavaScript API", l = "google", d = "importLibrary", f = document, p = window, m = p[l] || (p[l] = {}), h = m.maps ||= {}, g = /* @__PURE__ */ new Set(), _ = new URLSearchParams(), triggerBootstrap = () => t ||= new Promise(async (d, p) => {
3344
+ for (s in await (n = f.createElement("script")), _.set("libraries", [...g] + ""), e) _.set(s.replace(/[A-Z]/g, (e) => "_" + e[0].toLowerCase()), e[s]);
3345
+ _.set("callback", l + ".maps.__ib__"), setScriptSrc(n, "https://maps.googleapis.com/maps/api/js?" + _), h.__ib__ = d, n.onerror = () => t = p(Error(c + " could not load.")), n.nonce = f.querySelector("script[nonce]")?.nonce || "", f.head.append(n);
3346
3346
  });
3347
- g[d] ? console.warn(c + " only loads once. Ignoring:", e) : g[d] = (e, ...t) => _.add(e) && triggerBootstrap().then(() => g[d](e, ...t));
3347
+ h[d] ? console.warn(c + " only loads once. Ignoring:", e) : h[d] = (e, ...t) => g.add(e) && triggerBootstrap().then(() => h[d](e, ...t));
3348
3348
  }, Rn = process.env.NODE_ENV !== "production", zn = !1;
3349
3349
  function setOptions(e) {
3350
3350
  if (zn) {
@@ -8170,7 +8170,7 @@ var Z = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
8170
8170
  var c = Math.floor(e / 2), l = Math.floor(t / 2), d = n - 1, f = new Point(+c, +l);
8171
8171
  f.z = +d;
8172
8172
  var p = this._tileCoordsToKey(f), m = this._tiles[p];
8173
- return m && m.active ? (m.retain = !0, !0) : (m && m.loaded && (m.retain = !0), d > s ? this._retainParent(c, l, d, s) : !1);
8173
+ return m && m.active ? (m.retain = !0, !0) : (m && m.loaded && (m.retain = !0), d > s && this._retainParent(c, l, d, s));
8174
8174
  },
8175
8175
  _retainChildren: function(e, t, n, s) {
8176
8176
  for (var c = 2 * e; c < 2 * e + 2; c++) for (var l = 2 * t; l < 2 * t + 2; l++) {
@@ -11830,7 +11830,7 @@ var LeafletLayer = class extends Z.Layer {
11830
11830
  return e === void 0;
11831
11831
  }
11832
11832
  _options(e) {
11833
- return this._undef(e) ? this.options : (e.zoomHide = this._undef(e.zoomHide) ? !1 : e.zoomHide, e.zoomDraw = this._undef(e.zoomDraw) ? !0 : e.zoomDraw, this.options = e);
11833
+ return this._undef(e) ? this.options : (e.zoomHide = !this._undef(e.zoomHide) && e.zoomHide, e.zoomDraw = this._undef(e.zoomDraw) ? !0 : e.zoomDraw, this.options = e);
11834
11834
  }
11835
11835
  draw() {
11836
11836
  !this.map || !this._drawCallback || (this.projection.metresPerPixel = 40075016.686 * Math.abs(Math.cos(this.map.getCenter().lat * Math.PI / 180)) / 2 ** (this.map.getZoom() + 8) * this.projection.scale, this._drawCallback(this.selection, this.projection, this.map.getZoom()));