@expofp/floorplan 3.35.1 → 3.36.0
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/browser/{Button-2F5HU6EI.js → Button-2F0fcPWt.js} +5 -5
- package/dist/browser/{CookieConsent-BhAM5rOw.js → CookieConsent-Bs_a5mWS.js} +7 -7
- package/dist/browser/{Debug-gdCmeYCg.js → Debug-CD7jIIc9.js} +7 -7
- package/dist/browser/{DebugTools-BDyuUdUN.js → DebugTools-0QH5g7VI.js} +6 -6
- package/dist/browser/{Demo-BPrFwUW-.js → Demo-CaQvpK66.js} +9 -9
- package/dist/browser/{Free-C5uVLenH.js → Free-DvMwspKE.js} +9 -9
- package/dist/browser/{GalleryContainer-C7j0INY2.js → GalleryContainer-Dwlzieq8.js} +10 -10
- package/dist/browser/{GpsLoader-nnQDCMRH.js → GpsLoader-BPoEXpR_.js} +20 -20
- package/dist/browser/{KioskStore-SeMZP79o.js → KioskStore-BSg4K_mL.js} +5 -5
- package/dist/browser/{MaplibreAdapter-Bjevgo2r.js → MaplibreAdapter-CDSNSGMJ.js} +750 -750
- package/dist/browser/{ModalContainer-BzFo7uj2.js → ModalContainer-C0C_-D7Q.js} +10 -10
- package/dist/browser/{PermissionNotice-DmoXiJZo.js → PermissionNotice-Ditp-Va7.js} +6 -6
- package/dist/browser/{SetKioskMode-C-vbXwyj.js → SetKioskMode-Ch3P8jsl.js} +10 -10
- package/dist/browser/{ShowKiosk-CgeCnhWG.js → ShowKiosk-D0NS-rMr.js} +10 -10
- package/dist/browser/{ViewerMenuPanel-CuwiufdN.js → ViewerMenuPanel-CH9tB2Sp.js} +9 -9
- package/dist/browser/{add-debug-secret-listener-BjmnVzZS.js → add-debug-secret-listener-Cw8yc4RW.js} +1 -1
- package/dist/browser/{adopt-global-settings-UqpjKsyk.js → adopt-global-settings-Bc_AVw2I.js} +9 -9
- package/dist/browser/{boolean-editor-oIQak_P8.js → boolean-editor-DySssKe_.js} +9 -9
- package/dist/browser/{bootIntercom-BRfFanFY.js → bootIntercom-veK3GB2r.js} +2 -2
- package/dist/browser/bundle.json +71 -71
- package/dist/browser/{camera-events-a1iM2lq7.js → camera-events-BX1-wPbL.js} +1 -1
- package/dist/browser/{classnames-Cv_mU_yl.js → classnames-C1ATXib6.js} +2 -2
- package/dist/browser/{client-DnPSFafu.js → client-Bdn_b8IB.js} +5 -5
- package/dist/browser/{components-DxY-BX9A.js → components-ElNUYOon.js} +115 -115
- package/dist/browser/{debug-context-CulbnWCw.js → debug-context-iU8AaPvD.js} +5 -5
- package/dist/browser/{debug-overlay-CWXl2SWt.js → debug-overlay-Dqyz5mZZ.js} +10 -10
- package/dist/browser/{debug-ui-CcQZL4pg.js → debug-ui-DPeQ3uf5.js} +6 -6
- package/dist/browser/{dimming-DvhkMZ40.js → dimming-CZLGDSAM.js} +60 -60
- package/dist/browser/{dist-Dsb4OHet.js → dist-BE-vw9Dz.js} +3 -3
- package/dist/browser/{dist-8UJC0IZK.js → dist-C2H8aaYx.js} +5 -5
- package/dist/browser/{dist-DafB9t7K.js → dist-CLxwCMUL.js} +6 -6
- package/dist/browser/{efp-debug-init-DD05RMBQ.js → efp-debug-init-BD4LKeS1.js} +3 -3
- package/dist/browser/{enum-editor-a4lYf4S8.js → enum-editor-DntlOPuq.js} +4 -4
- package/dist/browser/{es5-DdUdJX_x.js → es5-CjrUZ-uf.js} +2 -2
- package/dist/browser/{event-head-DfDyobgR.js → event-head-CIqZD5NQ.js} +1 -1
- package/dist/browser/{event-not-found-A0hPYREL.js → event-not-found-DRIf3y4d.js} +3 -3
- package/dist/browser/{exports-O5jdOzC2.js → exports-m4XDiy76.js} +1 -1
- package/dist/browser/{favicon-mpeKznxL.js → favicon-uIHQnsih.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CBah2MkL.js → fetch-retry.umd-D-ufgiKo.js} +2 -2
- package/dist/browser/{flex-CC8u1Uw-.js → flex-h9aGr8BA.js} +5 -5
- package/dist/browser/{floorplan.loader-DYN6P-Oo.js → floorplan.loader-DnpZi_x0.js} +10 -10
- package/dist/browser/{floorplan.ready-TDFhIRo_.js → floorplan.ready-BhJ0AYxK.js} +20 -20
- package/dist/browser/{fuse-BS8CcWcC.js → fuse-kGJ6CyvN.js} +2 -2
- package/dist/browser/{i18n-0E3uyLVW.js → i18n-8GhKJLji.js} +5 -5
- package/dist/browser/index.js +16 -16
- package/dist/browser/{index.module-DwVIOM93.js → index.module-DXWLW2QZ.js} +4 -4
- package/dist/browser/{integrateKiosk-Ccq4WzoS.js → integrateKiosk-Cwhicybg.js} +4 -4
- package/dist/browser/{is-own-domain-BKqddHmh.js → is-own-domain-BgHODyPb.js} +1 -1
- package/dist/browser/{is-webview-DiCFSLy-.js → is-webview-8mSd5e7Z.js} +1 -1
- package/dist/browser/{jsx-runtime-P77WQJqF.js → jsx-runtime-Db0wke-m.js} +2 -2
- package/dist/browser/{kiosk-record-DoMCDoT2.js → kiosk-record-BmUy79vX.js} +1 -1
- package/dist/browser/{lib-BZb68qwp.js → lib-DYJdAHez.js} +3 -3
- package/dist/browser/{loadImage-3kW-Fg2_.js → loadImage-DiOgFRgU.js} +4 -4
- package/dist/browser/{logDeviceInfo-DtJbriqX.js → logDeviceInfo-Z3261diM.js} +9 -9
- package/dist/browser/{mobx-1EBv7CmH.js → mobx-BcDFojrl.js} +4 -4
- package/dist/browser/{optional-boolean-editor-h2Oq_1_r.js → optional-boolean-editor-CW1Is1sb.js} +3 -3
- package/dist/browser/{optional-enum-editor-eKdnFVD2.js → optional-enum-editor-BkTQr_mP.js} +4 -4
- package/dist/browser/{optional-string-editor-C9s17l6V.js → optional-string-editor-CQkcvxq9.js} +4 -4
- package/dist/browser/{particles.min-DkQQycn_.js → particles.min-Ds4mtQz5.js} +2 -2
- package/dist/browser/{react-DzgaPDX1.js → react-Bws4GHzE.js} +2 -2
- package/dist/browser/{react-dom-JDDm2RhZ.js → react-dom-DKAc03u1.js} +3 -3
- package/dist/browser/{rolldown-runtime-veXluOvq.js → rolldown-runtime-Bmk6v0JP.js} +1 -1
- package/dist/browser/{scheduler-BrPFsqBd.js → scheduler-BXv92Cfb.js} +2 -2
- package/dist/browser/{select-B_RnhgCR.js → select-BCscymDn.js} +10 -10
- package/dist/browser/{settings-HK2kL5G-.js → settings-CrabU4sN.js} +2 -2
- package/dist/browser/{settings-item-DbsiuLvP.js → settings-item-BZ_U0h8B.js} +6 -6
- package/dist/browser/{store-Cn0elrBS.js → store-DJXUxGeN.js} +2454 -2473
- package/dist/browser/{string-editor-DSs7z8mR.js → string-editor-CnG22Oly.js} +4 -4
- package/dist/browser/{text-field-mllDlJnp.js → text-field-NVbcJEkm.js} +5 -5
- package/dist/browser/{theme-BwxA1kvi.js → theme-eBX8BNJC.js} +8 -8
- package/dist/browser/{ui-CKpZWGxG.js → ui-BPpyJIAd.js} +8 -8
- package/dist/browser/{useRenderTarget-Du_wr83M.js → useRenderTarget-yW52M18A.js} +4 -4
- package/dist/browser/{viewport-Vk1E1ErO.js → viewport-nGSeFdsb.js} +2 -2
- package/dist/esm/components/Map/drawing/config/config-booths.d.ts +2 -2
- package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +2 -2
- package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
- package/dist/esm/components/Map/drawing/config/layer-images.d.ts +1 -17
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
- package/package.json +10 -10
|
@@ -2,23 +2,23 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.36.0" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "46ebb885-6401-408b-944c-7f858246df48", e._sentryDebugIdIdentifier = "sentry-dbid-46ebb885-6401-408b-944c-7f858246df48");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import { X as n, Z as r, v as i, y as a } from "./i18n-
|
|
12
|
-
import { t as o } from "./react-
|
|
13
|
-
import { t as s } from "./jsx-runtime-
|
|
14
|
-
import { n as c } from "./loadImage-
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { i as
|
|
18
|
-
import { t as
|
|
19
|
-
import { a as
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-Bmk6v0JP.js";
|
|
11
|
+
import { X as n, Z as r, v as i, y as a } from "./i18n-8GhKJLji.js";
|
|
12
|
+
import { t as o } from "./react-Bws4GHzE.js";
|
|
13
|
+
import { t as s } from "./jsx-runtime-Db0wke-m.js";
|
|
14
|
+
import { n as c } from "./loadImage-DiOgFRgU.js";
|
|
15
|
+
import { At as l, Cn as u, D as d, En as f, F as p, Lt as m, Mt as h, N as g, Sn as _, Tt as v, V as y, Wt as b, bn as x, c as S, d as C, f as w, gn as T, jt as E, kt as D, l as O, p as k, tn as A, u as j, v as M, vn as N, vt as ee, wt as P, yn as te, yt as ne } from "./store-DJXUxGeN.js";
|
|
16
|
+
import { t as re } from "./index.module-DXWLW2QZ.js";
|
|
17
|
+
import { i as ie } from "./mobx-BcDFojrl.js";
|
|
18
|
+
import { t as ae } from "./viewport-nGSeFdsb.js";
|
|
19
|
+
import { a as oe, c as se, i as ce, l as le, n as ue, o as de, r as fe, s as pe, t as me } from "./dimming-CZLGDSAM.js";
|
|
20
20
|
//#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
21
|
-
var
|
|
21
|
+
var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(u(), 1), ge = (/* @__PURE__ */ t(((e, t) => {
|
|
22
22
|
(function(n, r) {
|
|
23
23
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.maplibregl = r());
|
|
24
24
|
})(e, (function() {
|
|
@@ -331,44 +331,44 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
331
331
|
function te(e, t, n) {
|
|
332
332
|
return Math.min(n, Math.max(t, e));
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function ne(e, t, n) {
|
|
335
335
|
let r = n - t, i = ((e - t) % r + r) % r + t;
|
|
336
336
|
return i === t ? n : i;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function re(e, ...t) {
|
|
339
339
|
for (let n of t) for (let t in n) e[t] = n[t];
|
|
340
340
|
return e;
|
|
341
341
|
}
|
|
342
|
-
let
|
|
343
|
-
function
|
|
342
|
+
let ie = 1;
|
|
343
|
+
function ae(e, t, n) {
|
|
344
344
|
let r = {};
|
|
345
345
|
for (let n in e) r[n] = t.call(this, e[n], n, e);
|
|
346
346
|
return r;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function oe(e, t, n) {
|
|
349
349
|
let r = {};
|
|
350
350
|
for (let n in e) t.call(this, e[n], n, e) && (r[n] = e[n]);
|
|
351
351
|
return r;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
return Array.isArray(e) ? e.map(
|
|
353
|
+
function se(e) {
|
|
354
|
+
return Array.isArray(e) ? e.map(se) : typeof e == "object" && e ? ae(e, se) : e;
|
|
355
355
|
}
|
|
356
|
-
let
|
|
357
|
-
function
|
|
358
|
-
|
|
356
|
+
let ce = {};
|
|
357
|
+
function le(e) {
|
|
358
|
+
ce[e] || (typeof console < "u" && console.warn(e), ce[e] = !0);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function ue(e, t, n) {
|
|
361
361
|
return (n.y - e.y) * (t.x - e.x) > (t.y - e.y) * (n.x - e.x);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function de(e) {
|
|
364
364
|
return typeof WorkerGlobalScope < "u" && e !== void 0 && e instanceof WorkerGlobalScope;
|
|
365
365
|
}
|
|
366
|
-
let
|
|
367
|
-
function
|
|
366
|
+
let fe = null;
|
|
367
|
+
function pe(e) {
|
|
368
368
|
return typeof ImageBitmap < "u" && e instanceof ImageBitmap;
|
|
369
369
|
}
|
|
370
|
-
let
|
|
371
|
-
function
|
|
370
|
+
let me = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
|
|
371
|
+
function F(e, n, r, i, a) {
|
|
372
372
|
return t(this, void 0, void 0, (function* () {
|
|
373
373
|
if (typeof VideoFrame > "u") throw Error("VideoFrame not supported");
|
|
374
374
|
let t = new VideoFrame(e, { timestamp: 0 });
|
|
@@ -400,25 +400,25 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
400
400
|
}
|
|
401
401
|
}));
|
|
402
402
|
}
|
|
403
|
-
let
|
|
404
|
-
function
|
|
403
|
+
let he, ge;
|
|
404
|
+
function _e(e, t, n, r) {
|
|
405
405
|
return e.addEventListener(t, n, r), { unsubscribe: () => {
|
|
406
406
|
e.removeEventListener(t, n, r);
|
|
407
407
|
} };
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function ve(e) {
|
|
410
410
|
return e * Math.PI / 180;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function ye(e) {
|
|
413
413
|
return e / Math.PI * 180;
|
|
414
414
|
}
|
|
415
|
-
let
|
|
415
|
+
let be = {
|
|
416
416
|
touchstart: !0,
|
|
417
417
|
touchmove: !0,
|
|
418
418
|
touchmoveWindow: !0,
|
|
419
419
|
touchend: !0,
|
|
420
420
|
touchcancel: !0
|
|
421
|
-
},
|
|
421
|
+
}, xe = {
|
|
422
422
|
dblclick: !0,
|
|
423
423
|
click: !0,
|
|
424
424
|
mouseover: !0,
|
|
@@ -430,55 +430,55 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
430
430
|
mouseupWindow: !0,
|
|
431
431
|
contextmenu: !0,
|
|
432
432
|
wheel: !0
|
|
433
|
-
},
|
|
434
|
-
class
|
|
435
|
-
constructor(e =
|
|
436
|
-
super(e instanceof Error ? e.message : e), this.name =
|
|
433
|
+
}, Se = "AbortError";
|
|
434
|
+
class Ce extends Error {
|
|
435
|
+
constructor(e = Se) {
|
|
436
|
+
super(e instanceof Error ? e.message : e), this.name = Se, e instanceof Error && e.stack && (this.stack = e.stack);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function Ce(e) {
|
|
440
|
-
return e instanceof Error && e.name === xe;
|
|
441
|
-
}
|
|
442
439
|
function we(e) {
|
|
443
|
-
|
|
440
|
+
return e instanceof Error && e.name === Se;
|
|
441
|
+
}
|
|
442
|
+
function Te(e) {
|
|
443
|
+
if (e.aborted) throw new Ce(e.reason);
|
|
444
444
|
}
|
|
445
|
-
let
|
|
445
|
+
let Ee = {
|
|
446
446
|
MAX_PARALLEL_IMAGE_REQUESTS: 16,
|
|
447
447
|
MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8,
|
|
448
448
|
MAX_TILE_CACHE_ZOOM_LEVELS: 5,
|
|
449
449
|
REGISTERED_PROTOCOLS: {},
|
|
450
450
|
WORKER_URL: ""
|
|
451
451
|
};
|
|
452
|
-
function
|
|
453
|
-
return
|
|
452
|
+
function De(e) {
|
|
453
|
+
return Ee.REGISTERED_PROTOCOLS[e.substring(0, e.indexOf("://"))];
|
|
454
454
|
}
|
|
455
|
-
let
|
|
456
|
-
class
|
|
455
|
+
let Oe = "global-dispatcher";
|
|
456
|
+
class ke extends Error {
|
|
457
457
|
constructor(e, t, n, r) {
|
|
458
458
|
super(`AJAXError: ${t} (${e}): ${n}`), this.status = e, this.statusText = t, this.url = n, this.body = r;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
let
|
|
461
|
+
let Ae = () => {
|
|
462
462
|
var e;
|
|
463
|
-
return
|
|
464
|
-
},
|
|
463
|
+
return de(self) ? (e = self.worker) == null ? void 0 : e.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href;
|
|
464
|
+
}, je = function(e, n) {
|
|
465
465
|
return t(this, void 0, void 0, (function* () {
|
|
466
466
|
var r, i;
|
|
467
467
|
if (e.url.includes("://") && !/^https?:|^file:/.test(e.url)) {
|
|
468
|
-
let t =
|
|
468
|
+
let t = De(e.url);
|
|
469
469
|
if (t) {
|
|
470
470
|
let r = yield t(e, n);
|
|
471
|
-
return r.data || e.type !== "arrayBuffer" ? r :
|
|
471
|
+
return r.data || e.type !== "arrayBuffer" ? r : re(r, { data: /* @__PURE__ */ new ArrayBuffer(0) });
|
|
472
472
|
}
|
|
473
|
-
if (
|
|
473
|
+
if (de(self) && (r = self.worker) != null && r.actor) return self.worker.actor.sendAsync({
|
|
474
474
|
type: "GR",
|
|
475
475
|
data: e,
|
|
476
|
-
targetMapId:
|
|
476
|
+
targetMapId: Oe
|
|
477
477
|
}, n);
|
|
478
478
|
}
|
|
479
479
|
if (!((e) => {
|
|
480
480
|
var t;
|
|
481
|
-
return e.startsWith("file:") || ((t =
|
|
481
|
+
return e.startsWith("file:") || ((t = Ae()) == null ? void 0 : t.startsWith("file:")) && !/^\w+:/.test(e);
|
|
482
482
|
})(e.url)) {
|
|
483
483
|
if (fetch && Request && AbortController && Object.hasOwn(Request.prototype, "signal")) return function(e, n) {
|
|
484
484
|
return t(this, void 0, void 0, (function* () {
|
|
@@ -488,7 +488,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
488
488
|
credentials: e.credentials,
|
|
489
489
|
headers: e.headers,
|
|
490
490
|
cache: e.cache,
|
|
491
|
-
referrer:
|
|
491
|
+
referrer: Ae(),
|
|
492
492
|
referrerPolicy: e.referrerPolicy,
|
|
493
493
|
signal: n.signal
|
|
494
494
|
}), r, i;
|
|
@@ -496,15 +496,15 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
496
496
|
try {
|
|
497
497
|
r = yield fetch(t);
|
|
498
498
|
} catch (t) {
|
|
499
|
-
throw
|
|
499
|
+
throw we(t) ? t : new ke(0, A(t).message, e.url, new Blob());
|
|
500
500
|
}
|
|
501
501
|
if (!r.ok) {
|
|
502
502
|
let t = yield r.blob();
|
|
503
|
-
throw new
|
|
503
|
+
throw new ke(r.status, r.statusText, e.url, t);
|
|
504
504
|
}
|
|
505
505
|
i = e.type === "arrayBuffer" || e.type === "image" ? r.arrayBuffer() : e.type === "json" ? r.json() : r.text();
|
|
506
506
|
let a = yield i;
|
|
507
|
-
return
|
|
507
|
+
return Te(n.signal), {
|
|
508
508
|
data: a,
|
|
509
509
|
cacheControl: r.headers.get("Cache-Control"),
|
|
510
510
|
expires: r.headers.get("Expires"),
|
|
@@ -512,11 +512,11 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
512
512
|
};
|
|
513
513
|
}));
|
|
514
514
|
}(e, n);
|
|
515
|
-
if (
|
|
515
|
+
if (de(self) && (i = self.worker) != null && i.actor) return self.worker.actor.sendAsync({
|
|
516
516
|
type: "GR",
|
|
517
517
|
data: e,
|
|
518
518
|
mustQueue: !0,
|
|
519
|
-
targetMapId:
|
|
519
|
+
targetMapId: Oe
|
|
520
520
|
}, n);
|
|
521
521
|
}
|
|
522
522
|
return function(e, t) {
|
|
@@ -544,65 +544,65 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
544
544
|
});
|
|
545
545
|
} else {
|
|
546
546
|
let t = new Blob([a.response], { type: a.getResponseHeader("Content-Type") });
|
|
547
|
-
r(new
|
|
547
|
+
r(new ke(a.status, a.statusText, e.url, t));
|
|
548
548
|
}
|
|
549
549
|
}, t.signal.addEventListener("abort", (() => {
|
|
550
|
-
a.abort(), r(new
|
|
550
|
+
a.abort(), r(new Ce(t.signal.reason));
|
|
551
551
|
})), a.send(e.body);
|
|
552
552
|
}));
|
|
553
553
|
}(e, n);
|
|
554
554
|
}));
|
|
555
555
|
};
|
|
556
|
-
function
|
|
556
|
+
function Me(e) {
|
|
557
557
|
if (!e || e.indexOf("://") <= 0 || e.startsWith("data:image/") || e.startsWith("blob:")) return !0;
|
|
558
558
|
let t = new URL(e), n = window.location;
|
|
559
559
|
return t.protocol === n.protocol && t.host === n.host;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Ne(e, t, n) {
|
|
562
562
|
var r;
|
|
563
563
|
(r = n[e]) != null && r.includes(t) || (n[e] || (n[e] = []), n[e].push(t));
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Pe(e, t, n) {
|
|
566
566
|
if (n != null && n[e]) {
|
|
567
567
|
let r = n[e].indexOf(t);
|
|
568
568
|
r !== -1 && n[e].splice(r, 1);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
class
|
|
571
|
+
class Fe {
|
|
572
572
|
constructor(e, t = {}) {
|
|
573
|
-
|
|
573
|
+
re(this, t), this.type = e;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
class
|
|
576
|
+
class Ie extends Fe {
|
|
577
577
|
constructor(e, t = {}) {
|
|
578
|
-
super("error",
|
|
578
|
+
super("error", re({ error: e }, t));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
class
|
|
581
|
+
class Le {
|
|
582
582
|
on(e, t) {
|
|
583
|
-
return this._listeners || (this._listeners = {}),
|
|
583
|
+
return this._listeners || (this._listeners = {}), Ne(e, t, this._listeners), { unsubscribe: () => {
|
|
584
584
|
this.off(e, t);
|
|
585
585
|
} };
|
|
586
586
|
}
|
|
587
587
|
off(e, t) {
|
|
588
|
-
return
|
|
588
|
+
return Pe(e, t, this._listeners), Pe(e, t, this._oneTimeListeners), this;
|
|
589
589
|
}
|
|
590
590
|
once(e, t) {
|
|
591
|
-
return t ? (this._oneTimeListeners || (this._oneTimeListeners = {}),
|
|
591
|
+
return t ? (this._oneTimeListeners || (this._oneTimeListeners = {}), Ne(e, t, this._oneTimeListeners), this) : new Promise(((t) => this.once(e, t)));
|
|
592
592
|
}
|
|
593
593
|
fire(e, t) {
|
|
594
594
|
var n, r;
|
|
595
|
-
typeof e == "string" && (e = new
|
|
595
|
+
typeof e == "string" && (e = new Fe(e, t || {}));
|
|
596
596
|
let i = e.type;
|
|
597
597
|
if (this.listens(i)) {
|
|
598
598
|
e.target = this;
|
|
599
599
|
let t = (n = this._listeners) != null && n[i] ? this._listeners[i].slice() : [];
|
|
600
600
|
for (let n of t) n.call(this, e);
|
|
601
601
|
let a = (r = this._oneTimeListeners) != null && r[i] ? this._oneTimeListeners[i].slice() : [];
|
|
602
|
-
for (let t of a)
|
|
602
|
+
for (let t of a) Pe(i, t, this._oneTimeListeners), t.call(this, e);
|
|
603
603
|
let o = this._eventedParent;
|
|
604
|
-
o && (
|
|
605
|
-
} else e instanceof
|
|
604
|
+
o && (re(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), o.fire(e));
|
|
605
|
+
} else e instanceof Ie && console.error(e.error);
|
|
606
606
|
return this;
|
|
607
607
|
}
|
|
608
608
|
listens(e) {
|
|
@@ -613,7 +613,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
613
613
|
return this._eventedParent = e, this._eventedParentData = t, this;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var I = {
|
|
617
617
|
$version: 8,
|
|
618
618
|
$root: {
|
|
619
619
|
version: {
|
|
@@ -3224,7 +3224,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
3226
|
};
|
|
3227
|
-
let
|
|
3227
|
+
let Re = [
|
|
3228
3228
|
"type",
|
|
3229
3229
|
"source",
|
|
3230
3230
|
"source-layer",
|
|
@@ -3233,22 +3233,22 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
3233
3233
|
"filter",
|
|
3234
3234
|
"layout"
|
|
3235
3235
|
];
|
|
3236
|
-
function
|
|
3236
|
+
function ze(e, t) {
|
|
3237
3237
|
let n = {};
|
|
3238
3238
|
for (let t in e) t !== "ref" && (n[t] = e[t]);
|
|
3239
|
-
return
|
|
3239
|
+
return Re.forEach(((e) => {
|
|
3240
3240
|
e in t && (n[e] = t[e]);
|
|
3241
3241
|
})), n;
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3243
|
+
function R(e, t) {
|
|
3244
3244
|
if (Array.isArray(e)) {
|
|
3245
3245
|
if (!Array.isArray(t) || e.length !== t.length) return !1;
|
|
3246
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
3246
|
+
for (let n = 0; n < e.length; n++) if (!R(e[n], t[n])) return !1;
|
|
3247
3247
|
return !0;
|
|
3248
3248
|
}
|
|
3249
3249
|
if (typeof e == "object" && e && t !== null) {
|
|
3250
3250
|
if (typeof t != "object" || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
3251
|
-
for (let n in e) if (!
|
|
3251
|
+
for (let n in e) if (!R(e[n], t[n])) return !1;
|
|
3252
3252
|
return !0;
|
|
3253
3253
|
}
|
|
3254
3254
|
return e === t;
|
|
@@ -3273,13 +3273,13 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
3273
3273
|
}
|
|
3274
3274
|
function We(e, t, n) {
|
|
3275
3275
|
let r;
|
|
3276
|
-
for (r in e[n]) if (Object.prototype.hasOwnProperty.call(e[n], r) && r !== "data" && !
|
|
3277
|
-
for (r in t[n]) if (Object.prototype.hasOwnProperty.call(t[n], r) && r !== "data" && !
|
|
3276
|
+
for (r in e[n]) if (Object.prototype.hasOwnProperty.call(e[n], r) && r !== "data" && !R(e[n][r], t[n][r])) return !1;
|
|
3277
|
+
for (r in t[n]) if (Object.prototype.hasOwnProperty.call(t[n], r) && r !== "data" && !R(e[n][r], t[n][r])) return !1;
|
|
3278
3278
|
return !0;
|
|
3279
3279
|
}
|
|
3280
3280
|
function Ge(e, t, n, r, i, a) {
|
|
3281
3281
|
e = e || {}, t = t || {};
|
|
3282
|
-
for (let o in e) Object.prototype.hasOwnProperty.call(e, o) && (
|
|
3282
|
+
for (let o in e) Object.prototype.hasOwnProperty.call(e, o) && (R(e[o], t[o]) || n.push({
|
|
3283
3283
|
command: a,
|
|
3284
3284
|
args: [
|
|
3285
3285
|
r,
|
|
@@ -3288,7 +3288,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
3288
3288
|
i
|
|
3289
3289
|
]
|
|
3290
3290
|
}));
|
|
3291
|
-
for (let o in t) Object.prototype.hasOwnProperty.call(t, o) && !Object.prototype.hasOwnProperty.call(e, o) && (
|
|
3291
|
+
for (let o in t) Object.prototype.hasOwnProperty.call(t, o) && !Object.prototype.hasOwnProperty.call(e, o) && (R(e[o], t[o]) || n.push({
|
|
3292
3292
|
command: a,
|
|
3293
3293
|
args: [
|
|
3294
3294
|
r,
|
|
@@ -7157,7 +7157,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
7157
7157
|
}
|
|
7158
7158
|
function Ei(e) {
|
|
7159
7159
|
let t = "";
|
|
7160
|
-
for (let n of
|
|
7160
|
+
for (let n of Re) t += `/${Ti(e[n])}`;
|
|
7161
7161
|
return t;
|
|
7162
7162
|
}
|
|
7163
7163
|
function Di(e) {
|
|
@@ -7868,7 +7868,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
7868
7868
|
let t = e.value, n = e.key, r = Ui(e);
|
|
7869
7869
|
return r.length || (t.indexOf("{fontstack}") === -1 && r.push(new z(n, t, "\"glyphs\" url must include a \"{fontstack}\" token")), t.indexOf("{range}") === -1 && r.push(new z(n, t, "\"glyphs\" url must include a \"{range}\" token"))), r;
|
|
7870
7870
|
}
|
|
7871
|
-
function ta(e, t =
|
|
7871
|
+
function ta(e, t = I) {
|
|
7872
7872
|
let n = [];
|
|
7873
7873
|
return n = n.concat($i({
|
|
7874
7874
|
key: "",
|
|
@@ -7932,10 +7932,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
7932
7932
|
return this._globalStateRefs;
|
|
7933
7933
|
}
|
|
7934
7934
|
}
|
|
7935
|
-
let sa =
|
|
7935
|
+
let sa = I, ca = ta, la = ca.light, ua = ca.sky, da = ca.paintProperty, fa = ca.layoutProperty;
|
|
7936
7936
|
function pa(e, t) {
|
|
7937
7937
|
let n = !1;
|
|
7938
|
-
if (t != null && t.length) for (let r of t) e.fire(new
|
|
7938
|
+
if (t != null && t.length) for (let r of t) e.fire(new Ie(Error(r.message))), n = !0;
|
|
7939
7939
|
return n;
|
|
7940
7940
|
}
|
|
7941
7941
|
class ma {
|
|
@@ -8033,7 +8033,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8033
8033
|
shallow: n.shallow || []
|
|
8034
8034
|
};
|
|
8035
8035
|
}
|
|
8036
|
-
X("Object", Object), X("Set", Set), X("TransferableGridIndex", ma), X("Color", W), X("Error", Error), X("AJAXError",
|
|
8036
|
+
X("Object", Object), X("Set", Set), X("TransferableGridIndex", ma), X("Color", W), X("Error", Error), X("AJAXError", ke), X("ResolvedImage", qt), X("StylePropertyFunction", di), X("StyleExpression", ai, { omit: ["_evaluator"] }), X("ZoomDependentExpression", li), X("ZoomConstantExpression", ci), X("CompoundExpression", Lr, { omit: ["_evaluate"] });
|
|
8037
8037
|
for (let e in Ir) Ir[e]._classRegistryKey || X(`Expression_${e}`, Ir[e]);
|
|
8038
8038
|
function ga(e) {
|
|
8039
8039
|
var t;
|
|
@@ -8047,10 +8047,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8047
8047
|
if (typeof e != "object" || !e) return !1;
|
|
8048
8048
|
let t = _a(e);
|
|
8049
8049
|
return t && t !== "Object";
|
|
8050
|
-
}(e) && (e == null || typeof e == "boolean" || typeof e == "number" || typeof e == "string" || e instanceof Boolean || e instanceof Number || e instanceof String || e instanceof Date || e instanceof RegExp || e instanceof Blob || e instanceof Error || ga(e) ||
|
|
8050
|
+
}(e) && (e == null || typeof e == "boolean" || typeof e == "number" || typeof e == "string" || e instanceof Boolean || e instanceof Number || e instanceof String || e instanceof Date || e instanceof RegExp || e instanceof Blob || e instanceof Error || ga(e) || pe(e) || ArrayBuffer.isView(e) || e instanceof ImageData);
|
|
8051
8051
|
}
|
|
8052
8052
|
function ya(e, t) {
|
|
8053
|
-
if (va(e)) return (ga(e) ||
|
|
8053
|
+
if (va(e)) return (ga(e) || pe(e)) && t && t.push(e), ArrayBuffer.isView(e) && t && t.push(e.buffer), e instanceof ImageData && t && t.push(e.data.buffer), e;
|
|
8054
8054
|
if (Array.isArray(e)) {
|
|
8055
8055
|
let n = [];
|
|
8056
8056
|
for (let r of e) n.push(ya(r, t));
|
|
@@ -8260,7 +8260,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8260
8260
|
this.property = e, this.value = new za(e, void 0, t);
|
|
8261
8261
|
}
|
|
8262
8262
|
transitioned(e, t) {
|
|
8263
|
-
return new Ha(this.property, this.value, t,
|
|
8263
|
+
return new Ha(this.property, this.value, t, re({}, e.transition, this.transition), e.now);
|
|
8264
8264
|
}
|
|
8265
8265
|
untransitioned() {
|
|
8266
8266
|
return new Ha(this.property, this.value, null, {}, 0);
|
|
@@ -8274,16 +8274,16 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8274
8274
|
return e in this._properties.defaultTransitionablePropertyValues;
|
|
8275
8275
|
}
|
|
8276
8276
|
getValue(e) {
|
|
8277
|
-
return
|
|
8277
|
+
return se(this._values[e].value.value);
|
|
8278
8278
|
}
|
|
8279
8279
|
setValue(e, t) {
|
|
8280
|
-
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].value = new za(this._values[e].property, t === null ? void 0 :
|
|
8280
|
+
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].value = new za(this._values[e].property, t === null ? void 0 : se(t), this._globalState);
|
|
8281
8281
|
}
|
|
8282
8282
|
getTransition(e) {
|
|
8283
|
-
return
|
|
8283
|
+
return se(this._values[e].transition);
|
|
8284
8284
|
}
|
|
8285
8285
|
setTransition(e, t) {
|
|
8286
|
-
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition =
|
|
8286
|
+
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition = se(t) || void 0;
|
|
8287
8287
|
}
|
|
8288
8288
|
serialize() {
|
|
8289
8289
|
let e = {};
|
|
@@ -8348,10 +8348,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8348
8348
|
return e in this._properties.defaultPropertyValues;
|
|
8349
8349
|
}
|
|
8350
8350
|
getValue(e) {
|
|
8351
|
-
return
|
|
8351
|
+
return se(this._values[e].value);
|
|
8352
8352
|
}
|
|
8353
8353
|
setValue(e, t) {
|
|
8354
|
-
this._values[e] = new za(this._values[e].property, t === null ? void 0 :
|
|
8354
|
+
this._values[e] = new za(this._values[e].property, t === null ? void 0 : se(t), this._globalState);
|
|
8355
8355
|
}
|
|
8356
8356
|
serialize() {
|
|
8357
8357
|
let e = {};
|
|
@@ -8524,7 +8524,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8524
8524
|
}
|
|
8525
8525
|
X("DataDrivenProperty", Q), X("DataConstantProperty", Z), X("CrossFadedDataDrivenProperty", qa), X("CrossFadedProperty", Ja), X("ColorRampProperty", Ya);
|
|
8526
8526
|
let Za = " is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?", Qa = " is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";
|
|
8527
|
-
class $a extends
|
|
8527
|
+
class $a extends Le {
|
|
8528
8528
|
constructor(e, t, n) {
|
|
8529
8529
|
if (super(), this.id = e.id, this.type = e.type, this._globalState = n, this._featureFilter = {
|
|
8530
8530
|
filter: () => !0,
|
|
@@ -8583,7 +8583,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8583
8583
|
setLayoutProperty(e, t, n = {}) {
|
|
8584
8584
|
var r;
|
|
8585
8585
|
if (e === "visibility") return this.visibility = t, this._visibilityExpression.setValue(t), void this.recalculateVisibility();
|
|
8586
|
-
(r = this._transitionablePaint) != null && r.hasProperty(e) ? this.fire(new
|
|
8586
|
+
(r = this._transitionablePaint) != null && r.hasProperty(e) ? this.fire(new Ie(/* @__PURE__ */ Error(e + Za))) : t != null && this._validate(fa, `layers.${this.id}.layout.${e}`, e, t, n) || this._unevaluatedLayout.setValue(e, t);
|
|
8587
8587
|
}
|
|
8588
8588
|
getPaintProperty(e) {
|
|
8589
8589
|
var t, n;
|
|
@@ -8597,7 +8597,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8597
8597
|
}
|
|
8598
8598
|
setPaintProperty(e, t, n = {}) {
|
|
8599
8599
|
var r;
|
|
8600
|
-
if (e === "visibility" || (r = this._unevaluatedLayout) != null && r.hasProperty(e)) return this.fire(new
|
|
8600
|
+
if (e === "visibility" || (r = this._unevaluatedLayout) != null && r.hasProperty(e)) return this.fire(new Ie(/* @__PURE__ */ Error(e + Qa))), !1;
|
|
8601
8601
|
if (t != null && this._validate(da, `layers.${this.id}.paint.${e}`, e, t, n)) return !1;
|
|
8602
8602
|
if (e.endsWith(Ra)) return this._transitionablePaint.setTransition(e.slice(0, -11), t || void 0), !1;
|
|
8603
8603
|
{
|
|
@@ -8640,7 +8640,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8640
8640
|
layout: (e = this._unevaluatedLayout) == null ? void 0 : e.serialize(),
|
|
8641
8641
|
paint: (t = this._transitionablePaint) == null ? void 0 : t.serialize()
|
|
8642
8642
|
};
|
|
8643
|
-
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility),
|
|
8643
|
+
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility), oe(n, ((e, t) => !(e === void 0 || t === "layout" && !Object.keys(e).length || t === "paint" && !Object.keys(e).length)));
|
|
8644
8644
|
}
|
|
8645
8645
|
_validate(e, t, n, r, i = {}) {
|
|
8646
8646
|
return !1 !== (i == null ? void 0 : i.validate) && pa(this, e.call(ca, {
|
|
@@ -8648,7 +8648,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8648
8648
|
layerType: this.type,
|
|
8649
8649
|
objectKey: n,
|
|
8650
8650
|
value: r,
|
|
8651
|
-
styleSpec:
|
|
8651
|
+
styleSpec: I,
|
|
8652
8652
|
style: {
|
|
8653
8653
|
glyphs: !0,
|
|
8654
8654
|
sprite: !0
|
|
@@ -8676,15 +8676,15 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
8676
8676
|
let eo;
|
|
8677
8677
|
var to = { get paint() {
|
|
8678
8678
|
return eo = eo || new Xa({
|
|
8679
|
-
"raster-opacity": new Z(
|
|
8680
|
-
"raster-hue-rotate": new Z(
|
|
8681
|
-
"raster-brightness-min": new Z(
|
|
8682
|
-
"raster-brightness-max": new Z(
|
|
8683
|
-
"raster-saturation": new Z(
|
|
8684
|
-
"raster-contrast": new Z(
|
|
8685
|
-
resampling: new Z(
|
|
8686
|
-
"raster-resampling": new Z(
|
|
8687
|
-
"raster-fade-duration": new Z(
|
|
8679
|
+
"raster-opacity": new Z(I.paint_raster["raster-opacity"]),
|
|
8680
|
+
"raster-hue-rotate": new Z(I.paint_raster["raster-hue-rotate"]),
|
|
8681
|
+
"raster-brightness-min": new Z(I.paint_raster["raster-brightness-min"]),
|
|
8682
|
+
"raster-brightness-max": new Z(I.paint_raster["raster-brightness-max"]),
|
|
8683
|
+
"raster-saturation": new Z(I.paint_raster["raster-saturation"]),
|
|
8684
|
+
"raster-contrast": new Z(I.paint_raster["raster-contrast"]),
|
|
8685
|
+
resampling: new Z(I.paint_raster.resampling),
|
|
8686
|
+
"raster-resampling": new Z(I.paint_raster["raster-resampling"]),
|
|
8687
|
+
"raster-fade-duration": new Z(I.paint_raster["raster-fade-duration"])
|
|
8688
8688
|
});
|
|
8689
8689
|
} };
|
|
8690
8690
|
class no extends $a {
|
|
@@ -9379,7 +9379,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
9379
9379
|
}
|
|
9380
9380
|
prepareSegment(e, t, n, r) {
|
|
9381
9381
|
let i = this.segments[this.segments.length - 1];
|
|
9382
|
-
return e > ss.MAX_VERTEX_ARRAY_LENGTH &&
|
|
9382
|
+
return e > ss.MAX_VERTEX_ARRAY_LENGTH && le(`Max vertices per segment is ${ss.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${ss.MAX_VERTEX_ARRAY_LENGTH} vertices.`), this._forceNewSegmentOnNextPrepare || !i || i.vertexLength + e > ss.MAX_VERTEX_ARRAY_LENGTH || i.sortKey !== r ? this.createNewSegment(t, n, r) : i;
|
|
9383
9383
|
}
|
|
9384
9384
|
createNewSegment(e, t, n) {
|
|
9385
9385
|
let r = {
|
|
@@ -9969,7 +9969,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
9969
9969
|
let t = O / e.extent, n = e.loadGeometry();
|
|
9970
9970
|
for (let e of n) for (let n of e) {
|
|
9971
9971
|
let e = Math.round(n.x * t), r = Math.round(n.y * t);
|
|
9972
|
-
n.x = te(e, Bs, zs), n.y = te(r, Bs, zs), (e < n.x || e > n.x + 1 || r < n.y || r > n.y + 1) &&
|
|
9972
|
+
n.x = te(e, Bs, zs), n.y = te(r, Bs, zs), (e < n.x || e > n.x + 1 || r < n.y || r > n.y + 1) && le("Geometry exceeds allowed extent, reduce your vector tile buffer size");
|
|
9973
9973
|
}
|
|
9974
9974
|
return n;
|
|
9975
9975
|
}
|
|
@@ -10120,7 +10120,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10120
10120
|
return !1;
|
|
10121
10121
|
}
|
|
10122
10122
|
function Zs(e, t, n, r) {
|
|
10123
|
-
return
|
|
10123
|
+
return ue(e, n, r) !== ue(t, n, r) && ue(e, t, n) !== ue(e, t, r);
|
|
10124
10124
|
}
|
|
10125
10125
|
function Qs(e, t, n) {
|
|
10126
10126
|
let r = n * n;
|
|
@@ -10153,8 +10153,8 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10153
10153
|
function nc(e, t, n) {
|
|
10154
10154
|
let r = n[0], i = n[2];
|
|
10155
10155
|
if (e.x < r.x && t.x < r.x || e.x > i.x && t.x > i.x || e.y < r.y && t.y < r.y || e.y > i.y && t.y > i.y) return !1;
|
|
10156
|
-
let a =
|
|
10157
|
-
return a !==
|
|
10156
|
+
let a = ue(e, t, n[0]);
|
|
10157
|
+
return a !== ue(e, t, n[1]) || a !== ue(e, t, n[2]) || a !== ue(e, t, n[3]);
|
|
10158
10158
|
}
|
|
10159
10159
|
function rc(e, t, n) {
|
|
10160
10160
|
let r = t.paint.get(e).value;
|
|
@@ -10212,21 +10212,21 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10212
10212
|
var hc = {
|
|
10213
10213
|
get paint() {
|
|
10214
10214
|
return mc = mc || new Xa({
|
|
10215
|
-
"circle-radius": new Q(
|
|
10216
|
-
"circle-color": new Q(
|
|
10217
|
-
"circle-blur": new Q(
|
|
10218
|
-
"circle-opacity": new Q(
|
|
10219
|
-
"circle-translate": new Z(
|
|
10220
|
-
"circle-translate-anchor": new Z(
|
|
10221
|
-
"circle-pitch-scale": new Z(
|
|
10222
|
-
"circle-pitch-alignment": new Z(
|
|
10223
|
-
"circle-stroke-width": new Q(
|
|
10224
|
-
"circle-stroke-color": new Q(
|
|
10225
|
-
"circle-stroke-opacity": new Q(
|
|
10215
|
+
"circle-radius": new Q(I.paint_circle["circle-radius"]),
|
|
10216
|
+
"circle-color": new Q(I.paint_circle["circle-color"]),
|
|
10217
|
+
"circle-blur": new Q(I.paint_circle["circle-blur"]),
|
|
10218
|
+
"circle-opacity": new Q(I.paint_circle["circle-opacity"]),
|
|
10219
|
+
"circle-translate": new Z(I.paint_circle["circle-translate"]),
|
|
10220
|
+
"circle-translate-anchor": new Z(I.paint_circle["circle-translate-anchor"]),
|
|
10221
|
+
"circle-pitch-scale": new Z(I.paint_circle["circle-pitch-scale"]),
|
|
10222
|
+
"circle-pitch-alignment": new Z(I.paint_circle["circle-pitch-alignment"]),
|
|
10223
|
+
"circle-stroke-width": new Q(I.paint_circle["circle-stroke-width"]),
|
|
10224
|
+
"circle-stroke-color": new Q(I.paint_circle["circle-stroke-color"]),
|
|
10225
|
+
"circle-stroke-opacity": new Q(I.paint_circle["circle-stroke-opacity"])
|
|
10226
10226
|
});
|
|
10227
10227
|
},
|
|
10228
10228
|
get layout() {
|
|
10229
|
-
return pc = pc || new Xa({ "circle-sort-key": new Q(
|
|
10229
|
+
return pc = pc || new Xa({ "circle-sort-key": new Q(I.layout_circle["circle-sort-key"]) });
|
|
10230
10230
|
}
|
|
10231
10231
|
};
|
|
10232
10232
|
class gc extends $a {
|
|
@@ -10260,11 +10260,11 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10260
10260
|
X("HeatmapBucket", _c, { omit: ["layers"] });
|
|
10261
10261
|
var yc = { get paint() {
|
|
10262
10262
|
return vc = vc || new Xa({
|
|
10263
|
-
"heatmap-radius": new Q(
|
|
10264
|
-
"heatmap-weight": new Q(
|
|
10265
|
-
"heatmap-intensity": new Z(
|
|
10266
|
-
"heatmap-color": new Ya(
|
|
10267
|
-
"heatmap-opacity": new Z(
|
|
10263
|
+
"heatmap-radius": new Q(I.paint_heatmap["heatmap-radius"]),
|
|
10264
|
+
"heatmap-weight": new Q(I.paint_heatmap["heatmap-weight"]),
|
|
10265
|
+
"heatmap-intensity": new Z(I.paint_heatmap["heatmap-intensity"]),
|
|
10266
|
+
"heatmap-color": new Ya(I.paint_heatmap["heatmap-color"]),
|
|
10267
|
+
"heatmap-opacity": new Z(I.paint_heatmap["heatmap-opacity"])
|
|
10268
10268
|
});
|
|
10269
10269
|
} };
|
|
10270
10270
|
function bc(e, { width: t, height: n }, r, i) {
|
|
@@ -10411,15 +10411,15 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10411
10411
|
let kc;
|
|
10412
10412
|
var Ac = { get paint() {
|
|
10413
10413
|
return kc = kc || new Xa({
|
|
10414
|
-
"hillshade-illumination-direction": new Z(
|
|
10415
|
-
"hillshade-illumination-altitude": new Z(
|
|
10416
|
-
"hillshade-illumination-anchor": new Z(
|
|
10417
|
-
"hillshade-exaggeration": new Z(
|
|
10418
|
-
"hillshade-shadow-color": new Z(
|
|
10419
|
-
"hillshade-highlight-color": new Z(
|
|
10420
|
-
"hillshade-accent-color": new Z(
|
|
10421
|
-
"hillshade-method": new Z(
|
|
10422
|
-
resampling: new Z(
|
|
10414
|
+
"hillshade-illumination-direction": new Z(I.paint_hillshade["hillshade-illumination-direction"]),
|
|
10415
|
+
"hillshade-illumination-altitude": new Z(I.paint_hillshade["hillshade-illumination-altitude"]),
|
|
10416
|
+
"hillshade-illumination-anchor": new Z(I.paint_hillshade["hillshade-illumination-anchor"]),
|
|
10417
|
+
"hillshade-exaggeration": new Z(I.paint_hillshade["hillshade-exaggeration"]),
|
|
10418
|
+
"hillshade-shadow-color": new Z(I.paint_hillshade["hillshade-shadow-color"]),
|
|
10419
|
+
"hillshade-highlight-color": new Z(I.paint_hillshade["hillshade-highlight-color"]),
|
|
10420
|
+
"hillshade-accent-color": new Z(I.paint_hillshade["hillshade-accent-color"]),
|
|
10421
|
+
"hillshade-method": new Z(I.paint_hillshade["hillshade-method"]),
|
|
10422
|
+
resampling: new Z(I.paint_hillshade.resampling)
|
|
10423
10423
|
});
|
|
10424
10424
|
} };
|
|
10425
10425
|
class jc extends $a {
|
|
@@ -10432,9 +10432,9 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10432
10432
|
getIlluminationProperties() {
|
|
10433
10433
|
let e = this.paint.get("hillshade-illumination-direction").values, t = this.paint.get("hillshade-illumination-altitude").values, n = this.paint.get("hillshade-highlight-color").values, r = this.paint.get("hillshade-shadow-color").values, i = Math.max(e.length, t.length, n.length, r.length);
|
|
10434
10434
|
e = e.concat(Array(i - e.length).fill(e.at(-1))), t = t.concat(Array(i - t.length).fill(t.at(-1))), n = n.concat(Array(i - n.length).fill(n.at(-1))), r = r.concat(Array(i - r.length).fill(r.at(-1)));
|
|
10435
|
-
let a = t.map(
|
|
10435
|
+
let a = t.map(ve);
|
|
10436
10436
|
return {
|
|
10437
|
-
directionRadians: e.map(
|
|
10437
|
+
directionRadians: e.map(ve),
|
|
10438
10438
|
altitudeRadians: a,
|
|
10439
10439
|
shadowColor: r,
|
|
10440
10440
|
highlightColor: n
|
|
@@ -10447,9 +10447,9 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10447
10447
|
let Mc;
|
|
10448
10448
|
var Nc = { get paint() {
|
|
10449
10449
|
return Mc = Mc || new Xa({
|
|
10450
|
-
"color-relief-opacity": new Z(
|
|
10451
|
-
"color-relief-color": new Ya(
|
|
10452
|
-
resampling: new Z(
|
|
10450
|
+
"color-relief-opacity": new Z(I["paint_color-relief"]["color-relief-opacity"]),
|
|
10451
|
+
"color-relief-color": new Ya(I["paint_color-relief"]["color-relief-color"]),
|
|
10452
|
+
resampling: new Z(I["paint_color-relief"].resampling)
|
|
10453
10453
|
});
|
|
10454
10454
|
} };
|
|
10455
10455
|
function Pc(e) {
|
|
@@ -10507,7 +10507,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10507
10507
|
"mapbox",
|
|
10508
10508
|
"terrarium",
|
|
10509
10509
|
"custom"
|
|
10510
|
-
].includes(n)) return void
|
|
10510
|
+
].includes(n)) return void le(`"${n}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);
|
|
10511
10511
|
this.stride = t.height;
|
|
10512
10512
|
let s = this.dim = t.height - 2;
|
|
10513
10513
|
switch (this.data = new Uint32Array(t.data.buffer), n) {
|
|
@@ -10603,7 +10603,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
10603
10603
|
colorStops: []
|
|
10604
10604
|
}, i = (t.elevationStops.length - 1) / (e - 1);
|
|
10605
10605
|
for (let e = 0; e < t.elevationStops.length - .5; e += i) r.elevationStops.push(t.elevationStops[Math.round(e)]), r.colorStops.push(t.colorStops[Math.round(e)]);
|
|
10606
|
-
return
|
|
10606
|
+
return le(`Too many colors in specification of ${this.id} color-relief layer, may not render properly. Max possible colors: ${e}, provided: ${t.elevationStops.length}`), r;
|
|
10607
10607
|
}
|
|
10608
10608
|
_colorRampChanged() {
|
|
10609
10609
|
return this.colorRampExpression != this._transitionablePaint._values["color-relief-color"].value.expression;
|
|
@@ -11250,17 +11250,17 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
11250
11250
|
var El = {
|
|
11251
11251
|
get paint() {
|
|
11252
11252
|
return Tl = Tl || new Xa({
|
|
11253
|
-
"fill-antialias": new Z(
|
|
11254
|
-
"fill-opacity": new Q(
|
|
11255
|
-
"fill-color": new Q(
|
|
11256
|
-
"fill-outline-color": new Q(
|
|
11257
|
-
"fill-translate": new Z(
|
|
11258
|
-
"fill-translate-anchor": new Z(
|
|
11259
|
-
"fill-pattern": new qa(
|
|
11253
|
+
"fill-antialias": new Z(I.paint_fill["fill-antialias"]),
|
|
11254
|
+
"fill-opacity": new Q(I.paint_fill["fill-opacity"]),
|
|
11255
|
+
"fill-color": new Q(I.paint_fill["fill-color"]),
|
|
11256
|
+
"fill-outline-color": new Q(I.paint_fill["fill-outline-color"]),
|
|
11257
|
+
"fill-translate": new Z(I.paint_fill["fill-translate"]),
|
|
11258
|
+
"fill-translate-anchor": new Z(I.paint_fill["fill-translate-anchor"]),
|
|
11259
|
+
"fill-pattern": new qa(I.paint_fill["fill-pattern"])
|
|
11260
11260
|
});
|
|
11261
11261
|
},
|
|
11262
11262
|
get layout() {
|
|
11263
|
-
return wl = wl || new Xa({ "fill-sort-key": new Q(
|
|
11263
|
+
return wl = wl || new Xa({ "fill-sort-key": new Q(I.layout_fill["fill-sort-key"]) });
|
|
11264
11264
|
}
|
|
11265
11265
|
};
|
|
11266
11266
|
class Dl extends $a {
|
|
@@ -11558,14 +11558,14 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
11558
11558
|
X("FillExtrusionBucket", Vl, { omit: ["layers", "features"] });
|
|
11559
11559
|
var Kl = { get paint() {
|
|
11560
11560
|
return Gl = Gl || new Xa({
|
|
11561
|
-
"fill-extrusion-opacity": new Z(
|
|
11562
|
-
"fill-extrusion-color": new Q(
|
|
11563
|
-
"fill-extrusion-translate": new Z(
|
|
11564
|
-
"fill-extrusion-translate-anchor": new Z(
|
|
11565
|
-
"fill-extrusion-pattern": new qa(
|
|
11566
|
-
"fill-extrusion-height": new Q(
|
|
11567
|
-
"fill-extrusion-base": new Q(
|
|
11568
|
-
"fill-extrusion-vertical-gradient": new Z(
|
|
11561
|
+
"fill-extrusion-opacity": new Z(I["paint_fill-extrusion"]["fill-extrusion-opacity"]),
|
|
11562
|
+
"fill-extrusion-color": new Q(I["paint_fill-extrusion"]["fill-extrusion-color"]),
|
|
11563
|
+
"fill-extrusion-translate": new Z(I["paint_fill-extrusion"]["fill-extrusion-translate"]),
|
|
11564
|
+
"fill-extrusion-translate-anchor": new Z(I["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),
|
|
11565
|
+
"fill-extrusion-pattern": new qa(I["paint_fill-extrusion"]["fill-extrusion-pattern"]),
|
|
11566
|
+
"fill-extrusion-height": new Q(I["paint_fill-extrusion"]["fill-extrusion-height"]),
|
|
11567
|
+
"fill-extrusion-base": new Q(I["paint_fill-extrusion"]["fill-extrusion-base"]),
|
|
11568
|
+
"fill-extrusion-vertical-gradient": new Z(I["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])
|
|
11569
11569
|
});
|
|
11570
11570
|
} };
|
|
11571
11571
|
class ql extends $a {
|
|
@@ -12813,26 +12813,26 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
12813
12813
|
var ld = {
|
|
12814
12814
|
get paint() {
|
|
12815
12815
|
return cd = cd || new Xa({
|
|
12816
|
-
"line-opacity": new Q(
|
|
12817
|
-
"line-color": new Q(
|
|
12818
|
-
"line-translate": new Z(
|
|
12819
|
-
"line-translate-anchor": new Z(
|
|
12820
|
-
"line-width": new Q(
|
|
12821
|
-
"line-gap-width": new Q(
|
|
12822
|
-
"line-offset": new Q(
|
|
12823
|
-
"line-blur": new Q(
|
|
12824
|
-
"line-dasharray": new qa(
|
|
12825
|
-
"line-pattern": new qa(
|
|
12826
|
-
"line-gradient": new Ya(
|
|
12816
|
+
"line-opacity": new Q(I.paint_line["line-opacity"]),
|
|
12817
|
+
"line-color": new Q(I.paint_line["line-color"]),
|
|
12818
|
+
"line-translate": new Z(I.paint_line["line-translate"]),
|
|
12819
|
+
"line-translate-anchor": new Z(I.paint_line["line-translate-anchor"]),
|
|
12820
|
+
"line-width": new Q(I.paint_line["line-width"]),
|
|
12821
|
+
"line-gap-width": new Q(I.paint_line["line-gap-width"]),
|
|
12822
|
+
"line-offset": new Q(I.paint_line["line-offset"]),
|
|
12823
|
+
"line-blur": new Q(I.paint_line["line-blur"]),
|
|
12824
|
+
"line-dasharray": new qa(I.paint_line["line-dasharray"]),
|
|
12825
|
+
"line-pattern": new qa(I.paint_line["line-pattern"]),
|
|
12826
|
+
"line-gradient": new Ya(I.paint_line["line-gradient"])
|
|
12827
12827
|
});
|
|
12828
12828
|
},
|
|
12829
12829
|
get layout() {
|
|
12830
12830
|
return sd = sd || new Xa({
|
|
12831
|
-
"line-cap": new Q(
|
|
12832
|
-
"line-join": new Q(
|
|
12833
|
-
"line-miter-limit": new Q(
|
|
12834
|
-
"line-round-limit": new Q(
|
|
12835
|
-
"line-sort-key": new Q(
|
|
12831
|
+
"line-cap": new Q(I.layout_line["line-cap"]),
|
|
12832
|
+
"line-join": new Q(I.layout_line["line-join"]),
|
|
12833
|
+
"line-miter-limit": new Q(I.layout_line["line-miter-limit"]),
|
|
12834
|
+
"line-round-limit": new Q(I.layout_line["line-round-limit"]),
|
|
12835
|
+
"line-sort-key": new Q(I.layout_line["line-sort-key"])
|
|
12836
12836
|
});
|
|
12837
12837
|
}
|
|
12838
12838
|
};
|
|
@@ -12846,7 +12846,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
12846
12846
|
}), super.possiblyEvaluate(e, t);
|
|
12847
12847
|
}
|
|
12848
12848
|
evaluate(e, t, n, r) {
|
|
12849
|
-
return t =
|
|
12849
|
+
return t = re({}, t, { zoom: Math.floor(t.zoom) }), super.evaluate(e, t, n, r);
|
|
12850
12850
|
}
|
|
12851
12851
|
}
|
|
12852
12852
|
let dd;
|
|
@@ -13452,13 +13452,13 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
13452
13452
|
}
|
|
13453
13453
|
addImageSection(e) {
|
|
13454
13454
|
let t = e.image ? e.image.name : "";
|
|
13455
|
-
if (t.length === 0) return void
|
|
13455
|
+
if (t.length === 0) return void le("Can't add FormattedSection with an empty image.");
|
|
13456
13456
|
let n = this.getNextImageSectionCharCode();
|
|
13457
13457
|
n ? (this.text += String.fromCharCode(n), this.sections.push({
|
|
13458
13458
|
scale: 1,
|
|
13459
13459
|
verticalAlign: e.verticalAlign || "bottom",
|
|
13460
13460
|
imageName: t
|
|
13461
|
-
}), this.sectionIndex.push(this.sections.length - 1)) :
|
|
13461
|
+
}), this.sectionIndex.push(this.sections.length - 1)) : le("Reached maximum number of images 6401");
|
|
13462
13462
|
}
|
|
13463
13463
|
getNextImageSectionCharCode() {
|
|
13464
13464
|
return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
|
|
@@ -14577,72 +14577,72 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
14577
14577
|
var Cf = {
|
|
14578
14578
|
get paint() {
|
|
14579
14579
|
return Sf = Sf || new Xa({
|
|
14580
|
-
"icon-opacity": new Q(
|
|
14581
|
-
"icon-color": new Q(
|
|
14582
|
-
"icon-halo-color": new Q(
|
|
14583
|
-
"icon-halo-width": new Q(
|
|
14584
|
-
"icon-halo-blur": new Q(
|
|
14585
|
-
"icon-translate": new Z(
|
|
14586
|
-
"icon-translate-anchor": new Z(
|
|
14587
|
-
"text-opacity": new Q(
|
|
14588
|
-
"text-color": new Q(
|
|
14580
|
+
"icon-opacity": new Q(I.paint_symbol["icon-opacity"]),
|
|
14581
|
+
"icon-color": new Q(I.paint_symbol["icon-color"]),
|
|
14582
|
+
"icon-halo-color": new Q(I.paint_symbol["icon-halo-color"]),
|
|
14583
|
+
"icon-halo-width": new Q(I.paint_symbol["icon-halo-width"]),
|
|
14584
|
+
"icon-halo-blur": new Q(I.paint_symbol["icon-halo-blur"]),
|
|
14585
|
+
"icon-translate": new Z(I.paint_symbol["icon-translate"]),
|
|
14586
|
+
"icon-translate-anchor": new Z(I.paint_symbol["icon-translate-anchor"]),
|
|
14587
|
+
"text-opacity": new Q(I.paint_symbol["text-opacity"]),
|
|
14588
|
+
"text-color": new Q(I.paint_symbol["text-color"], {
|
|
14589
14589
|
runtimeType: Qe,
|
|
14590
14590
|
getOverride: (e) => e.textColor,
|
|
14591
14591
|
hasOverride: (e) => !!e.textColor
|
|
14592
14592
|
}),
|
|
14593
|
-
"text-halo-color": new Q(
|
|
14594
|
-
"text-halo-width": new Q(
|
|
14595
|
-
"text-halo-blur": new Q(
|
|
14596
|
-
"text-translate": new Z(
|
|
14597
|
-
"text-translate-anchor": new Z(
|
|
14593
|
+
"text-halo-color": new Q(I.paint_symbol["text-halo-color"]),
|
|
14594
|
+
"text-halo-width": new Q(I.paint_symbol["text-halo-width"]),
|
|
14595
|
+
"text-halo-blur": new Q(I.paint_symbol["text-halo-blur"]),
|
|
14596
|
+
"text-translate": new Z(I.paint_symbol["text-translate"]),
|
|
14597
|
+
"text-translate-anchor": new Z(I.paint_symbol["text-translate-anchor"])
|
|
14598
14598
|
});
|
|
14599
14599
|
},
|
|
14600
14600
|
get layout() {
|
|
14601
14601
|
return xf = xf || new Xa({
|
|
14602
|
-
"symbol-placement": new Z(
|
|
14603
|
-
"symbol-spacing": new Z(
|
|
14604
|
-
"symbol-avoid-edges": new Z(
|
|
14605
|
-
"symbol-sort-key": new Q(
|
|
14606
|
-
"symbol-z-order": new Z(
|
|
14607
|
-
"icon-allow-overlap": new Z(
|
|
14608
|
-
"icon-overlap": new Z(
|
|
14609
|
-
"icon-ignore-placement": new Z(
|
|
14610
|
-
"icon-optional": new Z(
|
|
14611
|
-
"icon-rotation-alignment": new Z(
|
|
14612
|
-
"icon-size": new Q(
|
|
14613
|
-
"icon-text-fit": new Z(
|
|
14614
|
-
"icon-text-fit-padding": new Z(
|
|
14615
|
-
"icon-image": new Q(
|
|
14616
|
-
"icon-rotate": new Q(
|
|
14617
|
-
"icon-padding": new Q(
|
|
14618
|
-
"icon-keep-upright": new Z(
|
|
14619
|
-
"icon-offset": new Q(
|
|
14620
|
-
"icon-anchor": new Q(
|
|
14621
|
-
"icon-pitch-alignment": new Z(
|
|
14622
|
-
"text-pitch-alignment": new Z(
|
|
14623
|
-
"text-rotation-alignment": new Z(
|
|
14624
|
-
"text-field": new Q(
|
|
14625
|
-
"text-font": new Q(
|
|
14626
|
-
"text-size": new Q(
|
|
14627
|
-
"text-max-width": new Q(
|
|
14628
|
-
"text-line-height": new Z(
|
|
14629
|
-
"text-letter-spacing": new Q(
|
|
14630
|
-
"text-justify": new Q(
|
|
14631
|
-
"text-radial-offset": new Q(
|
|
14632
|
-
"text-variable-anchor": new Z(
|
|
14633
|
-
"text-variable-anchor-offset": new Q(
|
|
14634
|
-
"text-anchor": new Q(
|
|
14635
|
-
"text-max-angle": new Z(
|
|
14636
|
-
"text-writing-mode": new Z(
|
|
14637
|
-
"text-rotate": new Q(
|
|
14638
|
-
"text-padding": new Z(
|
|
14639
|
-
"text-keep-upright": new Z(
|
|
14640
|
-
"text-transform": new Q(
|
|
14641
|
-
"text-offset": new Q(
|
|
14642
|
-
"text-allow-overlap": new Z(
|
|
14643
|
-
"text-overlap": new Z(
|
|
14644
|
-
"text-ignore-placement": new Z(
|
|
14645
|
-
"text-optional": new Z(
|
|
14602
|
+
"symbol-placement": new Z(I.layout_symbol["symbol-placement"]),
|
|
14603
|
+
"symbol-spacing": new Z(I.layout_symbol["symbol-spacing"]),
|
|
14604
|
+
"symbol-avoid-edges": new Z(I.layout_symbol["symbol-avoid-edges"]),
|
|
14605
|
+
"symbol-sort-key": new Q(I.layout_symbol["symbol-sort-key"]),
|
|
14606
|
+
"symbol-z-order": new Z(I.layout_symbol["symbol-z-order"]),
|
|
14607
|
+
"icon-allow-overlap": new Z(I.layout_symbol["icon-allow-overlap"]),
|
|
14608
|
+
"icon-overlap": new Z(I.layout_symbol["icon-overlap"]),
|
|
14609
|
+
"icon-ignore-placement": new Z(I.layout_symbol["icon-ignore-placement"]),
|
|
14610
|
+
"icon-optional": new Z(I.layout_symbol["icon-optional"]),
|
|
14611
|
+
"icon-rotation-alignment": new Z(I.layout_symbol["icon-rotation-alignment"]),
|
|
14612
|
+
"icon-size": new Q(I.layout_symbol["icon-size"]),
|
|
14613
|
+
"icon-text-fit": new Z(I.layout_symbol["icon-text-fit"]),
|
|
14614
|
+
"icon-text-fit-padding": new Z(I.layout_symbol["icon-text-fit-padding"]),
|
|
14615
|
+
"icon-image": new Q(I.layout_symbol["icon-image"]),
|
|
14616
|
+
"icon-rotate": new Q(I.layout_symbol["icon-rotate"]),
|
|
14617
|
+
"icon-padding": new Q(I.layout_symbol["icon-padding"]),
|
|
14618
|
+
"icon-keep-upright": new Z(I.layout_symbol["icon-keep-upright"]),
|
|
14619
|
+
"icon-offset": new Q(I.layout_symbol["icon-offset"]),
|
|
14620
|
+
"icon-anchor": new Q(I.layout_symbol["icon-anchor"]),
|
|
14621
|
+
"icon-pitch-alignment": new Z(I.layout_symbol["icon-pitch-alignment"]),
|
|
14622
|
+
"text-pitch-alignment": new Z(I.layout_symbol["text-pitch-alignment"]),
|
|
14623
|
+
"text-rotation-alignment": new Z(I.layout_symbol["text-rotation-alignment"]),
|
|
14624
|
+
"text-field": new Q(I.layout_symbol["text-field"]),
|
|
14625
|
+
"text-font": new Q(I.layout_symbol["text-font"]),
|
|
14626
|
+
"text-size": new Q(I.layout_symbol["text-size"]),
|
|
14627
|
+
"text-max-width": new Q(I.layout_symbol["text-max-width"]),
|
|
14628
|
+
"text-line-height": new Z(I.layout_symbol["text-line-height"]),
|
|
14629
|
+
"text-letter-spacing": new Q(I.layout_symbol["text-letter-spacing"]),
|
|
14630
|
+
"text-justify": new Q(I.layout_symbol["text-justify"]),
|
|
14631
|
+
"text-radial-offset": new Q(I.layout_symbol["text-radial-offset"]),
|
|
14632
|
+
"text-variable-anchor": new Z(I.layout_symbol["text-variable-anchor"]),
|
|
14633
|
+
"text-variable-anchor-offset": new Q(I.layout_symbol["text-variable-anchor-offset"]),
|
|
14634
|
+
"text-anchor": new Q(I.layout_symbol["text-anchor"]),
|
|
14635
|
+
"text-max-angle": new Z(I.layout_symbol["text-max-angle"]),
|
|
14636
|
+
"text-writing-mode": new Z(I.layout_symbol["text-writing-mode"]),
|
|
14637
|
+
"text-rotate": new Q(I.layout_symbol["text-rotate"]),
|
|
14638
|
+
"text-padding": new Z(I.layout_symbol["text-padding"]),
|
|
14639
|
+
"text-keep-upright": new Z(I.layout_symbol["text-keep-upright"]),
|
|
14640
|
+
"text-transform": new Q(I.layout_symbol["text-transform"]),
|
|
14641
|
+
"text-offset": new Q(I.layout_symbol["text-offset"]),
|
|
14642
|
+
"text-allow-overlap": new Z(I.layout_symbol["text-allow-overlap"]),
|
|
14643
|
+
"text-overlap": new Z(I.layout_symbol["text-overlap"]),
|
|
14644
|
+
"text-ignore-placement": new Z(I.layout_symbol["text-ignore-placement"]),
|
|
14645
|
+
"text-optional": new Z(I.layout_symbol["text-optional"])
|
|
14646
14646
|
});
|
|
14647
14647
|
}
|
|
14648
14648
|
};
|
|
@@ -14727,9 +14727,9 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
14727
14727
|
let Ef;
|
|
14728
14728
|
var Df = { get paint() {
|
|
14729
14729
|
return Ef = Ef || new Xa({
|
|
14730
|
-
"background-color": new Z(
|
|
14731
|
-
"background-pattern": new Ja(
|
|
14732
|
-
"background-opacity": new Z(
|
|
14730
|
+
"background-color": new Z(I.paint_background["background-color"]),
|
|
14731
|
+
"background-pattern": new Ja(I.paint_background["background-pattern"]),
|
|
14732
|
+
"background-opacity": new Z(I.paint_background["background-opacity"])
|
|
14733
14733
|
});
|
|
14734
14734
|
} };
|
|
14735
14735
|
class Of extends $a {
|
|
@@ -14781,7 +14781,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
14781
14781
|
if (this.lng = +e, this.lat = +t, this.lat > 90 || this.lat < -90) throw Error("Invalid LngLat latitude value: must be between -90 and 90");
|
|
14782
14782
|
}
|
|
14783
14783
|
wrap() {
|
|
14784
|
-
return new Nf(
|
|
14784
|
+
return new Nf(ne(this.lng, -180, 180), this.lat);
|
|
14785
14785
|
}
|
|
14786
14786
|
toArray() {
|
|
14787
14787
|
return [this.lng, this.lat];
|
|
@@ -17216,7 +17216,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17216
17216
|
if (!n) continue;
|
|
17217
17217
|
let i = {};
|
|
17218
17218
|
m && l && (i = l.getState(n.sourceLayer || Um, m));
|
|
17219
|
-
let d =
|
|
17219
|
+
let d = re({}, c[t]);
|
|
17220
17220
|
d.paint = Qm(d.paint, n.paint, p, i, o), d.layout = Qm(d.layout, n.layout, p, i, o);
|
|
17221
17221
|
let f = !u || u(p, n, i);
|
|
17222
17222
|
if (!f) continue;
|
|
@@ -17248,7 +17248,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17248
17248
|
}
|
|
17249
17249
|
}
|
|
17250
17250
|
function Qm(e, t, n, r, i) {
|
|
17251
|
-
return
|
|
17251
|
+
return ae(e, ((e, a) => {
|
|
17252
17252
|
let o = t instanceof Ka ? t.get(a) : null;
|
|
17253
17253
|
return o != null && o.evaluate ? o.evaluate(n, r, i) : o;
|
|
17254
17254
|
}));
|
|
@@ -17390,9 +17390,9 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17390
17390
|
(o.textFitWidth || o.textFitHeight) && (u = lf(e)), v = hh(d, 0, t[0]), b = hh(f, 0, t[1]), y = hh(d, t[0], t[2]), x = hh(f, t[1], t[3]), S = t[0] - v, w = t[1] - b, C = n - y, T = r - x;
|
|
17391
17391
|
}
|
|
17392
17392
|
let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
|
|
17393
|
-
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), ee = new n(l, _), P = new n(u / s, f / s), te = new n(g / s, A / s),
|
|
17394
|
-
if (
|
|
17395
|
-
let e = Math.sin(
|
|
17393
|
+
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), ee = new n(l, _), P = new n(u / s, f / s), te = new n(g / s, A / s), ne = t * Math.PI / 180;
|
|
17394
|
+
if (ne) {
|
|
17395
|
+
let e = Math.sin(ne), t = Math.cos(ne), n = [
|
|
17396
17396
|
t,
|
|
17397
17397
|
-e,
|
|
17398
17398
|
e,
|
|
@@ -17400,17 +17400,17 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17400
17400
|
];
|
|
17401
17401
|
j._matMult(n), M._matMult(n), ee._matMult(n), N._matMult(n);
|
|
17402
17402
|
}
|
|
17403
|
-
let
|
|
17403
|
+
let re = e.stretch + e.fixed, ie = i.stretch + i.fixed;
|
|
17404
17404
|
return {
|
|
17405
17405
|
tl: j,
|
|
17406
17406
|
tr: M,
|
|
17407
17407
|
bl: ee,
|
|
17408
17408
|
br: N,
|
|
17409
17409
|
tex: {
|
|
17410
|
-
x: o.paddedRect.x + 1 +
|
|
17411
|
-
y: o.paddedRect.y + 1 +
|
|
17412
|
-
w: a.stretch + a.fixed -
|
|
17413
|
-
h: c.stretch + c.fixed -
|
|
17410
|
+
x: o.paddedRect.x + 1 + re,
|
|
17411
|
+
y: o.paddedRect.y + 1 + ie,
|
|
17412
|
+
w: a.stretch + a.fixed - re,
|
|
17413
|
+
h: c.stretch + c.fixed - ie
|
|
17414
17414
|
},
|
|
17415
17415
|
writingMode: void 0,
|
|
17416
17416
|
glyphOffset: [0, 0],
|
|
@@ -17677,7 +17677,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17677
17677
|
i && A !== "none" && (t.allowVerticalPlacement && r.vertical && (j = uf(i, r.vertical, A, m.get("icon-text-fit-padding"), h, _)), g && (i = uf(i, g, A, m.get("icon-text-fit-padding"), h, _)));
|
|
17678
17678
|
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
|
|
17679
17679
|
f.x < 0 || f.x >= O || f.y < 0 || f.y >= O || function(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T) {
|
|
17680
|
-
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, P = -1, te = -1,
|
|
17680
|
+
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, P = -1, te = -1, ne = {}, re = _s("");
|
|
17681
17681
|
if (t.allowVerticalPlacement && i.vertical) {
|
|
17682
17682
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
|
|
17683
17683
|
k = new yh(l, n, u, d, f, i.vertical, p, m, h, e), s && (A = new yh(l, n, u, d, f, s, _, v, h, e));
|
|
@@ -17686,33 +17686,33 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17686
17686
|
let r = c.layout.get("icon-rotate").evaluate(x, {}), i = c.layout.get("icon-text-fit") !== "none", o = mh(a, r, C, i), p = s ? mh(s, r, C, i) : void 0;
|
|
17687
17687
|
O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
|
|
17688
17688
|
let m = t.iconSizeData, h = null;
|
|
17689
|
-
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df &&
|
|
17689
|
+
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && le(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && le(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), P = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), te = t.icon.placedSymbolArray.length - 1);
|
|
17690
17690
|
}
|
|
17691
|
-
let
|
|
17692
|
-
for (let r of
|
|
17691
|
+
let ie = Object.keys(i.horizontal);
|
|
17692
|
+
for (let r of ie) {
|
|
17693
17693
|
let a = i.horizontal[r];
|
|
17694
17694
|
if (!D) {
|
|
17695
|
-
|
|
17695
|
+
re = _s(a.text);
|
|
17696
17696
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w);
|
|
17697
17697
|
D = new yh(l, n, u, d, f, a, p, m, h, e);
|
|
17698
17698
|
}
|
|
17699
17699
|
let s = a.positionedLines.length === 1;
|
|
17700
|
-
if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ?
|
|
17701
|
-
}
|
|
17702
|
-
i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"],
|
|
17703
|
-
let
|
|
17704
|
-
|
|
17705
|
-
let
|
|
17706
|
-
|
|
17707
|
-
let
|
|
17700
|
+
if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ie : [r], ne, P, S, w), s) break;
|
|
17701
|
+
}
|
|
17702
|
+
i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], ne, te, S, w));
|
|
17703
|
+
let ae = D ? D.boxStartIndex : t.collisionBoxArray.length, oe = D ? D.boxEndIndex : t.collisionBoxArray.length, se = k ? k.boxStartIndex : t.collisionBoxArray.length, ce = k ? k.boxEndIndex : t.collisionBoxArray.length, ue = O ? O.boxStartIndex : t.collisionBoxArray.length, de = O ? O.boxEndIndex : t.collisionBoxArray.length, fe = A ? A.boxStartIndex : t.collisionBoxArray.length, pe = A ? A.boxEndIndex : t.collisionBoxArray.length, me = -1, F = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
|
|
17704
|
+
me = F(D, me), me = F(k, me), me = F(O, me), me = F(A, me);
|
|
17705
|
+
let he = +(me > -1);
|
|
17706
|
+
he && (me *= T / xd), t.glyphOffsetArray.length >= bf.MAX_GLYPHS && le("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), x.sortKey !== void 0 && t.addToSortKeyRanges(t.symbolInstances.length, x.sortKey);
|
|
17707
|
+
let ge = Dh(c, x, w), [_e, ve] = function(t, n) {
|
|
17708
17708
|
let r = t.length, i = n == null ? void 0 : n.values;
|
|
17709
17709
|
if ((i == null ? void 0 : i.length) > 0) for (let n = 0; n < i.length; n += 2) {
|
|
17710
17710
|
let r = i[n + 1];
|
|
17711
17711
|
t.emplaceBack(e.aM[i[n]], r[0], r[1]);
|
|
17712
17712
|
}
|
|
17713
17713
|
return [r, t.length];
|
|
17714
|
-
}(t.textAnchorOffsets,
|
|
17715
|
-
t.symbolInstances.emplaceBack(n.x, n.y,
|
|
17714
|
+
}(t.textAnchorOffsets, ge);
|
|
17715
|
+
t.symbolInstances.emplaceBack(n.x, n.y, ne.right >= 0 ? ne.right : -1, ne.center >= 0 ? ne.center : -1, ne.left >= 0 ? ne.left : -1, ne.vertical || -1, P, te, re, ae, oe, se, ce, ue, de, fe, pe, u, N, ee, j, M, he, 0, p, me, _e, ve);
|
|
17716
17716
|
}(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
|
|
17717
17717
|
S,
|
|
17718
17718
|
S,
|
|
@@ -17784,7 +17784,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17784
17784
|
}
|
|
17785
17785
|
return u;
|
|
17786
17786
|
}(0, r, c, a, o, s, i, e.allowVerticalPlacement), _ = e.textSizeData, v = null;
|
|
17787
|
-
_.kind === "source" ? (v = [128 * a.layout.get("text-size").evaluate(s, {})], v[0] > df &&
|
|
17787
|
+
_.kind === "source" ? (v = [128 * a.layout.get("text-size").evaluate(s, {})], v[0] > df && le(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)) : _.kind === "composite" && (v = [128 * m.compositeTextSizes[0].evaluate(s, {}, h), 128 * m.compositeTextSizes[1].evaluate(s, {}, h)], (v[0] > df || v[1] > df) && le(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)), e.addSymbols(e.text, g, v, c, o, s, u, t, l.lineStartIndex, l.lineLength, p, h);
|
|
17788
17788
|
for (let t of d) f[t] = e.text.placedSymbolArray.length - 1;
|
|
17789
17789
|
return 4 * g.length;
|
|
17790
17790
|
}
|
|
@@ -17800,21 +17800,21 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17800
17800
|
} else i[t] = [];
|
|
17801
17801
|
return i[t].push(r), !1;
|
|
17802
17802
|
}
|
|
17803
|
-
e.$ =
|
|
17803
|
+
e.$ = we, e.A = f, e.B = Ra, e.C = pa, e.D = Z, e.E = Le, e.F = ca, e.G = function([e, t, n]) {
|
|
17804
17804
|
return t += 90, t *= Math.PI / 180, n *= Math.PI / 180, {
|
|
17805
17805
|
x: e * Math.cos(t) * Math.sin(n),
|
|
17806
17806
|
y: e * Math.sin(t) * Math.sin(n),
|
|
17807
17807
|
z: e * Math.cos(n)
|
|
17808
17808
|
};
|
|
17809
17809
|
}, e.H = xn, e.I = Xd, e.J = Ia, e.K = ua, e.L = function(e) {
|
|
17810
|
-
if (
|
|
17810
|
+
if (fe == null) {
|
|
17811
17811
|
let t = e.navigator ? e.navigator.userAgent : null;
|
|
17812
|
-
|
|
17812
|
+
fe = !!e.safari || !(!t || !(/\b(iPad|iPhone|iPod)\b/.test(t) || t.match("Safari") && !t.match("Chrome")));
|
|
17813
17813
|
}
|
|
17814
|
-
return
|
|
17815
|
-
}, e.M =
|
|
17814
|
+
return fe;
|
|
17815
|
+
}, e.M = Oe, e.N = class {
|
|
17816
17816
|
constructor(e, t) {
|
|
17817
|
-
this.target = e, this.mapId = t, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Af((() => this.process())), this.subscription =
|
|
17817
|
+
this.target = e, this.mapId = t, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Af((() => this.process())), this.subscription = _e(this.target, "message", ((e) => this.receive(e)), !1), this.globalScope = de(self) ? e : window;
|
|
17818
17818
|
}
|
|
17819
17819
|
registerMessageHandler(e, t) {
|
|
17820
17820
|
this.messageHandlers[e] = t;
|
|
@@ -17824,7 +17824,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17824
17824
|
}
|
|
17825
17825
|
sendAsync(e, t) {
|
|
17826
17826
|
return new Promise(((n, r) => {
|
|
17827
|
-
let i = Math.round(0xde0b6b3a7640000 * Math.random()).toString(36).substring(0, 10), a = t ?
|
|
17827
|
+
let i = Math.round(0xde0b6b3a7640000 * Math.random()).toString(36).substring(0, 10), a = t ? _e(t.signal, "abort", (() => {
|
|
17828
17828
|
a == null || a.unsubscribe(), delete this.resolveRejects[i];
|
|
17829
17829
|
let t = {
|
|
17830
17830
|
id: i,
|
|
@@ -17865,7 +17865,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17865
17865
|
delete this.abortControllers[n], e && e.abort();
|
|
17866
17866
|
return;
|
|
17867
17867
|
}
|
|
17868
|
-
if (
|
|
17868
|
+
if (de(self) || t.mustQueue) return this.tasks[n] = t, this.taskQueue.push(n), void this.invoker.trigger();
|
|
17869
17869
|
this.processTask(n, t);
|
|
17870
17870
|
}
|
|
17871
17871
|
}
|
|
@@ -17925,10 +17925,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17925
17925
|
let n = {};
|
|
17926
17926
|
for (let r of t) r in e && (n[r] = e[r]);
|
|
17927
17927
|
return n;
|
|
17928
|
-
}, e.W = Nf, e.X =
|
|
17928
|
+
}, e.W = Nf, e.X = ne, e.Y = Lf, e.Z = If, e._ = t, e.a = Ce, e.a$ = function(e) {
|
|
17929
17929
|
var t = new f(3);
|
|
17930
17930
|
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t;
|
|
17931
|
-
}, e.a0 = l, e.a1 = u, e.a2 =
|
|
17931
|
+
}, e.a0 = l, e.a1 = u, e.a2 = F, e.a3 = Kf, e.a4 = zf, e.a5 = Bf, e.a6 = O, e.a7 = Hf, e.a8 = Jf, e.a9 = 25, e.aA = function(e) {
|
|
17932
17932
|
var t = e[0], n = e[1];
|
|
17933
17933
|
return Math.sqrt(t * t + n * n);
|
|
17934
17934
|
}, e.aB = function(e) {
|
|
@@ -17957,7 +17957,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17957
17957
|
n = [n[0] * t - n[1] * e, n[0] * e + n[1] * t];
|
|
17958
17958
|
}
|
|
17959
17959
|
return [i ? n[0] : k(t, n[0], e.zoom), i ? n[1] : k(t, n[1], e.zoom)];
|
|
17960
|
-
}, e.aN = pf, e.aO = Oh, e.aP = ef, e.aQ = (e) => e.type === "symbol", e.aR = Zl, e.aS = oo, e.aT = ml, e.aU = Go, e.aV = ss, e.aW = is, e.aX =
|
|
17960
|
+
}, e.aN = pf, e.aO = Oh, e.aP = ef, e.aQ = (e) => e.type === "symbol", e.aR = Zl, e.aS = oo, e.aT = ml, e.aU = Go, e.aV = ss, e.aW = is, e.aX = ye, e.aY = Vf, e.aZ = y, e.a_ = v, e.aa = Wf, e.ab = (e) => {
|
|
17961
17961
|
let t = window.document.createElement("video");
|
|
17962
17962
|
return t.muted = !0, new Promise(((n) => {
|
|
17963
17963
|
t.onloadstart = () => {
|
|
@@ -17965,11 +17965,11 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17965
17965
|
};
|
|
17966
17966
|
for (let n of e) {
|
|
17967
17967
|
let e = window.document.createElement("source");
|
|
17968
|
-
|
|
17968
|
+
Me(n) || (t.crossOrigin = "Anonymous"), e.src = n, t.appendChild(e);
|
|
17969
17969
|
}
|
|
17970
17970
|
}));
|
|
17971
17971
|
}, e.ac = z, e.ad = function() {
|
|
17972
|
-
return
|
|
17972
|
+
return ie++;
|
|
17973
17973
|
}, e.ae = Po, e.af = bf, e.ag = Um, e.ah = _i, e.ai = Hs, e.aj = Xf, e.ak = function(e) {
|
|
17974
17974
|
let t = {};
|
|
17975
17975
|
if (e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((e, n, r, i) => {
|
|
@@ -17980,7 +17980,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
17980
17980
|
isNaN(e) ? delete t["max-age"] : t["max-age"] = e;
|
|
17981
17981
|
}
|
|
17982
17982
|
return t;
|
|
17983
|
-
}, e.al = te, e.am = 85.051129, e.an =
|
|
17983
|
+
}, e.al = te, e.am = 85.051129, e.an = ve, e.ao = function(e) {
|
|
17984
17984
|
return 2 ** e;
|
|
17985
17985
|
}, e.ap = m, e.aq = Rf, e.ar = function(e) {
|
|
17986
17986
|
return Math.log(e) / Math.LN2;
|
|
@@ -18074,7 +18074,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18074
18074
|
};
|
|
18075
18075
|
}, e.ay = function(e, { uSize: t, uSizeT: n }, { lowerSize: r, upperSize: i }) {
|
|
18076
18076
|
return e.kind === "source" ? r / 128 : e.kind === "composite" ? xn.number(r / 128, i / 128, n) : t;
|
|
18077
|
-
}, e.az = E, e.b =
|
|
18077
|
+
}, e.az = E, e.b = pe, e.b$ = Ts, e.b0 = function(e, t, n) {
|
|
18078
18078
|
return e[0] = t[0] - n[0], e[1] = t[1] - n[1], e[2] = t[2] - n[2], e;
|
|
18079
18079
|
}, e.b1 = function(e, t) {
|
|
18080
18080
|
var n = t[0], r = t[1], i = t[2], a = n * n + r * r + i * i;
|
|
@@ -18161,16 +18161,16 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18161
18161
|
let n = j(e, 2 * Math.PI), r = j(t, 2 * Math.PI);
|
|
18162
18162
|
return Math.min(Math.abs(n - r), Math.abs(n - r + 2 * Math.PI), Math.abs(n - r - 2 * Math.PI));
|
|
18163
18163
|
}, e.bN = function() {
|
|
18164
|
-
let e = {}, t =
|
|
18165
|
-
for (let n in
|
|
18166
|
-
let r =
|
|
18164
|
+
let e = {}, t = I.$version;
|
|
18165
|
+
for (let n in I.$root) {
|
|
18166
|
+
let r = I.$root[n];
|
|
18167
18167
|
if (r.required) {
|
|
18168
18168
|
let i = null;
|
|
18169
18169
|
i = n === "version" ? t : r.type === "array" ? [] : {}, i != null && (e[n] = i);
|
|
18170
18170
|
}
|
|
18171
18171
|
}
|
|
18172
18172
|
return e;
|
|
18173
|
-
}, e.bO =
|
|
18173
|
+
}, e.bO = Ae, e.bP = xa, e.bQ = function e(t, n) {
|
|
18174
18174
|
if (Array.isArray(t)) {
|
|
18175
18175
|
if (!Array.isArray(n) || t.length !== n.length) return !1;
|
|
18176
18176
|
for (let r = 0; r < t.length; r++) if (!e(t[r], n[r])) return !1;
|
|
@@ -18182,11 +18182,11 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18182
18182
|
return !0;
|
|
18183
18183
|
}
|
|
18184
18184
|
return t === n;
|
|
18185
|
-
}, e.bR =
|
|
18185
|
+
}, e.bR = Te, e.bS = function(e) {
|
|
18186
18186
|
e = e.slice();
|
|
18187
18187
|
let t = Object.create(null);
|
|
18188
18188
|
for (let n = 0; n < e.length; n++) t[e[n].id] = e[n];
|
|
18189
|
-
for (let n = 0; n < e.length; n++) "ref" in e[n] && (e[n] =
|
|
18189
|
+
for (let n = 0; n < e.length; n++) "ref" in e[n] && (e[n] = ze(e[n], t[e[n].ref]));
|
|
18190
18190
|
return e;
|
|
18191
18191
|
}, e.bT = function(e, t) {
|
|
18192
18192
|
if (e.type === "custom") return new kf(e, t);
|
|
@@ -18202,57 +18202,57 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18202
18202
|
case "raster": return new no(e, t);
|
|
18203
18203
|
case "symbol": return new Tf(e, t);
|
|
18204
18204
|
}
|
|
18205
|
-
}, e.bU = (e) => e.type === "raster", e.bV =
|
|
18205
|
+
}, e.bU = (e) => e.type === "raster", e.bV = se, e.bW = function(e, t) {
|
|
18206
18206
|
if (!e) return [{
|
|
18207
18207
|
command: "setStyle",
|
|
18208
18208
|
args: [t]
|
|
18209
18209
|
}];
|
|
18210
18210
|
let n = [];
|
|
18211
18211
|
try {
|
|
18212
|
-
if (!
|
|
18212
|
+
if (!R(e.version, t.version)) return [{
|
|
18213
18213
|
command: "setStyle",
|
|
18214
18214
|
args: [t]
|
|
18215
18215
|
}];
|
|
18216
|
-
|
|
18216
|
+
R(e.center, t.center) || n.push({
|
|
18217
18217
|
command: "setCenter",
|
|
18218
18218
|
args: [t.center]
|
|
18219
|
-
}),
|
|
18219
|
+
}), R(e.state, t.state) || n.push({
|
|
18220
18220
|
command: "setGlobalState",
|
|
18221
18221
|
args: [t.state]
|
|
18222
|
-
}),
|
|
18222
|
+
}), R(e.centerAltitude, t.centerAltitude) || n.push({
|
|
18223
18223
|
command: "setCenterAltitude",
|
|
18224
18224
|
args: [t.centerAltitude]
|
|
18225
|
-
}),
|
|
18225
|
+
}), R(e.zoom, t.zoom) || n.push({
|
|
18226
18226
|
command: "setZoom",
|
|
18227
18227
|
args: [t.zoom]
|
|
18228
|
-
}),
|
|
18228
|
+
}), R(e.bearing, t.bearing) || n.push({
|
|
18229
18229
|
command: "setBearing",
|
|
18230
18230
|
args: [t.bearing]
|
|
18231
|
-
}),
|
|
18231
|
+
}), R(e.pitch, t.pitch) || n.push({
|
|
18232
18232
|
command: "setPitch",
|
|
18233
18233
|
args: [t.pitch]
|
|
18234
|
-
}),
|
|
18234
|
+
}), R(e.roll, t.roll) || n.push({
|
|
18235
18235
|
command: "setRoll",
|
|
18236
18236
|
args: [t.roll]
|
|
18237
|
-
}),
|
|
18237
|
+
}), R(e.sprite, t.sprite) || n.push({
|
|
18238
18238
|
command: "setSprite",
|
|
18239
18239
|
args: [t.sprite]
|
|
18240
|
-
}),
|
|
18240
|
+
}), R(e.glyphs, t.glyphs) || n.push({
|
|
18241
18241
|
command: "setGlyphs",
|
|
18242
18242
|
args: [t.glyphs]
|
|
18243
|
-
}),
|
|
18243
|
+
}), R(e.transition, t.transition) || n.push({
|
|
18244
18244
|
command: "setTransition",
|
|
18245
18245
|
args: [t.transition]
|
|
18246
|
-
}),
|
|
18246
|
+
}), R(e.light, t.light) || n.push({
|
|
18247
18247
|
command: "setLight",
|
|
18248
18248
|
args: [t.light]
|
|
18249
|
-
}),
|
|
18249
|
+
}), R(e.terrain, t.terrain) || n.push({
|
|
18250
18250
|
command: "setTerrain",
|
|
18251
18251
|
args: [t.terrain]
|
|
18252
|
-
}),
|
|
18252
|
+
}), R(e.sky, t.sky) || n.push({
|
|
18253
18253
|
command: "setSky",
|
|
18254
18254
|
args: [t.sky]
|
|
18255
|
-
}),
|
|
18255
|
+
}), R(e.projection, t.projection) || n.push({
|
|
18256
18256
|
command: "setProjection",
|
|
18257
18257
|
args: [t.projection]
|
|
18258
18258
|
});
|
|
@@ -18260,7 +18260,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18260
18260
|
(function(e, t, n, r) {
|
|
18261
18261
|
let i;
|
|
18262
18262
|
for (i in t = t || {}, e = e || {}) Object.prototype.hasOwnProperty.call(e, i) && (Object.prototype.hasOwnProperty.call(t, i) || He(i, n, r));
|
|
18263
|
-
for (i in t) Object.prototype.hasOwnProperty.call(t, i) && (Object.prototype.hasOwnProperty.call(e, i) ?
|
|
18263
|
+
for (i in t) Object.prototype.hasOwnProperty.call(t, i) && (Object.prototype.hasOwnProperty.call(e, i) ? R(e[i], t[i]) || (e[i].type === "geojson" && t[i].type === "geojson" && We(e, t, i) ? Be(n, {
|
|
18264
18264
|
command: "setGeoJSONSourceData",
|
|
18265
18265
|
args: [i, t[i].data]
|
|
18266
18266
|
}) : Ue(i, t, n, r)) : Ve(i, t, n));
|
|
@@ -18285,18 +18285,18 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18285
18285
|
command: "addLayer",
|
|
18286
18286
|
args: [o[l], f]
|
|
18287
18287
|
}), s.splice(s.length - e, 0, l), c[l] = !0);
|
|
18288
|
-
for (let e = 0; e < i.length; e++) if (l = i[e], u = a[l], d = o[l], !c[l] && !
|
|
18289
|
-
for (p in Ge(u.layout, d.layout, n, l, null, "setLayoutProperty"), Ge(u.paint, d.paint, n, l, null, "setPaintProperty"),
|
|
18288
|
+
for (let e = 0; e < i.length; e++) if (l = i[e], u = a[l], d = o[l], !c[l] && !R(u, d)) if (R(u.source, d.source) && R(u["source-layer"], d["source-layer"]) && R(u.type, d.type)) {
|
|
18289
|
+
for (p in Ge(u.layout, d.layout, n, l, null, "setLayoutProperty"), Ge(u.paint, d.paint, n, l, null, "setPaintProperty"), R(u.filter, d.filter) || Be(n, {
|
|
18290
18290
|
command: "setFilter",
|
|
18291
18291
|
args: [l, d.filter]
|
|
18292
|
-
}),
|
|
18292
|
+
}), R(u.minzoom, d.minzoom) && R(u.maxzoom, d.maxzoom) || Be(n, {
|
|
18293
18293
|
command: "setLayerZoomRange",
|
|
18294
18294
|
args: [
|
|
18295
18295
|
l,
|
|
18296
18296
|
d.minzoom,
|
|
18297
18297
|
d.maxzoom
|
|
18298
18298
|
]
|
|
18299
|
-
}), u) Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ge(u[p], d[p], n, l, p.slice(6), "setPaintProperty") :
|
|
18299
|
+
}), u) Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ge(u[p], d[p], n, l, p.slice(6), "setPaintProperty") : R(u[p], d[p]) || Be(n, {
|
|
18300
18300
|
command: "setLayerProperty",
|
|
18301
18301
|
args: [
|
|
18302
18302
|
l,
|
|
@@ -18304,7 +18304,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18304
18304
|
d[p]
|
|
18305
18305
|
]
|
|
18306
18306
|
}));
|
|
18307
|
-
for (p in d) Object.prototype.hasOwnProperty.call(d, p) && !Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ge(u[p], d[p], n, l, p.slice(6), "setPaintProperty") :
|
|
18307
|
+
for (p in d) Object.prototype.hasOwnProperty.call(d, p) && !Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ge(u[p], d[p], n, l, p.slice(6), "setPaintProperty") : R(u[p], d[p]) || Be(n, {
|
|
18308
18308
|
command: "setLayerProperty",
|
|
18309
18309
|
args: [
|
|
18310
18310
|
l,
|
|
@@ -18330,7 +18330,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18330
18330
|
}, e.bX = function(e) {
|
|
18331
18331
|
let t = [], n = e.id;
|
|
18332
18332
|
return n === void 0 && t.push({ message: `layers.${n}: missing required property "id"` }), e.render === void 0 && t.push({ message: `layers.${n}: missing required method "render"` }), e.renderingMode && e.renderingMode !== "2d" && e.renderingMode !== "3d" && t.push({ message: `layers.${n}: property "renderingMode" must be either "2d" or "3d"` }), t;
|
|
18333
|
-
}, e.bY =
|
|
18333
|
+
}, e.bY = ae, e.bZ = oe, e.b_ = class extends Ss {
|
|
18334
18334
|
constructor(e, t) {
|
|
18335
18335
|
super(e, t), this.current = 0;
|
|
18336
18336
|
}
|
|
@@ -18374,8 +18374,8 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18374
18374
|
let t = /* @__PURE__ */ new Float64Array(9);
|
|
18375
18375
|
var n, r, i, a, o, s, c, l, u, d = (i = (r = e)[0]) * (c = i + i), f = (a = r[1]) * c, p, m = (o = r[2]) * c, h = o * (l = a + a), g, _ = (s = r[3]) * c, v = s * l, y = s * (u = o + o);
|
|
18376
18376
|
(n = t)[0] = 1 - (p = a * l) - (g = o * u), n[3] = f - y, n[6] = m + v, n[1] = f + y, n[4] = 1 - d - g, n[7] = h - _, n[2] = m - v, n[5] = h + _, n[8] = 1 - d - p;
|
|
18377
|
-
let b =
|
|
18378
|
-
return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -
|
|
18377
|
+
let b = ye(-Math.asin(te(t[2], -1, 1))), x, S;
|
|
18378
|
+
return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -ye(Math.atan2(t[3], t[4]))) : (x = ye(t[5] === 0 && t[8] === 0 ? 0 : Math.atan2(t[5], t[8])), S = ye(t[1] === 0 && t[0] === 0 ? 0 : Math.atan2(t[1], t[0]))), {
|
|
18379
18379
|
roll: x,
|
|
18380
18380
|
pitch: b + 90,
|
|
18381
18381
|
bearing: S
|
|
@@ -18388,7 +18388,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18388
18388
|
return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
|
|
18389
18389
|
}, e.by = j, e.bz = function() {
|
|
18390
18390
|
return /* @__PURE__ */ new Float64Array(3);
|
|
18391
|
-
}, e.c =
|
|
18391
|
+
}, e.c = Ee, e.c$ = si, e.c0 = class extends Ss {
|
|
18392
18392
|
constructor(e, t) {
|
|
18393
18393
|
super(e, t), this.current = Es;
|
|
18394
18394
|
}
|
|
@@ -18450,9 +18450,9 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18450
18450
|
}
|
|
18451
18451
|
}
|
|
18452
18452
|
}, e.cA = function(e, t) {
|
|
18453
|
-
return
|
|
18453
|
+
return be[t] && "touches" in e;
|
|
18454
18454
|
}, e.cB = function(e) {
|
|
18455
|
-
return
|
|
18455
|
+
return be[e] || xe[e];
|
|
18456
18456
|
}, e.cC = function(e, t, n) {
|
|
18457
18457
|
var r = t[0], i = t[1];
|
|
18458
18458
|
return e[0] = n[0] * r + n[4] * i + n[12], e[1] = n[1] * r + n[5] * i + n[13], e;
|
|
@@ -18461,10 +18461,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18461
18461
|
return !(e < 0 || e > 25 || r < 0 || r >= 1 || n < 0 || n >= 1);
|
|
18462
18462
|
}, e.cE = function(e, t) {
|
|
18463
18463
|
return e[0] = t[0], e[1] = 0, e[2] = 0, e[3] = 0, e[4] = 0, e[5] = t[1], e[6] = 0, e[7] = 0, e[8] = 0, e[9] = 0, e[10] = t[2], e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, e;
|
|
18464
|
-
}, e.cF = class extends lo {}, e.cG =
|
|
18465
|
-
|
|
18464
|
+
}, e.cF = class extends lo {}, e.cG = ke, e.cH = function(e, t) {
|
|
18465
|
+
Ee.REGISTERED_PROTOCOLS[e] = t;
|
|
18466
18466
|
}, e.cI = function(e) {
|
|
18467
|
-
delete
|
|
18467
|
+
delete Ee.REGISTERED_PROTOCOLS[e];
|
|
18468
18468
|
}, e.cJ = function(e, t) {
|
|
18469
18469
|
let n = {};
|
|
18470
18470
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -18527,7 +18527,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18527
18527
|
let b = !1;
|
|
18528
18528
|
if ((n = o.icon) != null && n.name) {
|
|
18529
18529
|
let e = t.imageMap[o.icon.name];
|
|
18530
|
-
e && (v = cf(t.imagePositions[o.icon.name], a.get("icon-offset").evaluate(o, {}, t.canonical), a.get("icon-anchor").evaluate(o, {}, t.canonical)), b = !!e.sdf, t.bucket.sdfIcons === void 0 ? t.bucket.sdfIcons = b : t.bucket.sdfIcons !== b &&
|
|
18530
|
+
e && (v = cf(t.imagePositions[o.icon.name], a.get("icon-offset").evaluate(o, {}, t.canonical), a.get("icon-anchor").evaluate(o, {}, t.canonical)), b = !!e.sdf, t.bucket.sdfIcons === void 0 ? t.bucket.sdfIcons = b : t.bucket.sdfIcons !== b && le("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (e.pixelRatio !== t.bucket.pixelRatio || a.get("icon-rotate").constantOr(1) !== 0) && (t.bucket.iconsNeedLinear = !0));
|
|
18531
18531
|
}
|
|
18532
18532
|
let x = jh(g.horizontal) || g.vertical;
|
|
18533
18533
|
(r = t.bucket).iconsInText || (r.iconsInText = !!x && x.iconsInText), (x || v) && kh(t.bucket, o, g, v, t.imageMap, s, m, h, y, b, t.canonical, t.subdivisionGranularity);
|
|
@@ -18563,13 +18563,13 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18563
18563
|
}, e.cV = Ll, e.cW = Pd, e.cX = Vm, e.cY = function(e, n, r, i, a) {
|
|
18564
18564
|
return t(this, void 0, void 0, (function* () {
|
|
18565
18565
|
if (u()) try {
|
|
18566
|
-
return yield
|
|
18566
|
+
return yield F(e, n, r, i, a);
|
|
18567
18567
|
} catch {}
|
|
18568
18568
|
return function(e, t, n, r, i) {
|
|
18569
18569
|
let a = e.width, o = e.height;
|
|
18570
|
-
|
|
18571
|
-
let s =
|
|
18572
|
-
return
|
|
18570
|
+
he && ge || (he = new OffscreenCanvas(a, o), ge = he.getContext("2d", { willReadFrequently: !0 })), he.width = a, he.height = o, ge.drawImage(e, 0, 0, a, o);
|
|
18571
|
+
let s = ge.getImageData(t, n, r, i);
|
|
18572
|
+
return ge.clearRect(0, 0, a, o), s.data;
|
|
18573
18573
|
}(e, n, r, i, a);
|
|
18574
18574
|
}));
|
|
18575
18575
|
}, e.cZ = Ic, e.c_ = class {
|
|
@@ -18598,10 +18598,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18598
18598
|
}, e.cx = function(e, t, n) {
|
|
18599
18599
|
let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
|
|
18600
18600
|
var a, o;
|
|
18601
|
-
return
|
|
18601
|
+
return ye(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
|
|
18602
18602
|
}, e.cy = P, e.cz = function(e, t) {
|
|
18603
18603
|
var n;
|
|
18604
|
-
if (!
|
|
18604
|
+
if (!xe[t]) return !1;
|
|
18605
18605
|
let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
18606
18606
|
return e instanceof i.MouseEvent || e instanceof i.WheelEvent;
|
|
18607
18607
|
}, e.d = A, e.d0 = class {
|
|
@@ -18697,7 +18697,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18697
18697
|
getClusterLeaves(e, t, n) {
|
|
18698
18698
|
return this.tileIndex.getLeaves(e, t, n);
|
|
18699
18699
|
}
|
|
18700
|
-
}, e.d1 = Fa, e.e =
|
|
18700
|
+
}, e.d1 = Fa, e.e = re, e.f = Me, e.g = De, e.h = (e) => t(void 0, void 0, void 0, (function* () {
|
|
18701
18701
|
if (e.byteLength === 0) return createImageBitmap(new ImageData(1, 1));
|
|
18702
18702
|
let t = new Blob([new Uint8Array(e)], { type: "image/png" });
|
|
18703
18703
|
try {
|
|
@@ -18705,18 +18705,18 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
18705
18705
|
} catch (e) {
|
|
18706
18706
|
throw Error(`Could not load image because of ${A(e).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`);
|
|
18707
18707
|
}
|
|
18708
|
-
})), e.i =
|
|
18708
|
+
})), e.i = de, e.j = (e) => new Promise(((t, n) => {
|
|
18709
18709
|
let r = new Image();
|
|
18710
18710
|
r.onload = () => {
|
|
18711
|
-
t(r), URL.revokeObjectURL(r.src), r.onload = null, window.requestAnimationFrame((() => r.src =
|
|
18711
|
+
t(r), URL.revokeObjectURL(r.src), r.onload = null, window.requestAnimationFrame((() => r.src = me));
|
|
18712
18712
|
}, r.onerror = () => n(/* @__PURE__ */ Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
|
|
18713
18713
|
let i = new Blob([new Uint8Array(e)], { type: "image/png" });
|
|
18714
|
-
r.src = e.byteLength ? URL.createObjectURL(i) :
|
|
18715
|
-
})), e.k = (e, t) =>
|
|
18714
|
+
r.src = e.byteLength ? URL.createObjectURL(i) : me;
|
|
18715
|
+
})), e.k = (e, t) => je(re(e, { type: "json" }), t), e.l = Ie, e.m = je, e.n = Fe, e.o = (e, t) => je(re(e, { type: "arrayBuffer" }), t), e.p = Yd, e.q = function(e) {
|
|
18716
18716
|
return new Pd(e).readFields(Kd, []);
|
|
18717
18717
|
}, e.r = function(e) {
|
|
18718
18718
|
return /[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e));
|
|
18719
|
-
}, e.s =
|
|
18719
|
+
}, e.s = _e, e.t = Cc, e.u = Xa, e.v = sa, e.w = le, e.x = I, e.y = Va, e.z = la;
|
|
18720
18720
|
})), n("worker", ["./shared"], (function(e) {
|
|
18721
18721
|
class t {
|
|
18722
18722
|
constructor(e, t) {
|
|
@@ -20297,10 +20297,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20297
20297
|
for (let t of this.actors) t.unregisterMessageHandler(e);
|
|
20298
20298
|
}
|
|
20299
20299
|
}
|
|
20300
|
-
function
|
|
20300
|
+
function ne() {
|
|
20301
20301
|
return ee || (ee = new te(P(), t.M), ee.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), ee;
|
|
20302
20302
|
}
|
|
20303
|
-
function
|
|
20303
|
+
function re(e, n) {
|
|
20304
20304
|
let r = t.O();
|
|
20305
20305
|
return t.Q(r, r, [
|
|
20306
20306
|
1,
|
|
@@ -20312,7 +20312,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20312
20312
|
1
|
|
20313
20313
|
]), e.calculatePosMatrix ? t.U(r, r, e.calculatePosMatrix(n.toUnwrapped())) : r;
|
|
20314
20314
|
}
|
|
20315
|
-
function
|
|
20315
|
+
function ie(e, t, n, r, i, a, o) {
|
|
20316
20316
|
var s;
|
|
20317
20317
|
let c = function(e, t, n) {
|
|
20318
20318
|
if (e) for (let r of e) {
|
|
@@ -20325,14 +20325,14 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20325
20325
|
}
|
|
20326
20326
|
return !1;
|
|
20327
20327
|
}((s = i == null ? void 0 : i.layers) == null ? null : s, t, e.id), l = a.maxPitchScaleFactor(), u = e.tilesIn(r, l, c);
|
|
20328
|
-
u.sort(
|
|
20328
|
+
u.sort(ae);
|
|
20329
20329
|
let d = [];
|
|
20330
20330
|
for (let r of u) d.push({
|
|
20331
20331
|
wrappedTileID: r.tileID.wrapped().key,
|
|
20332
|
-
queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l,
|
|
20332
|
+
queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l, re(a, r.tileID), o ? (e, t) => o(r.tileID, e, t) : void 0)
|
|
20333
20333
|
});
|
|
20334
20334
|
return function(e, t) {
|
|
20335
|
-
for (let n in e) for (let r of e[n])
|
|
20335
|
+
for (let n in e) for (let r of e[n]) oe(r, t);
|
|
20336
20336
|
return e;
|
|
20337
20337
|
}(function(e) {
|
|
20338
20338
|
let t = {}, n = {};
|
|
@@ -20350,15 +20350,15 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20350
20350
|
return t;
|
|
20351
20351
|
}(d), e);
|
|
20352
20352
|
}
|
|
20353
|
-
function
|
|
20353
|
+
function ae(e, t) {
|
|
20354
20354
|
let n = e.tileID, r = t.tileID;
|
|
20355
20355
|
return n.overscaledZ - r.overscaledZ || n.canonical.y - r.canonical.y || n.wrap - r.wrap || n.canonical.x - r.canonical.x;
|
|
20356
20356
|
}
|
|
20357
|
-
function
|
|
20357
|
+
function oe(e, t) {
|
|
20358
20358
|
let n = e.feature, r = t.getFeatureState(n.layer["source-layer"], n.id);
|
|
20359
20359
|
n.source = n.layer.source, n.layer["source-layer"] && (n.sourceLayer = n.layer["source-layer"]), n.state = r;
|
|
20360
20360
|
}
|
|
20361
|
-
function
|
|
20361
|
+
function se(e, n, r, i) {
|
|
20362
20362
|
return t._(this, void 0, void 0, (function* () {
|
|
20363
20363
|
let a = e;
|
|
20364
20364
|
if (e.url ? a = (yield t.k(yield n.transformRequest(e.url, "Source"), r)).data : yield s.frameAsync(r, i), !a) return null;
|
|
@@ -20375,7 +20375,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20375
20375
|
return "vector_layers" in a && a.vector_layers && (o.vectorLayerIds = a.vector_layers.map(((e) => e.id))), o;
|
|
20376
20376
|
}));
|
|
20377
20377
|
}
|
|
20378
|
-
class
|
|
20378
|
+
class ce {
|
|
20379
20379
|
constructor(e, t) {
|
|
20380
20380
|
e && (t ? this.setSouthWest(e).setNorthEast(t) : Array.isArray(e) && (e.length === 4 ? this.setSouthWest([e[0], e[1]]).setNorthEast([e[2], e[3]]) : this.setSouthWest(e[0]).setNorthEast(e[1])));
|
|
20381
20381
|
}
|
|
@@ -20389,7 +20389,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20389
20389
|
let n = this._sw, r = this._ne, i, a;
|
|
20390
20390
|
if (e instanceof t.W) i = e, a = e;
|
|
20391
20391
|
else {
|
|
20392
|
-
if (!(e instanceof
|
|
20392
|
+
if (!(e instanceof ce)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(ce.convert(e)) : this.extend(t.W.convert(e)) : e && ("lng" in e || "lon" in e) && "lat" in e ? this.extend(t.W.convert(e)) : this;
|
|
20393
20393
|
if (i = e._sw, a = e._ne, !i || !a) return this;
|
|
20394
20394
|
}
|
|
20395
20395
|
return n || r ? (n.lng = Math.min(i.lng, n.lng), n.lat = Math.min(i.lat, n.lat), r.lng = Math.max(a.lng, r.lng), r.lat = Math.max(a.lat, r.lat)) : (this._sw = new t.W(i.lng, i.lat), this._ne = new t.W(a.lng, a.lat)), this;
|
|
@@ -20435,27 +20435,27 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20435
20435
|
return this._sw.lng > this._ne.lng && (i = this._sw.lng >= n && n >= this._ne.lng), this._sw.lat <= r && r <= this._ne.lat && i;
|
|
20436
20436
|
}
|
|
20437
20437
|
intersects(e) {
|
|
20438
|
-
if (!((e =
|
|
20438
|
+
if (!((e = ce.convert(e)).getNorth() >= this.getSouth() && e.getSouth() <= this.getNorth())) return !1;
|
|
20439
20439
|
let n = Math.abs(this.getEast() - this.getWest()), r = Math.abs(e.getEast() - e.getWest());
|
|
20440
20440
|
if (n >= 360 || r >= 360) return !0;
|
|
20441
20441
|
let i = t.X(this.getWest(), -180, 180), a = t.X(this.getEast(), -180, 180), o = t.X(e.getWest(), -180, 180), s = t.X(e.getEast(), -180, 180), c = i > a, l = o > s;
|
|
20442
20442
|
return !(!c || !l) || (c ? s >= i || o <= a : l ? a >= o || i <= s : o <= a && s >= i);
|
|
20443
20443
|
}
|
|
20444
20444
|
static convert(e) {
|
|
20445
|
-
return e instanceof
|
|
20445
|
+
return e instanceof ce ? e : e && new ce(e);
|
|
20446
20446
|
}
|
|
20447
20447
|
static fromLngLat(e, n = 0) {
|
|
20448
20448
|
let r = 360 * n / 40075017, i = r / Math.cos(Math.PI / 180 * e.lat);
|
|
20449
|
-
return new
|
|
20449
|
+
return new ce(new t.W(e.lng - i, e.lat - r), new t.W(e.lng + i, e.lat + r));
|
|
20450
20450
|
}
|
|
20451
20451
|
adjustAntiMeridian() {
|
|
20452
20452
|
let e = new t.W(this._sw.lng, this._sw.lat), n = new t.W(this._ne.lng, this._ne.lat);
|
|
20453
|
-
return new
|
|
20453
|
+
return new ce(e, e.lng > n.lng ? new t.W(n.lng + 360, n.lat) : n);
|
|
20454
20454
|
}
|
|
20455
20455
|
}
|
|
20456
|
-
class
|
|
20456
|
+
class le {
|
|
20457
20457
|
constructor(e, t, n) {
|
|
20458
|
-
this.bounds =
|
|
20458
|
+
this.bounds = ce.convert(this.validateBounds(e)), this.minzoom = t || 0, this.maxzoom = n || 24;
|
|
20459
20459
|
}
|
|
20460
20460
|
validateBounds(e) {
|
|
20461
20461
|
return Array.isArray(e) && e.length === 4 ? [
|
|
@@ -20475,7 +20475,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20475
20475
|
return e.x >= r && e.x < a && e.y >= i && e.y < o;
|
|
20476
20476
|
}
|
|
20477
20477
|
}
|
|
20478
|
-
class
|
|
20478
|
+
class ue extends t.E {
|
|
20479
20479
|
constructor(e, n, r, i) {
|
|
20480
20480
|
if (super(), this.id = e, this.dispatcher = r, this.type = "vector", this.minzoom = 0, this.maxzoom = 22, this.scheme = "xyz", this.tileSize = 512, this.reparseOverscaled = !0, this.isTileClipped = !0, this._loaded = !1, t.e(this, t.V(n, [
|
|
20481
20481
|
"url",
|
|
@@ -20490,8 +20490,8 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20490
20490
|
return t._(this, arguments, void 0, (function* (e = !1) {
|
|
20491
20491
|
this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
|
20492
20492
|
try {
|
|
20493
|
-
let n = yield
|
|
20494
|
-
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new
|
|
20493
|
+
let n = yield se(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
|
|
20494
|
+
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new le(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
|
|
20495
20495
|
dataType: "source",
|
|
20496
20496
|
sourceDataType: "metadata"
|
|
20497
20497
|
})), this.fire(new t.n("data", {
|
|
@@ -20621,7 +20621,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20621
20621
|
return !1;
|
|
20622
20622
|
}
|
|
20623
20623
|
}
|
|
20624
|
-
class
|
|
20624
|
+
class de extends t.E {
|
|
20625
20625
|
constructor(e, n, r, i) {
|
|
20626
20626
|
super(), this.id = e, this.dispatcher = r, this.setEventedParent(i), this.type = "raster", this.minzoom = 0, this.maxzoom = 22, this.roundZoom = !0, this.scheme = "xyz", this.tileSize = 512, this._loaded = !1, this._options = t.e({ type: "raster" }, n), t.e(this, t.V(n, [
|
|
20627
20627
|
"url",
|
|
@@ -20633,8 +20633,8 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20633
20633
|
return t._(this, arguments, void 0, (function* (e = !1) {
|
|
20634
20634
|
this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
|
20635
20635
|
try {
|
|
20636
|
-
let n = yield
|
|
20637
|
-
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new
|
|
20636
|
+
let n = yield se(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
|
|
20637
|
+
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new le(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
|
|
20638
20638
|
dataType: "source",
|
|
20639
20639
|
sourceDataType: "metadata"
|
|
20640
20640
|
})), this.fire(new t.n("data", {
|
|
@@ -20710,7 +20710,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20710
20710
|
return !1;
|
|
20711
20711
|
}
|
|
20712
20712
|
}
|
|
20713
|
-
class
|
|
20713
|
+
class fe extends de {
|
|
20714
20714
|
constructor(e, n, r, i) {
|
|
20715
20715
|
super(e, n, r, i), this.type = "raster-dem", this.maxzoom = 22, this._options = t.e({ type: "raster-dem" }, n), this.encoding = n.encoding || "mapbox", this.redFactor = n.redFactor, this.greenFactor = n.greenFactor, this.blueFactor = n.blueFactor, this.baseShift = n.baseShift;
|
|
20716
20716
|
}
|
|
@@ -20781,10 +20781,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20781
20781
|
}));
|
|
20782
20782
|
}
|
|
20783
20783
|
}
|
|
20784
|
-
function
|
|
20784
|
+
function pe(e, t) {
|
|
20785
20785
|
return t ? e.properties[t] : e.id;
|
|
20786
20786
|
}
|
|
20787
|
-
function
|
|
20787
|
+
function me(e, t) {
|
|
20788
20788
|
let n = { id: e.id };
|
|
20789
20789
|
if (t.removeAllProperties && (delete e.removeProperties, delete e.addOrUpdateProperties, delete t.removeProperties), t.removeProperties) for (let n of t.removeProperties) {
|
|
20790
20790
|
let t = e.addOrUpdateProperties.findIndex(((e) => e.key === n));
|
|
@@ -20792,28 +20792,28 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20792
20792
|
}
|
|
20793
20793
|
return (e.removeAllProperties || t.removeAllProperties) && (n.removeAllProperties = !0), (e.removeProperties || t.removeProperties) && (n.removeProperties = [...e.removeProperties || [], ...t.removeProperties || []]), (e.addOrUpdateProperties || t.addOrUpdateProperties) && (n.addOrUpdateProperties = [...e.addOrUpdateProperties || [], ...t.addOrUpdateProperties || []]), (e.newGeometry || t.newGeometry) && (n.newGeometry = t.newGeometry || e.newGeometry), n;
|
|
20794
20794
|
}
|
|
20795
|
-
function
|
|
20795
|
+
function F(e) {
|
|
20796
20796
|
var t, n;
|
|
20797
20797
|
if (!e) return {};
|
|
20798
20798
|
let r = {};
|
|
20799
20799
|
return r.removeAll = e.removeAll, r.remove = new Set(e.remove || []), r.add = new Map((t = e.add) == null ? void 0 : t.map(((e) => [e.id, e]))), r.update = new Map((n = e.update) == null ? void 0 : n.map(((e) => [e.id, e]))), r;
|
|
20800
20800
|
}
|
|
20801
|
-
function me(e) {
|
|
20802
|
-
return e && e.length !== 0 ? typeof e[0] == "number" ? [e] : e.flatMap(((e) => me(e))) : [];
|
|
20803
|
-
}
|
|
20804
20801
|
function he(e) {
|
|
20805
|
-
return e.
|
|
20802
|
+
return e && e.length !== 0 ? typeof e[0] == "number" ? [e] : e.flatMap(((e) => he(e))) : [];
|
|
20806
20803
|
}
|
|
20807
20804
|
function ge(e) {
|
|
20808
|
-
|
|
20805
|
+
return e.type === "GeometryCollection" ? e.geometries.flatMap(((e) => ge(e))) : he(e.coordinates);
|
|
20806
|
+
}
|
|
20807
|
+
function _e(e) {
|
|
20808
|
+
let t = new ce(), n;
|
|
20809
20809
|
switch (e.type) {
|
|
20810
20810
|
case "FeatureCollection":
|
|
20811
|
-
n = e.features.flatMap(((e) =>
|
|
20811
|
+
n = e.features.flatMap(((e) => ge(e.geometry)));
|
|
20812
20812
|
break;
|
|
20813
20813
|
case "Feature":
|
|
20814
|
-
n =
|
|
20814
|
+
n = ge(e.geometry);
|
|
20815
20815
|
break;
|
|
20816
|
-
default: n =
|
|
20816
|
+
default: n = ge(e);
|
|
20817
20817
|
}
|
|
20818
20818
|
if (n.length === 0) return t;
|
|
20819
20819
|
for (let e of n) {
|
|
@@ -20822,7 +20822,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20822
20822
|
}
|
|
20823
20823
|
return t;
|
|
20824
20824
|
}
|
|
20825
|
-
class
|
|
20825
|
+
class ve extends t.E {
|
|
20826
20826
|
constructor(e, n, r, i) {
|
|
20827
20827
|
super(), this.id = e, this.type = "geojson", this.minzoom = 0, this.maxzoom = 18, this.tileSize = 512, this.isTileClipped = !0, this.reparseOverscaled = !0, this._removed = !1, this._isUpdatingWorker = !1, this._pendingWorkerUpdate = { data: n.data }, this.actor = r.getActor(), this.setEventedParent(i), this._data = typeof n.data == "string" ? { url: n.data } : { geojson: n.data }, this._options = t.e({}, n), this._collectResourceTiming = n.collectResourceTiming, n.maxzoom !== void 0 && (this.maxzoom = n.maxzoom), n.type && (this.type = n.type), n.attribution && (this.attribution = n.attribution), this.promoteId = n.promoteId, n.clusterMaxZoom !== void 0 && this.maxzoom <= n.clusterMaxZoom && t.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${n.clusterMaxZoom}".`), this.workerOptions = t.e({
|
|
20828
20828
|
source: this.id,
|
|
@@ -20875,13 +20875,13 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20875
20875
|
this._pendingWorkerUpdate.diff = function(e, t) {
|
|
20876
20876
|
if (!e) return t || {};
|
|
20877
20877
|
if (!t) return e || {};
|
|
20878
|
-
let n =
|
|
20878
|
+
let n = F(e), r = F(t);
|
|
20879
20879
|
(function(e, t) {
|
|
20880
20880
|
t.removeAll && (e.add.clear(), e.update.clear(), e.remove.clear(), t.remove.clear());
|
|
20881
20881
|
for (let n of t.remove) e.add.delete(n), e.update.delete(n);
|
|
20882
20882
|
for (let [n, r] of t.update) {
|
|
20883
20883
|
let i = e.update.get(n);
|
|
20884
|
-
i && (t.update.set(n,
|
|
20884
|
+
i && (t.update.set(n, me(i, r)), e.update.delete(n));
|
|
20885
20885
|
}
|
|
20886
20886
|
})(n, r);
|
|
20887
20887
|
let i = {};
|
|
@@ -20904,7 +20904,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20904
20904
|
}
|
|
20905
20905
|
getBounds() {
|
|
20906
20906
|
return t._(this, void 0, void 0, (function* () {
|
|
20907
|
-
return
|
|
20907
|
+
return _e(yield this.getData());
|
|
20908
20908
|
}));
|
|
20909
20909
|
}
|
|
20910
20910
|
setClusterOptions(e) {
|
|
@@ -20995,13 +20995,13 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
20995
20995
|
let n = /* @__PURE__ */ new Map();
|
|
20996
20996
|
if (e == null || e.type == null) return n;
|
|
20997
20997
|
if (e.type === "Feature") {
|
|
20998
|
-
let r =
|
|
20998
|
+
let r = pe(e, t);
|
|
20999
20999
|
return r == null ? void 0 : (n.set(r, e), n);
|
|
21000
21000
|
}
|
|
21001
21001
|
if (e.type === "FeatureCollection") {
|
|
21002
21002
|
let r = /* @__PURE__ */ new Set();
|
|
21003
21003
|
for (let i of e.features) {
|
|
21004
|
-
let e =
|
|
21004
|
+
let e = pe(i, t);
|
|
21005
21005
|
if (e == null || r.has(e)) return;
|
|
21006
21006
|
r.add(e), n.set(e, i);
|
|
21007
21007
|
}
|
|
@@ -21021,7 +21021,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21021
21021
|
t && (a.push(t.geometry), e.delete(n));
|
|
21022
21022
|
}
|
|
21023
21023
|
if (t.add) for (let r of t.add) {
|
|
21024
|
-
let t =
|
|
21024
|
+
let t = pe(r, n);
|
|
21025
21025
|
if (t == null) continue;
|
|
21026
21026
|
let i = e.get(t);
|
|
21027
21027
|
i && a.push(i.geometry), a.push(r.geometry), e.set(t, r);
|
|
@@ -21043,14 +21043,14 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21043
21043
|
return e.removeAll || this._options.cluster ? void 0 : n;
|
|
21044
21044
|
}
|
|
21045
21045
|
_getShouldReloadTileOptions(e) {
|
|
21046
|
-
if (e) return { affectedBounds: e.filter(Boolean).map(((e) =>
|
|
21046
|
+
if (e) return { affectedBounds: e.filter(Boolean).map(((e) => _e(e))) };
|
|
21047
21047
|
}
|
|
21048
21048
|
shouldReloadTile(e, { affectedBounds: n }) {
|
|
21049
21049
|
if (e.state === "loading") return !0;
|
|
21050
21050
|
if (e.state === "unloaded") return !1;
|
|
21051
21051
|
let { buffer: r, extent: i } = this.workerOptions.geojsonVtOptions, a = function({ x: e, y: n, z: r }, i = 0) {
|
|
21052
21052
|
let a = t.a4((e - i) / 2 ** r), o = t.a5((n + 1 + i) / 2 ** r), s = t.a4((e + 1 + i) / 2 ** r), c = t.a5((n - i) / 2 ** r);
|
|
21053
|
-
return new
|
|
21053
|
+
return new ce([a, o], [s, c]);
|
|
21054
21054
|
}(e.tileID.canonical, r / i);
|
|
21055
21055
|
for (let e of n) if (a.intersects(e)) return !0;
|
|
21056
21056
|
return !1;
|
|
@@ -21122,7 +21122,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21122
21122
|
return !1;
|
|
21123
21123
|
}
|
|
21124
21124
|
}
|
|
21125
|
-
class
|
|
21125
|
+
class ye extends t.E {
|
|
21126
21126
|
constructor(e, t, n, r) {
|
|
21127
21127
|
super(), this.flippedWindingOrder = !1, this.id = e, this.dispatcher = n, this.coordinates = t.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(r), this.options = t;
|
|
21128
21128
|
}
|
|
@@ -21214,7 +21214,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21214
21214
|
return o;
|
|
21215
21215
|
}
|
|
21216
21216
|
}
|
|
21217
|
-
class
|
|
21217
|
+
class be extends ye {
|
|
21218
21218
|
constructor(e, t, n, r) {
|
|
21219
21219
|
super(e, t, n, r), this._onPlayingHandler = () => {
|
|
21220
21220
|
var e;
|
|
@@ -21283,7 +21283,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21283
21283
|
return this.video && !this.video.paused;
|
|
21284
21284
|
}
|
|
21285
21285
|
}
|
|
21286
|
-
class
|
|
21286
|
+
class xe extends ye {
|
|
21287
21287
|
constructor(e, n, r, i) {
|
|
21288
21288
|
super(e, n, r, i), n.coordinates ? Array.isArray(n.coordinates) && n.coordinates.length === 4 && !n.coordinates.some(((e) => !Array.isArray(e) || e.length !== 2 || e.some(((e) => typeof e != "number")))) || this.fire(new t.l(new t.ac(`sources.${e}`, null, "\"coordinates\" property must be an array of 4 longitude/latitude array pairs"))) : this.fire(new t.l(new t.ac(`sources.${e}`, null, "missing required property \"coordinates\""))), n.animate && typeof n.animate != "boolean" && this.fire(new t.l(new t.ac(`sources.${e}`, null, "optional \"animate\" property must be a boolean value"))), n.canvas ? typeof n.canvas == "string" || n.canvas instanceof HTMLCanvasElement || this.fire(new t.l(new t.ac(`sources.${e}`, null, "\"canvas\" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance"))) : this.fire(new t.l(new t.ac(`sources.${e}`, null, "missing required property \"canvas\""))), this.options = n, this.animate = n.animate === void 0 || n.animate;
|
|
21289
21289
|
}
|
|
@@ -21337,21 +21337,21 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21337
21337
|
return !1;
|
|
21338
21338
|
}
|
|
21339
21339
|
}
|
|
21340
|
-
let
|
|
21340
|
+
let Se = {}, Ce = (e) => {
|
|
21341
21341
|
switch (e) {
|
|
21342
|
-
case "geojson": return
|
|
21343
|
-
case "image": return
|
|
21344
|
-
case "raster": return
|
|
21345
|
-
case "raster-dem": return
|
|
21346
|
-
case "vector": return
|
|
21347
|
-
case "video": return
|
|
21348
|
-
case "canvas": return
|
|
21349
|
-
}
|
|
21350
|
-
return
|
|
21351
|
-
},
|
|
21352
|
-
class
|
|
21342
|
+
case "geojson": return ve;
|
|
21343
|
+
case "image": return ye;
|
|
21344
|
+
case "raster": return de;
|
|
21345
|
+
case "raster-dem": return fe;
|
|
21346
|
+
case "vector": return ue;
|
|
21347
|
+
case "video": return be;
|
|
21348
|
+
case "canvas": return xe;
|
|
21349
|
+
}
|
|
21350
|
+
return Se[e];
|
|
21351
|
+
}, we = "RTLPluginLoaded";
|
|
21352
|
+
class Te extends t.E {
|
|
21353
21353
|
constructor() {
|
|
21354
|
-
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher =
|
|
21354
|
+
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = ne();
|
|
21355
21355
|
}
|
|
21356
21356
|
_syncState(e) {
|
|
21357
21357
|
return this.status = e, this.dispatcher.broadcast("SRPS", {
|
|
@@ -21379,24 +21379,24 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21379
21379
|
}
|
|
21380
21380
|
_requestImport() {
|
|
21381
21381
|
return t._(this, void 0, void 0, (function* () {
|
|
21382
|
-
yield this._syncState("loading"), this.status = "loaded", this.fire(new t.n(
|
|
21382
|
+
yield this._syncState("loading"), this.status = "loaded", this.fire(new t.n(we));
|
|
21383
21383
|
}));
|
|
21384
21384
|
}
|
|
21385
21385
|
lazyLoad() {
|
|
21386
21386
|
this.status === "unavailable" ? this.status = "requested" : this.status === "deferred" && this._requestImport();
|
|
21387
21387
|
}
|
|
21388
21388
|
}
|
|
21389
|
-
let
|
|
21390
|
-
function
|
|
21391
|
-
return
|
|
21389
|
+
let Ee = null;
|
|
21390
|
+
function De() {
|
|
21391
|
+
return Ee || (Ee = new Te()), Ee;
|
|
21392
21392
|
}
|
|
21393
|
-
var
|
|
21393
|
+
var Oe, ke;
|
|
21394
21394
|
(function(e) {
|
|
21395
21395
|
e[e.Base = 0] = "Base", e[e.Parent = 1] = "Parent";
|
|
21396
|
-
})(
|
|
21396
|
+
})(Oe || (Oe = {})), function(e) {
|
|
21397
21397
|
e[e.Departing = 0] = "Departing", e[e.Incoming = 1] = "Incoming";
|
|
21398
|
-
}(
|
|
21399
|
-
class
|
|
21398
|
+
}(ke || (ke = {}));
|
|
21399
|
+
class Ae {
|
|
21400
21400
|
constructor(e, n) {
|
|
21401
21401
|
this.timeAdded = 0, this.fadeEndTime = 0, this.fadeOpacity = 1, this.tileID = e, this.uid = t.ad(), this.uses = 0, this.tileSize = n, this.buckets = {}, this.expirationTime = null, this.queryPadding = 0, this.hasSymbolBuckets = !1, this.hasRTLText = !1, this.dependencies = {}, this.rtt = [], this.rttFingerprint = {}, this.expiredRequestCount = 0, this.state = "loading";
|
|
21402
21402
|
}
|
|
@@ -21442,7 +21442,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21442
21442
|
if (this.hasRTLText = !1, this.hasSymbolBuckets) for (let e in this.buckets) {
|
|
21443
21443
|
let n = this.buckets[e];
|
|
21444
21444
|
if (n instanceof t.af && n.hasRTLText) {
|
|
21445
|
-
this.hasRTLText = !0,
|
|
21445
|
+
this.hasRTLText = !0, De().lazyLoad();
|
|
21446
21446
|
break;
|
|
21447
21447
|
}
|
|
21448
21448
|
}
|
|
@@ -21574,7 +21574,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21574
21574
|
return !1;
|
|
21575
21575
|
}
|
|
21576
21576
|
}
|
|
21577
|
-
class
|
|
21577
|
+
class je {
|
|
21578
21578
|
constructor() {
|
|
21579
21579
|
this.state = {}, this.stateChanges = {}, this.deletedStates = {}, this.revision = 0;
|
|
21580
21580
|
}
|
|
@@ -21634,18 +21634,18 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21634
21634
|
this.stateChanges = {}, this.deletedStates = {}, Object.keys(o).length !== 0 && (this.revision++, e.setFeatureState(o, n));
|
|
21635
21635
|
}
|
|
21636
21636
|
}
|
|
21637
|
-
let
|
|
21638
|
-
function
|
|
21637
|
+
let Me = 89.25;
|
|
21638
|
+
function Ne(e, n) {
|
|
21639
21639
|
let r = t.al(n.lat, -t.am, t.am);
|
|
21640
21640
|
return new t.P(t.Z(n.lng) * e, t.Y(r) * e);
|
|
21641
21641
|
}
|
|
21642
|
-
function
|
|
21642
|
+
function Pe(e, n) {
|
|
21643
21643
|
return new t.a7(n.x / e, n.y / e).toLngLat();
|
|
21644
21644
|
}
|
|
21645
|
-
function
|
|
21646
|
-
return e.cameraToCenterDistance * Math.min(.85 * Math.tan(t.an(90 - e.pitch)), Math.tan(t.an(
|
|
21645
|
+
function Fe(e) {
|
|
21646
|
+
return e.cameraToCenterDistance * Math.min(.85 * Math.tan(t.an(90 - e.pitch)), Math.tan(t.an(Me - e.pitch)));
|
|
21647
21647
|
}
|
|
21648
|
-
function
|
|
21648
|
+
function Ie(e, n) {
|
|
21649
21649
|
let r = e.canonical, i = n / t.ao(r.z), a = r.x + 2 ** r.z * e.wrap, o = t.ap(/* @__PURE__ */ new Float64Array(16));
|
|
21650
21650
|
return t.Q(o, o, [
|
|
21651
21651
|
a * i,
|
|
@@ -21657,11 +21657,11 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21657
21657
|
1
|
|
21658
21658
|
]), o;
|
|
21659
21659
|
}
|
|
21660
|
-
function
|
|
21661
|
-
let o = t.a7.fromLngLat(e, n), s = a * t.aq(1, e.lat), { x: c, y: l, z: u } =
|
|
21660
|
+
function Le(e, n, r, i, a) {
|
|
21661
|
+
let o = t.a7.fromLngLat(e, n), s = a * t.aq(1, e.lat), { x: c, y: l, z: u } = I(r, i);
|
|
21662
21662
|
return new t.a7(o.x + s * -c, o.y + s * -l, o.z + s * -u);
|
|
21663
21663
|
}
|
|
21664
|
-
function
|
|
21664
|
+
function I(e, n) {
|
|
21665
21665
|
let r = t.an(e), i = t.an(n), a = Math.cos(-r), o = Math.sin(r);
|
|
21666
21666
|
return {
|
|
21667
21667
|
x: o * Math.sin(i),
|
|
@@ -21669,24 +21669,24 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21669
21669
|
z: a
|
|
21670
21670
|
};
|
|
21671
21671
|
}
|
|
21672
|
-
function
|
|
21672
|
+
function Re(e, t, n) {
|
|
21673
21673
|
let r = t.intersectsFrustum(e);
|
|
21674
21674
|
if (!n || r === 0) return r;
|
|
21675
21675
|
let i = t.intersectsPlane(n);
|
|
21676
21676
|
return i === 0 ? 0 : r === 2 && i === 2 ? 2 : 1;
|
|
21677
21677
|
}
|
|
21678
|
-
function
|
|
21678
|
+
function ze(e, t, n) {
|
|
21679
21679
|
let r = 0, i = (n - t) / 10;
|
|
21680
21680
|
for (let a = 0; a < 10; a++) r += i * Math.cos(t + (a + .5) / 10 * (n - t)) ** +e;
|
|
21681
21681
|
return r;
|
|
21682
21682
|
}
|
|
21683
|
-
function
|
|
21683
|
+
function R(e, n) {
|
|
21684
21684
|
return function(r, i, a, o, s) {
|
|
21685
|
-
let c = 2 * ((e - 1) / t.ar(Math.cos(t.an(
|
|
21685
|
+
let c = 2 * ((e - 1) / t.ar(Math.cos(t.an(Me - s)) / Math.cos(t.an(Me))) - 1), l = Math.acos(a / o), u = 2 * ze(c - 1, 0, t.an(s / 2)), d = Math.min(t.an(Me), l + t.an(s / 2)), f = ze(c - 1, Math.min(d, l - t.an(s / 2)), d), p = Math.atan(i / a), m = Math.hypot(i, a), h = r;
|
|
21686
21686
|
return h += t.ar(o / m / Math.max(.5, Math.cos(t.an(s / 2)))), h += c * t.ar(Math.cos(p)) / 2, h -= t.ar(Math.max(1, f / u / n)) / 2, h;
|
|
21687
21687
|
};
|
|
21688
21688
|
}
|
|
21689
|
-
let Be =
|
|
21689
|
+
let Be = R(9.314, 3);
|
|
21690
21690
|
function Ve(e, n) {
|
|
21691
21691
|
let r = (n.roundZoom ? Math.round : Math.floor)(e.zoom + t.ar(e.tileSize / n.tileSize));
|
|
21692
21692
|
return Math.max(0, r);
|
|
@@ -21717,7 +21717,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21717
21717
|
z: p.zoom
|
|
21718
21718
|
}, w = s.getTileBoundingVolume(C, p.wrap, e.elevation, n);
|
|
21719
21719
|
if (!S) {
|
|
21720
|
-
let e =
|
|
21720
|
+
let e = Re(r, w, i);
|
|
21721
21721
|
if (e === 0) continue;
|
|
21722
21722
|
S = e === 2;
|
|
21723
21723
|
}
|
|
@@ -21749,18 +21749,18 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21749
21749
|
function Ge(e, t, n, r, i, a, o) {
|
|
21750
21750
|
if (!t.hasData()) return !1;
|
|
21751
21751
|
let { tileID: s, fadingRole: c, fadingDirection: l, fadingParentID: u } = t;
|
|
21752
|
-
if (c ===
|
|
21752
|
+
if (c === Oe.Base && l === ke.Incoming && u) return n[u.key] = u, !0;
|
|
21753
21753
|
let d = Math.max(s.overscaledZ - i, a);
|
|
21754
21754
|
for (let i = s.overscaledZ - 1; i >= d; i--) {
|
|
21755
21755
|
let a = s.scaledTo(i), c = e.getLoadedTile(a);
|
|
21756
21756
|
if (c) return t.setCrossFadeLogic({
|
|
21757
|
-
fadingRole:
|
|
21758
|
-
fadingDirection:
|
|
21757
|
+
fadingRole: Oe.Base,
|
|
21758
|
+
fadingDirection: ke.Incoming,
|
|
21759
21759
|
fadingParentID: c.tileID,
|
|
21760
21760
|
fadeEndTime: r + o
|
|
21761
21761
|
}), c.setCrossFadeLogic({
|
|
21762
|
-
fadingRole:
|
|
21763
|
-
fadingDirection:
|
|
21762
|
+
fadingRole: Oe.Parent,
|
|
21763
|
+
fadingDirection: ke.Departing,
|
|
21764
21764
|
fadeEndTime: r + o
|
|
21765
21765
|
}), n[a.key] = a, !0;
|
|
21766
21766
|
}
|
|
@@ -21780,14 +21780,14 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21780
21780
|
let n = e.getLoadedTile(a);
|
|
21781
21781
|
if (!n) continue;
|
|
21782
21782
|
let { fadingRole: c, fadingDirection: l, fadingParentID: u } = n;
|
|
21783
|
-
c ===
|
|
21784
|
-
fadingRole:
|
|
21785
|
-
fadingDirection:
|
|
21783
|
+
c === Oe.Base && l === ke.Departing && u || (n.setCrossFadeLogic({
|
|
21784
|
+
fadingRole: Oe.Base,
|
|
21785
|
+
fadingDirection: ke.Departing,
|
|
21786
21786
|
fadingParentID: t.tileID,
|
|
21787
21787
|
fadeEndTime: i + o
|
|
21788
21788
|
}), t.setCrossFadeLogic({
|
|
21789
|
-
fadingRole:
|
|
21790
|
-
fadingDirection:
|
|
21789
|
+
fadingRole: Oe.Parent,
|
|
21790
|
+
fadingDirection: ke.Incoming,
|
|
21791
21791
|
fadeEndTime: i + o
|
|
21792
21792
|
})), r[a.key] = a, s = !0;
|
|
21793
21793
|
}
|
|
@@ -21859,10 +21859,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
21859
21859
|
})), this.on("error", (() => {
|
|
21860
21860
|
this._sourceErrored = this._source.loaded();
|
|
21861
21861
|
})), this._source = ((e, t, n, r) => {
|
|
21862
|
-
let i = new (
|
|
21862
|
+
let i = new (Ce(t.type))(e, t, n, r);
|
|
21863
21863
|
if (i.id !== e) throw Error(`Expected Source id to be ${e} instead of ${i.id}`);
|
|
21864
21864
|
return i;
|
|
21865
|
-
})(e, n, r, this), this._inViewTiles = new Ye(), this._outOfViewCache = new t.av(0, ((e) => this._unloadTile(e))), this._timers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._rasterFadeDuration = 0, this._maxFadingAncestorLevels = 5, this._state = new
|
|
21865
|
+
})(e, n, r, this), this._inViewTiles = new Ye(), this._outOfViewCache = new t.av(0, ((e) => this._unloadTile(e))), this._timers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._rasterFadeDuration = 0, this._maxFadingAncestorLevels = 5, this._state = new je(), this._didEmitContent = !1, this._updated = !1;
|
|
21866
21866
|
}
|
|
21867
21867
|
onAdd(e) {
|
|
21868
21868
|
var t;
|
|
@@ -22036,7 +22036,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
22036
22036
|
let c = l(), u = t.at(n);
|
|
22037
22037
|
for (let t of n) {
|
|
22038
22038
|
let n = e.getTileById(t.key);
|
|
22039
|
-
n.fadingDirection !==
|
|
22039
|
+
n.fadingDirection !== ke.Departing && n.fadeOpacity !== 0 || n.resetFadeLogic(), Ge(e, n, r, c, i, a, s) || Ke(e, n, r, c, o, s) || z(n, u, c, s) || n.resetFadeLogic();
|
|
22040
22040
|
}
|
|
22041
22041
|
}(this._inViewTiles, r, o, this._maxFadingAncestorLevels, this._source.minzoom, this._source.maxzoom, this._rasterFadeDuration), s ? this._cleanUpRasterTiles(o) : this._cleanUpVectorTiles(o);
|
|
22042
22042
|
}
|
|
@@ -22085,7 +22085,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
22085
22085
|
if (n) return n;
|
|
22086
22086
|
n = this._outOfViewCache.getAndRemove(e), n && (n.resetFadeLogic(), this._setTileReloadTimer(e.key, n), n.tileID = e, this._state.initializeTileState(n, this.map ? this.map.painter : null));
|
|
22087
22087
|
let r = n;
|
|
22088
|
-
return n || (n = new
|
|
22088
|
+
return n || (n = new Ae(e, this._source.tileSize * e.overscaleFactor()), this._loadTile(n, e.key, n.state)), n.uses++, this._inViewTiles.setTile(e.key, n), r || this._source.fire(new t.n("dataloading", {
|
|
22089
22089
|
tile: n,
|
|
22090
22090
|
coord: n.tileID,
|
|
22091
22091
|
dataType: "source"
|
|
@@ -23040,10 +23040,10 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
23040
23040
|
placeable: !1,
|
|
23041
23041
|
offscreen: null,
|
|
23042
23042
|
occluded: !1
|
|
23043
|
-
}, te = { placeable: !1 },
|
|
23044
|
-
f.textFeatureIndex ?
|
|
23045
|
-
let
|
|
23046
|
-
if (
|
|
23043
|
+
}, te = { placeable: !1 }, ne = null, re = null, ie = null, ae = 0, oe = 0, se = 0;
|
|
23044
|
+
f.textFeatureIndex ? ae = f.textFeatureIndex : e.useRuntimeCollisionCircles && (ae = e.featureIndex), f.verticalTextFeatureIndex && (oe = f.verticalTextFeatureIndex);
|
|
23045
|
+
let ce = f.textBox;
|
|
23046
|
+
if (ce) {
|
|
23047
23047
|
let n = (n) => {
|
|
23048
23048
|
let r = t.ax.horizontal;
|
|
23049
23049
|
if (i.allowVerticalPlacement && !n && this.prevPlacement) {
|
|
@@ -23061,7 +23061,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
23061
23061
|
let r = this.collisionIndex.placeCollisionBox(t, _, u, D, c, S, x, o, m.predicate, O, void 0, k);
|
|
23062
23062
|
return r != null && r.placeable && (this.markUsedOrientation(i, n, e), this.placedOrientations[e.crossTileID] = n), r;
|
|
23063
23063
|
};
|
|
23064
|
-
a((() => r(
|
|
23064
|
+
a((() => r(ce, t.ax.horizontal)), (() => {
|
|
23065
23065
|
let n = f.verticalTextBox;
|
|
23066
23066
|
return i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && n ? r(n, t.ax.vertical) : {
|
|
23067
23067
|
box: null,
|
|
@@ -23082,13 +23082,13 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
23082
23082
|
p ? p = null : T = _;
|
|
23083
23083
|
}
|
|
23084
23084
|
return r && !b && (b = {
|
|
23085
|
-
box: this.collisionIndex.placeCollisionBox(
|
|
23085
|
+
box: this.collisionIndex.placeCollisionBox(ce, "always", u, D, c, S, x, o, m.predicate, O, void 0, k).box,
|
|
23086
23086
|
offscreen: !1,
|
|
23087
23087
|
placeable: !1,
|
|
23088
23088
|
occluded: !1
|
|
23089
23089
|
}), b;
|
|
23090
23090
|
};
|
|
23091
|
-
a((() => h(
|
|
23091
|
+
a((() => h(ce, f.iconBox, t.ax.horizontal)), (() => {
|
|
23092
23092
|
let n = f.verticalTextBox;
|
|
23093
23093
|
return i.allowVerticalPlacement && !(P != null && P.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
|
|
23094
23094
|
box: null,
|
|
@@ -23103,20 +23103,20 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
23103
23103
|
}
|
|
23104
23104
|
}
|
|
23105
23105
|
}
|
|
23106
|
-
if (
|
|
23106
|
+
if (ne = P, j = ne == null ? void 0 : ne.placeable, N = ne == null ? void 0 : ne.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
|
|
23107
23107
|
let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
|
|
23108
|
-
|
|
23108
|
+
re = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), re.circles.length && re.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || re.circles.length > 0 && !re.collisionDetected, N && (N = re.offscreen);
|
|
23109
23109
|
}
|
|
23110
|
-
if (f.iconFeatureIndex && (
|
|
23110
|
+
if (f.iconFeatureIndex && (se = f.iconFeatureIndex), f.iconBox) {
|
|
23111
23111
|
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && ee ? ee : void 0, k);
|
|
23112
|
-
te && te.placeable && f.verticalIconBox ? (
|
|
23112
|
+
te && te.placeable && f.verticalIconBox ? (ie = e(f.verticalIconBox), M = ie.placeable) : (ie = e(f.iconBox), M = ie.placeable), N && (N = ie.offscreen);
|
|
23113
23113
|
}
|
|
23114
|
-
let
|
|
23115
|
-
|
|
23116
|
-
let
|
|
23117
|
-
if (j &&
|
|
23114
|
+
let le = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, ue = g || e.numIconVertices === 0;
|
|
23115
|
+
le || ue ? ue ? le || M && (M = j) : j = M && j : M = j = M && j;
|
|
23116
|
+
let de = M && ie.placeable;
|
|
23117
|
+
if (j && ne.placeable && this.collisionIndex.insertCollisionBox(ne.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, te && te.placeable && oe ? oe : ae, m.ID), de && this.collisionIndex.insertCollisionBox(ie.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, se, m.ID), re && j && this.collisionIndex.insertCollisionCircles(re.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, ae, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, ne, ie, re), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
|
|
23118
23118
|
if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
|
|
23119
|
-
this.placements[e.crossTileID] = new St((j || T) && !(
|
|
23119
|
+
this.placements[e.crossTileID] = new St((j || T) && !(ne != null && ne.occluded), (M || E) && !(ie != null && ie.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
|
|
23120
23120
|
};
|
|
23121
23121
|
if (w) {
|
|
23122
23122
|
if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
|
|
@@ -23816,7 +23816,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
23816
23816
|
}
|
|
23817
23817
|
getMaxBounds() {
|
|
23818
23818
|
var e, t;
|
|
23819
|
-
return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new
|
|
23819
|
+
return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new ce([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]);
|
|
23820
23820
|
}
|
|
23821
23821
|
setMaxBounds(e) {
|
|
23822
23822
|
e ? (this._lngRange = [e.getWest(), e.getEast()], this._latRange = [e.getSouth(), e.getNorth()], this.constrainInternal()) : (this._lngRange = null, this._latRange = [-t.am, t.am]);
|
|
@@ -23869,7 +23869,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
23869
23869
|
this._callbacks.calcMatrices();
|
|
23870
23870
|
}
|
|
23871
23871
|
calculateCenterFromCameraLngLatAlt(e, n, r, i) {
|
|
23872
|
-
let a = r === void 0 ? this.bearing : r, o = i = i === void 0 ? this.pitch : i, { distanceToCenter: s, clampedElevation: c } = this._distanceToCenterFromAltElevationPitch(n, this.elevation, o), { x: l, y: u } =
|
|
23872
|
+
let a = r === void 0 ? this.bearing : r, o = i = i === void 0 ? this.pitch : i, { distanceToCenter: s, clampedElevation: c } = this._distanceToCenterFromAltElevationPitch(n, this.elevation, o), { x: l, y: u } = I(o, a), d = t.a7.fromLngLat(e, n), f, p, m = t.aY(1, d.y), h = 0;
|
|
23873
23873
|
do {
|
|
23874
23874
|
if (h += 1, h > 10) break;
|
|
23875
23875
|
p = s / m, f = new t.a7(d.x + l * p, d.y + u * p), m = 1 / f.meterInMercatorCoordinateUnits();
|
|
@@ -23882,7 +23882,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
23882
23882
|
}
|
|
23883
23883
|
recalculateZoomAndCenter(e) {
|
|
23884
23884
|
if (this.elevation - e == 0) return;
|
|
23885
|
-
let n = 1 / this.worldSize, r = t.aq(1, this.center.lat) * this.worldSize, i = t.a7.fromLngLat(this.center, this.elevation), a = i.x / n, o = i.y / n, s = i.z / n, c = this.pitch, l = this.bearing, { x: u, y: d, z: f } =
|
|
23885
|
+
let n = 1 / this.worldSize, r = t.aq(1, this.center.lat) * this.worldSize, i = t.a7.fromLngLat(this.center, this.elevation), a = i.x / n, o = i.y / n, s = i.z / n, c = this.pitch, l = this.bearing, { x: u, y: d, z: f } = I(c, l), p = this.cameraToCenterDistance, m = a + p * -u, h = o + p * -d, g = s + p * f, { distanceToCenter: _, clampedElevation: v } = this._distanceToCenterFromAltElevationPitch(g / r, e, c), y = _ * r, b = new t.a7((m + u * y) * n, (h + d * y) * n, 0).toLngLat(), x = t.aq(1, b.lat), S = t.ar(this.height / 2 / Math.tan(this.fovInRadians / 2) / _ / x / this.tileSize);
|
|
23886
23886
|
this._elevation = v, this._center = b, this.setZoom(S);
|
|
23887
23887
|
}
|
|
23888
23888
|
_distanceToCenterFromAltElevationPitch(e, n, r) {
|
|
@@ -23901,7 +23901,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
23901
23901
|
}
|
|
23902
23902
|
getCameraLngLat() {
|
|
23903
23903
|
let e = t.aq(1, this.center.lat) * this.worldSize;
|
|
23904
|
-
return
|
|
23904
|
+
return Le(this.center, this.elevation, this.pitch, this.bearing, this.cameraToCenterDistance / e).toLngLat();
|
|
23905
23905
|
}
|
|
23906
23906
|
getMercatorTileCoordinates(e) {
|
|
23907
23907
|
if (!e) return [
|
|
@@ -24370,8 +24370,8 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24370
24370
|
o = t.Y(e[1]) * a, s = t.Y(e[0]) * a, s - o < p && (u = p / (s - o));
|
|
24371
24371
|
}
|
|
24372
24372
|
i && (c = t.X(t.Z(i[0]) * a, 0, a), l = t.X(t.Z(i[1]) * a, 0, a), l < c && (l += a), l - c < f && (d = f / (l - c)));
|
|
24373
|
-
let { x: m, y: h } =
|
|
24374
|
-
if (v) return r.center =
|
|
24373
|
+
let { x: m, y: h } = Ne(a, e), g, _, v = Math.max(d || 0, u || 0);
|
|
24374
|
+
if (v) return r.center = Pe(a, new t.P(d ? (l + c) / 2 : m, u ? (s + o) / 2 : h)).wrap(), r.zoom += t.ar(v), r;
|
|
24375
24375
|
if (this._helper._latRange) {
|
|
24376
24376
|
let e = p / 2;
|
|
24377
24377
|
h - e < o && (_ = o + e), h + e > s && (_ = s - e);
|
|
@@ -24382,7 +24382,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24382
24382
|
let r = f / 2;
|
|
24383
24383
|
n - r < c && (g = c + r), n + r > l && (g = l - r);
|
|
24384
24384
|
}
|
|
24385
|
-
return (g !== void 0 || _ !== void 0) && (r.center =
|
|
24385
|
+
return (g !== void 0 || _ !== void 0) && (r.center = Pe(a, new t.P(g == null ? m : g, _ == null ? h : _)).wrap()), r;
|
|
24386
24386
|
}, this.applyConstrain = (e, t) => this._helper.applyConstrain(e, t), this._helper = new Xt({
|
|
24387
24387
|
calcMatrices: () => this._calcMatrices(),
|
|
24388
24388
|
defaultConstrain: (e, t) => this.defaultConstrain(e, t)
|
|
@@ -24475,11 +24475,11 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24475
24475
|
return t.aE(i, i, r), new t.P(i[0] / i[3], i[1] / i[3]);
|
|
24476
24476
|
}
|
|
24477
24477
|
getBounds() {
|
|
24478
|
-
let e = Math.max(0, this._helper._height / 2 -
|
|
24479
|
-
return new
|
|
24478
|
+
let e = Math.max(0, this._helper._height / 2 - Fe(this));
|
|
24479
|
+
return new ce().extend(this.screenPointToLocation(new t.P(0, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new t.P(0, this._helper._height)));
|
|
24480
24480
|
}
|
|
24481
24481
|
isPointOnMapSurface(e, t) {
|
|
24482
|
-
return t ? t.pointCoordinate(e) != null : e.y > this.height / 2 -
|
|
24482
|
+
return t ? t.pointCoordinate(e) != null : e.y > this.height / 2 - Fe(this);
|
|
24483
24483
|
}
|
|
24484
24484
|
calculatePosMatrix(e, n = !1, r) {
|
|
24485
24485
|
var i;
|
|
@@ -24488,7 +24488,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24488
24488
|
let e = o.get(a);
|
|
24489
24489
|
return r ? e.f32 : e.f64;
|
|
24490
24490
|
}
|
|
24491
|
-
let s =
|
|
24491
|
+
let s = Ie(e, this.worldSize);
|
|
24492
24492
|
t.U(s, n ? this._alignedProjMatrix : this._viewProjMatrix, s);
|
|
24493
24493
|
let c = {
|
|
24494
24494
|
f64: s,
|
|
@@ -24499,7 +24499,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24499
24499
|
calculateFogMatrix(e) {
|
|
24500
24500
|
let n = e.key, r = this._fogMatrixCacheF32;
|
|
24501
24501
|
if (r.has(n)) return r.get(n);
|
|
24502
|
-
let i =
|
|
24502
|
+
let i = Ie(e, this.worldSize);
|
|
24503
24503
|
return t.U(i, this._fogMatrix, i), r.set(n, new Float32Array(i)), r.get(n);
|
|
24504
24504
|
}
|
|
24505
24505
|
calculateCenterFromCameraLngLatAlt(e, t, n, r) {
|
|
@@ -24507,14 +24507,14 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24507
24507
|
}
|
|
24508
24508
|
_calculateNearFarZIfNeeded(e, n, r) {
|
|
24509
24509
|
if (!this._helper.autoCalculateNearFarZ) return;
|
|
24510
|
-
let i = Math.min(this.elevation, this.minElevationForCurrentTile, this.getCameraAltitude() - 100), a = e - i * this._helper._pixelPerMeter / Math.cos(n), o = i < 0 ? a : e, s = Math.PI / 2 + this.pitchInRadians, c = t.an(this.fov) * (Math.abs(Math.cos(t.an(this.roll))) * this.height + Math.abs(Math.sin(t.an(this.roll))) * this.width) / this.height * (.5 + r.y / this.height), l = Math.sin(c) * o / Math.sin(t.al(Math.PI - s - c, .01, Math.PI - .01)), u =
|
|
24510
|
+
let i = Math.min(this.elevation, this.minElevationForCurrentTile, this.getCameraAltitude() - 100), a = e - i * this._helper._pixelPerMeter / Math.cos(n), o = i < 0 ? a : e, s = Math.PI / 2 + this.pitchInRadians, c = t.an(this.fov) * (Math.abs(Math.cos(t.an(this.roll))) * this.height + Math.abs(Math.sin(t.an(this.roll))) * this.width) / this.height * (.5 + r.y / this.height), l = Math.sin(c) * o / Math.sin(t.al(Math.PI - s - c, .01, Math.PI - .01)), u = Fe(this), d = Math.atan(u / this._helper.cameraToCenterDistance), f = t.an(.75), p = d > f ? 2 * d * (.5 + r.y / (2 * u)) : f, m = Math.sin(p) * o / Math.sin(t.al(Math.PI - s - p, .01, Math.PI - .01)), h = Math.min(l, m);
|
|
24511
24511
|
this._helper._farZ = 1.01 * (Math.cos(Math.PI / 2 - n) * h + o), this._helper._nearZ = this._helper._height / 50;
|
|
24512
24512
|
}
|
|
24513
24513
|
_calcMatrices() {
|
|
24514
24514
|
if (!this._helper._height) return;
|
|
24515
|
-
let e = this.centerOffset, n =
|
|
24515
|
+
let e = this.centerOffset, n = Ne(this.worldSize, this.center), r = n.x, i = n.y;
|
|
24516
24516
|
this._helper._pixelPerMeter = t.aq(1, this.center.lat) * this.worldSize;
|
|
24517
|
-
let a = t.an(Math.min(this.pitch,
|
|
24517
|
+
let a = t.an(Math.min(this.pitch, Me)), o = Math.max(this._helper.cameraToCenterDistance / 2, this._helper.cameraToCenterDistance + this._helper._elevation * this._helper._pixelPerMeter / Math.cos(a)), s;
|
|
24518
24518
|
var c, l;
|
|
24519
24519
|
this._calculateNearFarZIfNeeded(o, a, e), s = /* @__PURE__ */ new Float64Array(16), t.bc(s, this.fovInRadians, this._helper._width / this._helper._height, this._helper._nearZ, this._helper._farZ), this._invProjMatrix = /* @__PURE__ */ new Float64Array(16), (c = this._invProjMatrix)[0] = 1 / (l = s)[0], c[1] = 0, c[2] = 0, c[3] = 0, c[4] = 0, c[5] = 1 / l[5], c[6] = 0, c[7] = 0, c[8] = 0, c[9] = 0, c[10] = 0, c[11] = 1 / l[14], c[12] = 0, c[13] = 0, c[14] = -1, c[15] = l[10] / l[14], s[8] = 2 * -e.x / this._helper._width, s[9] = 2 * e.y / this._helper._height, this._projectionMatrix = t.bd(s), t.S(s, s, [
|
|
24520
24520
|
1,
|
|
@@ -24601,7 +24601,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24601
24601
|
}
|
|
24602
24602
|
getCameraLngLat() {
|
|
24603
24603
|
let e = t.aq(1, this.center.lat) * this.worldSize;
|
|
24604
|
-
return
|
|
24604
|
+
return Le(this.center, this.elevation, this.pitch, this.bearing, this._helper.cameraToCenterDistance / e).toLngLat();
|
|
24605
24605
|
}
|
|
24606
24606
|
lngLatToCameraDepth(e, n) {
|
|
24607
24607
|
let r = t.a7.fromLngLat(e), i = [
|
|
@@ -24684,7 +24684,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24684
24684
|
let n = new t.a3(0, 0, 0, 0, 0), r = this.getProjectionData({
|
|
24685
24685
|
overscaledTileID: n,
|
|
24686
24686
|
applyGlobeMatrix: e
|
|
24687
|
-
}), i =
|
|
24687
|
+
}), i = Ie(n, this.worldSize);
|
|
24688
24688
|
t.U(i, this._viewProjMatrix, i), r.tileMercatorCoords = [
|
|
24689
24689
|
0,
|
|
24690
24690
|
0,
|
|
@@ -24715,11 +24715,11 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24715
24715
|
else e.tr.setRoll(t.H.number(e.startEulerAngles.roll, e.endEulerAngles.roll, e.k)), e.tr.setPitch(t.H.number(e.startEulerAngles.pitch, e.endEulerAngles.pitch, e.k)), e.tr.setBearing(t.H.number(e.startEulerAngles.bearing, e.endEulerAngles.bearing, e.k));
|
|
24716
24716
|
}
|
|
24717
24717
|
function rn(e, n, r, i, a) {
|
|
24718
|
-
let o = a.padding, s =
|
|
24718
|
+
let o = a.padding, s = Ne(a.worldSize, r.getNorthWest()), c = Ne(a.worldSize, r.getNorthEast()), l = Ne(a.worldSize, r.getSouthEast()), u = Ne(a.worldSize, r.getSouthWest()), d = t.an(-i), f = s.rotate(d), p = c.rotate(d), m = l.rotate(d), h = u.rotate(d), g = new t.P(Math.max(f.x, p.x, h.x, m.x), Math.max(f.y, p.y, h.y, m.y)), _ = new t.P(Math.min(f.x, p.x, h.x, m.x), Math.min(f.y, p.y, h.y, m.y)), v = g.sub(_), y = (a.width - (o.left + o.right + n.left + n.right)) / v.x, b = (a.height - (o.top + o.bottom + n.top + n.bottom)) / v.y;
|
|
24719
24719
|
if (b < 0 || y < 0) return void tn();
|
|
24720
24720
|
let x = Math.min(t.ar(a.scale * Math.min(y, b)), e.maxZoom), S = t.P.convert(e.offset), C = new t.P((n.left - n.right) / 2, (n.top - n.bottom) / 2).rotate(t.an(i)), w = S.add(C).mult(a.scale / t.ao(x));
|
|
24721
24721
|
return {
|
|
24722
|
-
center:
|
|
24722
|
+
center: Pe(a.worldSize, s.add(l).div(2).sub(w)),
|
|
24723
24723
|
zoom: x,
|
|
24724
24724
|
bearing: i
|
|
24725
24725
|
};
|
|
@@ -24729,7 +24729,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24729
24729
|
return !1;
|
|
24730
24730
|
}
|
|
24731
24731
|
handlePanInertia(e, t) {
|
|
24732
|
-
let n = e.mag(), r = Math.abs(
|
|
24732
|
+
let n = e.mag(), r = Math.abs(Fe(t));
|
|
24733
24733
|
return {
|
|
24734
24734
|
easingOffset: e.mult(Math.min(.75 * r / n, 1)),
|
|
24735
24735
|
easingCenter: t.center
|
|
@@ -24758,7 +24758,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24758
24758
|
bearing: n.bearing === void 0 ? e.bearing : n.bearing
|
|
24759
24759
|
}, s = n.zoom !== void 0, c = !e.isPaddingEqual(n.padding), l = !1, u = s ? +n.zoom : e.zoom, d = e.centerPoint.add(n.offsetAsPoint), f = e.screenPointToLocation(d), { center: p, zoom: m } = e.applyConstrain(t.W.convert(n.center || f), u == null ? r : u);
|
|
24760
24760
|
Jt(e, p);
|
|
24761
|
-
let h =
|
|
24761
|
+
let h = Ne(e.worldSize, f), g = Ne(e.worldSize, p).sub(h), _ = t.ao(m - r);
|
|
24762
24762
|
return l = m !== r, {
|
|
24763
24763
|
easeFunc: (s) => {
|
|
24764
24764
|
if (l && e.setZoom(t.H.number(r, m, s)), t.bn(a, o) || nn({
|
|
@@ -24769,7 +24769,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24769
24769
|
useSlerp: a.roll != o.roll
|
|
24770
24770
|
}), c && (e.interpolatePadding(i, n.padding, s), d = e.centerPoint.add(n.offsetAsPoint)), n.around) e.setLocationAtPoint(n.around, n.aroundPoint);
|
|
24771
24771
|
else {
|
|
24772
|
-
let n = t.ao(e.zoom - r), i = (m > r ? Math.min(2, _) : Math.max(.5, _)) ** (1 - s), a =
|
|
24772
|
+
let n = t.ao(e.zoom - r), i = (m > r ? Math.min(2, _) : Math.max(.5, _)) ** (1 - s), a = Pe(e.worldSize, h.add(g.mult(s * i)).mult(n));
|
|
24773
24773
|
e.setLocationAtPoint(e.renderWorldCopies ? a.wrap() : a, d);
|
|
24774
24774
|
}
|
|
24775
24775
|
},
|
|
@@ -24780,7 +24780,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24780
24780
|
handleFlyTo(e, n) {
|
|
24781
24781
|
let r = n.zoom !== void 0, i = e.zoom, a = e.applyConstrain(t.W.convert(n.center || n.locationAtOffset), r ? +n.zoom : i), o = a.center, s = a.zoom;
|
|
24782
24782
|
Jt(e, o);
|
|
24783
|
-
let c =
|
|
24783
|
+
let c = Ne(e.worldSize, n.locationAtOffset), l = Ne(e.worldSize, o).sub(c), u = l.mag(), d = t.ao(s - i), f;
|
|
24784
24784
|
if (n.minZoom !== void 0) {
|
|
24785
24785
|
let r = Math.min(+n.minZoom, i, s), a = e.applyConstrain(o, r).zoom;
|
|
24786
24786
|
f = t.ao(a - i);
|
|
@@ -24788,7 +24788,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
24788
24788
|
return {
|
|
24789
24789
|
easeFunc: (n, r, a, u) => {
|
|
24790
24790
|
e.setZoom(n === 1 ? s : i + t.ar(r));
|
|
24791
|
-
let d = n === 1 ? o :
|
|
24791
|
+
let d = n === 1 ? o : Pe(e.worldSize, c.add(l.mult(a)).mult(r));
|
|
24792
24792
|
e.setLocationAtPoint(e.renderWorldCopies ? d.wrap() : d, u);
|
|
24793
24793
|
},
|
|
24794
24794
|
scaleOfZoom: d,
|
|
@@ -25849,7 +25849,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
25849
25849
|
0,
|
|
25850
25850
|
-1,
|
|
25851
25851
|
0
|
|
25852
|
-
]) && (u[1] = -90, u[0] = -180, u[2] = 180), new
|
|
25852
|
+
]) && (u[1] = -90, u[0] = -180, u[2] = 180), new ce(u);
|
|
25853
25853
|
}
|
|
25854
25854
|
calculateCenterFromCameraLngLatAlt(e, t, n, r) {
|
|
25855
25855
|
return this._helper.calculateCenterFromCameraLngLatAlt(e, t, n, r);
|
|
@@ -26526,7 +26526,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
26526
26526
|
}
|
|
26527
26527
|
}, this.map = e, this.dispatcher = new te(P(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
|
|
26528
26528
|
let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
|
|
26529
|
-
this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new zt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()),
|
|
26529
|
+
this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new zt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), De().on(we, this._rtlPluginLoaded), this.on("data", ((e) => {
|
|
26530
26530
|
if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
|
|
26531
26531
|
let t = this.tileManagers[e.sourceId];
|
|
26532
26532
|
if (!t) return;
|
|
@@ -27097,11 +27097,11 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
27097
27097
|
layers: s,
|
|
27098
27098
|
globalState: this._globalState
|
|
27099
27099
|
});
|
|
27100
|
-
for (let t in this.tileManagers) n.layers && !i[t] || a.push(
|
|
27100
|
+
for (let t in this.tileManagers) n.layers && !i[t] || a.push(ie(this.tileManagers[t], this._layers, o, e, c, r, this.map.terrain ? (e, t, n) => this.map.terrain.getElevation(e, t, n) : void 0));
|
|
27101
27101
|
return this.placement && a.push(function(e, t, n, r, i, a, o) {
|
|
27102
27102
|
let s = {}, c = a.queryRenderedSymbols(r), l = [];
|
|
27103
27103
|
for (let e of Object.keys(c).map(Number)) l.push(o[e]);
|
|
27104
|
-
l.sort(
|
|
27104
|
+
l.sort(ae);
|
|
27105
27105
|
for (let n of l) {
|
|
27106
27106
|
let r = n.featureIndex.lookupSymbolFeatures(c[n.bucketInstanceId], t, n.bucketIndex, n.sourceLayerIndex, {
|
|
27107
27107
|
filterSpec: i.filter,
|
|
@@ -27122,7 +27122,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
27122
27122
|
}
|
|
27123
27123
|
}
|
|
27124
27124
|
return function(e, t, n) {
|
|
27125
|
-
for (let r in e) for (let i of e[r])
|
|
27125
|
+
for (let r in e) for (let i of e[r]) oe(i, n[t[r].source]);
|
|
27126
27126
|
return e;
|
|
27127
27127
|
}(s, e, n);
|
|
27128
27128
|
}(this._layers, o, this.tileManagers, e, c, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(a);
|
|
@@ -27253,7 +27253,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
27253
27253
|
}, i)));
|
|
27254
27254
|
}
|
|
27255
27255
|
_remove(e = !0) {
|
|
27256
|
-
this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null),
|
|
27256
|
+
this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), De().off(we, this._rtlPluginLoaded);
|
|
27257
27257
|
for (let e in this._layers) this._layers[e].setEventedParent(null);
|
|
27258
27258
|
for (let e in this.tileManagers) {
|
|
27259
27259
|
let t = this.tileManagers[e];
|
|
@@ -28687,36 +28687,36 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
28687
28687
|
if (!l) continue;
|
|
28688
28688
|
let d = a ? l.text : l.icon;
|
|
28689
28689
|
if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
|
|
28690
|
-
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, ee, P, te = [0, 0],
|
|
28691
|
-
if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (te = i.imageAtlasTexture.size,
|
|
28690
|
+
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, ee, P, te = [0, 0], ne = null;
|
|
28691
|
+
if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (te = i.imageAtlasTexture.size, ne = i.imageAtlasTexture, P = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
|
|
28692
28692
|
else {
|
|
28693
28693
|
let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
|
|
28694
28694
|
N = i.imageAtlasTexture, ee = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
|
|
28695
28695
|
}
|
|
28696
|
-
let
|
|
28696
|
+
let re = t.aK(i, 1, e.transform.zoom), ie = $e(y, e.transform, re), ae = et(b, y, e.transform, re), oe = t.aL(v, i, o, s), se = v.getProjectionData({
|
|
28697
28697
|
overscaledTileID: c,
|
|
28698
28698
|
applyGlobeMatrix: !p,
|
|
28699
28699
|
applyTerrainMatrix: !0
|
|
28700
|
-
}),
|
|
28700
|
+
}), ce = E && l.hasTextData(), le = r.layout.get("icon-text-fit") !== "none" && ce && l.hasIconData();
|
|
28701
28701
|
if (x) {
|
|
28702
28702
|
let n = t.O();
|
|
28703
|
-
H(n,
|
|
28703
|
+
H(n, ie);
|
|
28704
28704
|
let i = e.style.map.terrain ? (t, n) => e.style.map.terrain.getElevation(c, t, n) : null;
|
|
28705
|
-
it(l, e, a,
|
|
28705
|
+
it(l, e, a, ie, n, b, u, r.layout.get("text-rotation-alignment") === "map", c.toUnwrapped(), v.width, v.height, oe, i);
|
|
28706
28706
|
}
|
|
28707
|
-
let
|
|
28708
|
-
|
|
28709
|
-
let
|
|
28707
|
+
let ue = a && E || le, de = x || ue ? pi : b ? ie : e.transform.clipSpaceToPixelsMatrix, fe = h && r.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, pe;
|
|
28708
|
+
pe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, ue, e, de, ae, oe, M, te, O) : vr(g.kind, A, S, b, x, ue, e, de, ae, oe, a, M, fe, O) : _r(g.kind, A, S, b, x, ue, e, de, ae, oe, a, M, O);
|
|
28709
|
+
let me = {
|
|
28710
28710
|
program: k,
|
|
28711
28711
|
buffers: d,
|
|
28712
|
-
uniformValues:
|
|
28713
|
-
projectionData:
|
|
28712
|
+
uniformValues: pe,
|
|
28713
|
+
projectionData: se,
|
|
28714
28714
|
atlasTexture: N,
|
|
28715
|
-
atlasTextureIcon:
|
|
28715
|
+
atlasTextureIcon: ne,
|
|
28716
28716
|
atlasInterpolation: ee,
|
|
28717
28717
|
atlasInterpolationIcon: P,
|
|
28718
28718
|
isSDF: h,
|
|
28719
|
-
hasHalo:
|
|
28719
|
+
hasHalo: fe
|
|
28720
28720
|
};
|
|
28721
28721
|
if (C && l.canOverlap) {
|
|
28722
28722
|
w = !0;
|
|
@@ -28724,13 +28724,13 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
28724
28724
|
for (let n of e) D.push({
|
|
28725
28725
|
segments: new t.aV([n]),
|
|
28726
28726
|
sortKey: n.sortKey,
|
|
28727
|
-
state:
|
|
28727
|
+
state: me,
|
|
28728
28728
|
terrainData: j
|
|
28729
28729
|
});
|
|
28730
28730
|
} else D.push({
|
|
28731
28731
|
segments: d.segments,
|
|
28732
28732
|
sortKey: 0,
|
|
28733
|
-
state:
|
|
28733
|
+
state: me,
|
|
28734
28734
|
terrainData: j
|
|
28735
28735
|
});
|
|
28736
28736
|
}
|
|
@@ -28969,7 +28969,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
28969
28969
|
parentScaleBy: o,
|
|
28970
28970
|
parentTopLeft: [e.tileID.canonical.x * o % 1, e.tileID.canonical.y * o % 1],
|
|
28971
28971
|
fadeValues: function(e, n, r) {
|
|
28972
|
-
let i = l(), a = (i - n.timeAdded) / r, o = e.fadingDirection ===
|
|
28972
|
+
let i = l(), a = (i - n.timeAdded) / r, o = e.fadingDirection === ke.Incoming, s = t.al((i - e.timeAdded) / r, 0, 1), c = t.al(1 - a, 0, 1), u = o ? s : c;
|
|
28973
28973
|
return {
|
|
28974
28974
|
tileOpacity: u,
|
|
28975
28975
|
parentTileOpacity: o ? c : s,
|
|
@@ -29276,7 +29276,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
29276
29276
|
raster: function(e, t, n, r, i) {
|
|
29277
29277
|
if (e.renderPass !== "translucent" || n.paint.get("raster-opacity") === 0 || !r.length) return;
|
|
29278
29278
|
let { isRenderingToTexture: a } = i, o = t.getSource(), s = e.style.projection.useSubdivision;
|
|
29279
|
-
if (o instanceof
|
|
29279
|
+
if (o instanceof ye) Ii(e, t, n, r, null, !1, !1, o.tileCoords, o.flippedWindingOrder, a);
|
|
29280
29280
|
else if (s) {
|
|
29281
29281
|
let [i, o, s] = e.stencilConfigForOverlapTwoPass(r);
|
|
29282
29282
|
Ii(e, t, n, s, i, !1, !0, Fi, !1, a), Ii(e, t, n, s, o, !0, !0, Fi, !1, a);
|
|
@@ -29313,7 +29313,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
29313
29313
|
},
|
|
29314
29314
|
sky: function(e, t) {
|
|
29315
29315
|
let n = e.context, r = n.gl, i = ((e, t, n) => {
|
|
29316
|
-
let r = Math.cos(t.rollInRadians), i = Math.sin(t.rollInRadians), a =
|
|
29316
|
+
let r = Math.cos(t.rollInRadians), i = Math.sin(t.rollInRadians), a = Fe(t), o = t.getProjectionData({
|
|
29317
29317
|
overscaledTileID: null,
|
|
29318
29318
|
applyGlobeMatrix: !0,
|
|
29319
29319
|
applyTerrainMatrix: !0
|
|
@@ -31345,7 +31345,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
31345
31345
|
return this.jumpTo({ roll: e }, t), this;
|
|
31346
31346
|
}
|
|
31347
31347
|
cameraForBounds(e, t) {
|
|
31348
|
-
e =
|
|
31348
|
+
e = ce.convert(e).adjustAntiMeridian();
|
|
31349
31349
|
let n = (t == null ? void 0 : t.bearing) || 0;
|
|
31350
31350
|
return this._cameraForBoxAndBearing(e.getNorthWest(), e.getSouthEast(), n, t);
|
|
31351
31351
|
}
|
|
@@ -31371,7 +31371,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
31371
31371
|
}
|
|
31372
31372
|
let o = t.e(a, i.padding);
|
|
31373
31373
|
i.padding = o;
|
|
31374
|
-
let s = this.transform, c = new
|
|
31374
|
+
let s = this.transform, c = new ce(e, n), l = this.cameraHelper.cameraForBoxAndBearing(i, o, c, r, s);
|
|
31375
31375
|
return l && this._zoomSnap && (l.zoom = t.cw(l.zoom, this._zoomSnap, -1)), l;
|
|
31376
31376
|
}
|
|
31377
31377
|
fitBounds(e, t, n) {
|
|
@@ -31710,7 +31710,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
31710
31710
|
reparseOverscaled: !1,
|
|
31711
31711
|
terrain: n,
|
|
31712
31712
|
calculateTileZoom: this.tileManager._source.calculateTileZoom
|
|
31713
|
-
})) r[i.key] = !0, this._renderableTilesKeys.push(i.key), this._tiles[i.key] || (i.terrainRttPosMatrix32f = /* @__PURE__ */ new Float64Array(16), t.c7(i.terrainRttPosMatrix32f, 0, t.a6, t.a6, 0, 0, 1), this._tiles[i.key] = new
|
|
31713
|
+
})) r[i.key] = !0, this._renderableTilesKeys.push(i.key), this._tiles[i.key] || (i.terrainRttPosMatrix32f = /* @__PURE__ */ new Float64Array(16), t.c7(i.terrainRttPosMatrix32f, 0, t.a6, t.a6, 0, 0, 1), this._tiles[i.key] = new Ae(i, this.tileSize), this._lastTilesetChange = l());
|
|
31714
31714
|
for (let e in this._tiles) r[e] || delete this._tiles[e];
|
|
31715
31715
|
}
|
|
31716
31716
|
freeRtt(e) {
|
|
@@ -32047,7 +32047,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
32047
32047
|
this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.tileManager.getRenderableTiles(), this._renderableLayerIds = e._order.filter(((n) => !e._layers[n].isHidden(t))), this._coordsAscending = {};
|
|
32048
32048
|
for (let t in e.tileManagers) {
|
|
32049
32049
|
this._coordsAscending[t] = {};
|
|
32050
|
-
let n = e.tileManagers[t].getVisibleCoordinates(), r = e.tileManagers[t].getSource(), a = r instanceof
|
|
32050
|
+
let n = e.tileManagers[t].getVisibleCoordinates(), r = e.tileManagers[t].getSource(), a = r instanceof ye ? r.terrainTileRanges : null;
|
|
32051
32051
|
for (let e of n) {
|
|
32052
32052
|
let n = this.terrain.tileManager.getTerrainCoords(e, a);
|
|
32053
32053
|
for (let e in n) (i = this._coordsAscending[t])[e] || (i[e] = []), this._coordsAscending[t][e].push(n[e]);
|
|
@@ -32318,7 +32318,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
32318
32318
|
return this.transform.getMaxBounds();
|
|
32319
32319
|
}
|
|
32320
32320
|
setMaxBounds(e) {
|
|
32321
|
-
return this.transform.setMaxBounds(
|
|
32321
|
+
return this.transform.setMaxBounds(ce.convert(e)), this._update();
|
|
32322
32322
|
}
|
|
32323
32323
|
setMinZoom(e) {
|
|
32324
32324
|
if ((e = e == null ? -2 : e) >= -2 && e <= this.transform.maxZoom) {
|
|
@@ -32612,8 +32612,8 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
32612
32612
|
if (n) {
|
|
32613
32613
|
let r = this.getSource(n);
|
|
32614
32614
|
if (!r) throw Error(`There is no source with ID "${n}", cannot set LOD parameters`);
|
|
32615
|
-
r.calculateTileZoom =
|
|
32616
|
-
} else for (let n in this.style.tileManagers) this.style.tileManagers[n].getSource().calculateTileZoom =
|
|
32615
|
+
r.calculateTileZoom = R(Math.max(1, e), Math.max(1, t));
|
|
32616
|
+
} else for (let n in this.style.tileManagers) this.style.tileManagers[n].getSource().calculateTileZoom = R(Math.max(1, e), Math.max(1, t));
|
|
32617
32617
|
return this._update(!0), this;
|
|
32618
32618
|
}
|
|
32619
32619
|
refreshTiles(e, n) {
|
|
@@ -33338,7 +33338,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33338
33338
|
return wo(new t.P(0, 0));
|
|
33339
33339
|
}
|
|
33340
33340
|
let To = n;
|
|
33341
|
-
e.AJAXError = t.cG, e.EXTENT = t.a6, e.Event = t.n, e.Evented = t.E, e.LngLat = t.W, e.MercatorCoordinate = t.a7, e.Point = t.P, e.addProtocol = t.cH, e.config = t.c, e.removeProtocol = t.cI, e.AttributionControl = Ya, e.BoxZoomHandler = ma, e.CanvasSource =
|
|
33341
|
+
e.AJAXError = t.cG, e.EXTENT = t.a6, e.Event = t.n, e.Evented = t.E, e.LngLat = t.W, e.MercatorCoordinate = t.a7, e.Point = t.P, e.addProtocol = t.cH, e.config = t.c, e.removeProtocol = t.cI, e.AttributionControl = Ya, e.BoxZoomHandler = ma, e.CanvasSource = xe, e.CooperativeGesturesHandler = Wa, e.DoubleClickZoomHandler = Ra, e.DragPanHandler = Va, e.DragRotateHandler = Ha, e.EdgeInsets = qt, e.FullscreenControl = class extends t.E {
|
|
33342
33342
|
constructor(e = {}) {
|
|
33343
33343
|
var n;
|
|
33344
33344
|
super(), this._onFullscreenChange = () => {
|
|
@@ -33382,7 +33382,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33382
33382
|
_togglePseudoFullScreen() {
|
|
33383
33383
|
this._container.classList.toggle("maplibregl-pseudo-fullscreen"), this._handleFullscreenChange(), this._map.resize();
|
|
33384
33384
|
}
|
|
33385
|
-
}, e.GeoJSONSource =
|
|
33385
|
+
}, e.GeoJSONSource = ve, e.GeolocateControl = class extends t.E {
|
|
33386
33386
|
constructor(e) {
|
|
33387
33387
|
super(), this._onSuccess = (e) => {
|
|
33388
33388
|
if (this._map) {
|
|
@@ -33402,7 +33402,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33402
33402
|
this.options.showUserLocation && this._watchState !== "OFF" && this._updateMarker(e), this.options.trackUserLocation && this._watchState !== "ACTIVE_LOCK" || this._updateCamera(e), this.options.showUserLocation && this._dotElement.classList.remove("maplibregl-user-location-dot-stale"), this.fire(new t.n("geolocate", e)), this._finish();
|
|
33403
33403
|
}
|
|
33404
33404
|
}, this._updateCamera = (e) => {
|
|
33405
|
-
let n = new t.W(e.coords.longitude, e.coords.latitude), r = e.coords.accuracy, i = this._map.getBearing(), a = t.e({ bearing: i }, this.options.fitBoundsOptions), o =
|
|
33405
|
+
let n = new t.W(e.coords.longitude, e.coords.latitude), r = e.coords.accuracy, i = this._map.getBearing(), a = t.e({ bearing: i }, this.options.fitBoundsOptions), o = ce.fromLngLat(n, r);
|
|
33406
33406
|
this._map.fitBounds(o, a, { geolocateSource: !0 });
|
|
33407
33407
|
}, this._updateMarker = (e) => {
|
|
33408
33408
|
if (e) {
|
|
@@ -33554,7 +33554,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33554
33554
|
onRemove() {
|
|
33555
33555
|
this._container.remove(), this._map.off("styledata", this._updateGlobeIcon), this._map.off("projectiontransition", this._updateGlobeIcon), this._globeButton.removeEventListener("click", this._toggleProjection), this._map = void 0;
|
|
33556
33556
|
}
|
|
33557
|
-
}, e.Hash = Qi, e.ImageSource =
|
|
33557
|
+
}, e.Hash = Qi, e.ImageSource = ye, e.KeyboardHandler = Pa, e.LngLatBounds = ce, e.LogoControl = Xa, e.Map = so, e.MapLibreMap = so, e.MapMouseEvent = ca, e.MapTouchEvent = la, e.MapWheelEvent = ua, e.Marker = ho, e.NavigationControl = class {
|
|
33558
33558
|
constructor(e) {
|
|
33559
33559
|
this._updateZoomButtons = () => {
|
|
33560
33560
|
let e = this._map.getZoom(), t = e === this._map.getMaxZoom(), n = e === this._map.getMinZoom();
|
|
@@ -33680,7 +33680,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33680
33680
|
let e = this._container.querySelector(Co);
|
|
33681
33681
|
e && e.focus();
|
|
33682
33682
|
}
|
|
33683
|
-
}, e.RasterDEMTileSource =
|
|
33683
|
+
}, e.RasterDEMTileSource = fe, e.RasterTileSource = de, e.ScaleControl = class {
|
|
33684
33684
|
constructor(e) {
|
|
33685
33685
|
this._onMove = () => {
|
|
33686
33686
|
bo(this._map, this._container, this.options);
|
|
@@ -33711,18 +33711,18 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33711
33711
|
onRemove() {
|
|
33712
33712
|
this._container.remove(), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
|
|
33713
33713
|
}
|
|
33714
|
-
}, e.TwoFingersTouchPitchHandler = Ma, e.TwoFingersTouchRotateHandler = Aa, e.TwoFingersTouchZoomHandler = Oa, e.TwoFingersTouchZoomRotateHandler = Ua, e.VectorTileSource =
|
|
33715
|
-
if (
|
|
33714
|
+
}, e.TwoFingersTouchPitchHandler = Ma, e.TwoFingersTouchRotateHandler = Aa, e.TwoFingersTouchZoomHandler = Oa, e.TwoFingersTouchZoomRotateHandler = Ua, e.VectorTileSource = ue, e.VideoSource = be, e.addSourceType = (e, n) => t._(void 0, void 0, void 0, (function* () {
|
|
33715
|
+
if (Ce(e)) throw Error(`A source type called "${e}" already exists.`);
|
|
33716
33716
|
((e, t) => {
|
|
33717
|
-
|
|
33717
|
+
Se[e] = t;
|
|
33718
33718
|
})(e, n);
|
|
33719
33719
|
})), e.clearPrewarmedResources = function() {
|
|
33720
33720
|
let e = N;
|
|
33721
33721
|
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), N = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"));
|
|
33722
|
-
}, e.createTileMesh = fn, e.getGlobalDispatcher =
|
|
33722
|
+
}, e.createTileMesh = fn, e.getGlobalDispatcher = ne, e.getMaxParallelImageRequests = function() {
|
|
33723
33723
|
return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
|
|
33724
33724
|
}, e.getRTLTextPluginStatus = function() {
|
|
33725
|
-
return
|
|
33725
|
+
return De().getRTLTextPluginStatus();
|
|
33726
33726
|
}, e.getVersion = function() {
|
|
33727
33727
|
return To;
|
|
33728
33728
|
}, e.getWorkerCount = function() {
|
|
@@ -33730,7 +33730,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33730
33730
|
}, e.getWorkerUrl = function() {
|
|
33731
33731
|
return t.c.WORKER_URL;
|
|
33732
33732
|
}, e.importScriptInWorkers = function(e) {
|
|
33733
|
-
return
|
|
33733
|
+
return ne().broadcast("IS", e);
|
|
33734
33734
|
}, e.isTimeFrozen = function() {
|
|
33735
33735
|
return c.isFrozen();
|
|
33736
33736
|
}, e.now = l, e.prewarm = function() {
|
|
@@ -33742,7 +33742,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33742
33742
|
}, e.setNow = function(e) {
|
|
33743
33743
|
c.setNow(e);
|
|
33744
33744
|
}, e.setRTLTextPlugin = function(e, t) {
|
|
33745
|
-
return
|
|
33745
|
+
return De().setRTLTextPlugin(e, t);
|
|
33746
33746
|
}, e.setWorkerCount = function(e) {
|
|
33747
33747
|
j.workerCount = e;
|
|
33748
33748
|
}, e.setWorkerUrl = function(e) {
|
|
@@ -33750,7 +33750,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33750
33750
|
};
|
|
33751
33751
|
})), e;
|
|
33752
33752
|
}));
|
|
33753
|
-
})))(),
|
|
33753
|
+
})))(), _e = Uint8Array, ve = Uint16Array, ye = Int32Array, be = new _e([
|
|
33754
33754
|
0,
|
|
33755
33755
|
0,
|
|
33756
33756
|
0,
|
|
@@ -33783,7 +33783,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33783
33783
|
0,
|
|
33784
33784
|
0,
|
|
33785
33785
|
0
|
|
33786
|
-
]),
|
|
33786
|
+
]), xe = new _e([
|
|
33787
33787
|
0,
|
|
33788
33788
|
0,
|
|
33789
33789
|
0,
|
|
@@ -33816,7 +33816,7 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33816
33816
|
13,
|
|
33817
33817
|
0,
|
|
33818
33818
|
0
|
|
33819
|
-
]),
|
|
33819
|
+
]), Se = new _e([
|
|
33820
33820
|
16,
|
|
33821
33821
|
17,
|
|
33822
33822
|
18,
|
|
@@ -33836,50 +33836,50 @@ var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__P
|
|
|
33836
33836
|
14,
|
|
33837
33837
|
1,
|
|
33838
33838
|
15
|
|
33839
|
-
]),
|
|
33840
|
-
for (var n = new
|
|
33841
|
-
for (var i = new
|
|
33839
|
+
]), Ce = function(e, t) {
|
|
33840
|
+
for (var n = new ve(31), r = 0; r < 31; ++r) n[r] = t += 1 << e[r - 1];
|
|
33841
|
+
for (var i = new ye(n[30]), r = 1; r < 30; ++r) for (var a = n[r]; a < n[r + 1]; ++a) i[a] = a - n[r] << 5 | r;
|
|
33842
33842
|
return {
|
|
33843
33843
|
b: n,
|
|
33844
33844
|
r: i
|
|
33845
33845
|
};
|
|
33846
|
-
},
|
|
33847
|
-
|
|
33848
|
-
var
|
|
33849
|
-
|
|
33850
|
-
for (var
|
|
33851
|
-
var
|
|
33852
|
-
|
|
33846
|
+
}, we = Ce(be, 2), Te = we.b, Ee = we.r;
|
|
33847
|
+
Te[28] = 258, Ee[258] = 28;
|
|
33848
|
+
var De = Ce(xe, 0), Oe = De.b;
|
|
33849
|
+
De.r;
|
|
33850
|
+
for (var ke = new ve(32768), Ae = 0; Ae < 32768; ++Ae) {
|
|
33851
|
+
var je = (Ae & 43690) >> 1 | (Ae & 21845) << 1;
|
|
33852
|
+
je = (je & 52428) >> 2 | (je & 13107) << 2, je = (je & 61680) >> 4 | (je & 3855) << 4, ke[Ae] = ((je & 65280) >> 8 | (je & 255) << 8) >> 1;
|
|
33853
33853
|
}
|
|
33854
|
-
for (var
|
|
33855
|
-
for (var r = e.length, i = 0, a = new
|
|
33856
|
-
var o = new
|
|
33854
|
+
for (var Me = (function(e, t, n) {
|
|
33855
|
+
for (var r = e.length, i = 0, a = new ve(t); i < r; ++i) e[i] && ++a[e[i] - 1];
|
|
33856
|
+
var o = new ve(t);
|
|
33857
33857
|
for (i = 1; i < t; ++i) o[i] = o[i - 1] + a[i - 1] << 1;
|
|
33858
33858
|
var s;
|
|
33859
33859
|
if (n) {
|
|
33860
|
-
s = new
|
|
33860
|
+
s = new ve(1 << t);
|
|
33861
33861
|
var c = 15 - t;
|
|
33862
|
-
for (i = 0; i < r; ++i) if (e[i]) for (var l = i << 4 | e[i], u = t - e[i], d = o[e[i] - 1]++ << u, f = d | (1 << u) - 1; d <= f; ++d) s[
|
|
33863
|
-
} else for (s = new
|
|
33862
|
+
for (i = 0; i < r; ++i) if (e[i]) for (var l = i << 4 | e[i], u = t - e[i], d = o[e[i] - 1]++ << u, f = d | (1 << u) - 1; d <= f; ++d) s[ke[d] >> c] = l;
|
|
33863
|
+
} else for (s = new ve(r), i = 0; i < r; ++i) e[i] && (s[i] = ke[o[e[i] - 1]++] >> 15 - e[i]);
|
|
33864
33864
|
return s;
|
|
33865
|
-
}),
|
|
33866
|
-
for (var
|
|
33867
|
-
for (var
|
|
33868
|
-
for (var
|
|
33869
|
-
for (var
|
|
33870
|
-
var
|
|
33865
|
+
}), Ne = new _e(288), Ae = 0; Ae < 144; ++Ae) Ne[Ae] = 8;
|
|
33866
|
+
for (var Ae = 144; Ae < 256; ++Ae) Ne[Ae] = 9;
|
|
33867
|
+
for (var Ae = 256; Ae < 280; ++Ae) Ne[Ae] = 7;
|
|
33868
|
+
for (var Ae = 280; Ae < 288; ++Ae) Ne[Ae] = 8;
|
|
33869
|
+
for (var Pe = new _e(32), Ae = 0; Ae < 32; ++Ae) Pe[Ae] = 5;
|
|
33870
|
+
var Fe = /*#__PURE__*/ Me(Ne, 9, 1), Ie = /*#__PURE__*/ Me(Pe, 5, 1), Le = function(e) {
|
|
33871
33871
|
for (var t = e[0], n = 1; n < e.length; ++n) e[n] > t && (t = e[n]);
|
|
33872
33872
|
return t;
|
|
33873
|
-
},
|
|
33873
|
+
}, I = function(e, t, n) {
|
|
33874
33874
|
var r = t / 8 | 0;
|
|
33875
33875
|
return (e[r] | e[r + 1] << 8) >> (t & 7) & n;
|
|
33876
|
-
},
|
|
33876
|
+
}, Re = function(e, t) {
|
|
33877
33877
|
var n = t / 8 | 0;
|
|
33878
33878
|
return (e[n] | e[n + 1] << 8 | e[n + 2] << 16) >> (t & 7);
|
|
33879
|
-
},
|
|
33879
|
+
}, ze = function(e) {
|
|
33880
33880
|
return (e + 7) / 8 | 0;
|
|
33881
|
-
},
|
|
33882
|
-
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new
|
|
33881
|
+
}, R = function(e, t, n) {
|
|
33882
|
+
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new _e(e.subarray(t, n));
|
|
33883
33883
|
}, Be = [
|
|
33884
33884
|
"unexpected EOF",
|
|
33885
33885
|
"invalid block type",
|
|
@@ -33901,46 +33901,46 @@ var Pe = /*#__PURE__*/ je(Me, 9, 1), Fe = /*#__PURE__*/ je(Ne, 5, 1), Ie = funct
|
|
|
33901
33901
|
return r;
|
|
33902
33902
|
}, He = function(e, t, n, r) {
|
|
33903
33903
|
var i = e.length, a = r ? r.length : 0;
|
|
33904
|
-
if (!i || t.f && !t.l) return n || new
|
|
33904
|
+
if (!i || t.f && !t.l) return n || new _e(0);
|
|
33905
33905
|
var o = !n, s = o || t.i != 2, c = t.i;
|
|
33906
|
-
o && (n = new
|
|
33906
|
+
o && (n = new _e(i * 3));
|
|
33907
33907
|
var l = function(e) {
|
|
33908
33908
|
var t = n.length;
|
|
33909
33909
|
if (e > t) {
|
|
33910
|
-
var r = new
|
|
33910
|
+
var r = new _e(Math.max(t * 2, e));
|
|
33911
33911
|
r.set(n), n = r;
|
|
33912
33912
|
}
|
|
33913
33913
|
}, u = t.f || 0, d = t.p || 0, f = t.b || 0, p = t.l, m = t.d, h = t.m, g = t.n, _ = i * 8;
|
|
33914
33914
|
do {
|
|
33915
33915
|
if (!p) {
|
|
33916
|
-
u =
|
|
33917
|
-
var v =
|
|
33916
|
+
u = I(e, d, 1);
|
|
33917
|
+
var v = I(e, d + 1, 3);
|
|
33918
33918
|
if (d += 3, !v) {
|
|
33919
|
-
var y =
|
|
33919
|
+
var y = ze(d) + 4, b = e[y - 4] | e[y - 3] << 8, x = y + b;
|
|
33920
33920
|
if (x > i) {
|
|
33921
33921
|
c && Ve(0);
|
|
33922
33922
|
break;
|
|
33923
33923
|
}
|
|
33924
33924
|
s && l(f + b), n.set(e.subarray(y, x), f), t.b = f += b, t.p = d = x * 8, t.f = u;
|
|
33925
33925
|
continue;
|
|
33926
|
-
} else if (v == 1) p =
|
|
33926
|
+
} else if (v == 1) p = Fe, m = Ie, h = 9, g = 5;
|
|
33927
33927
|
else if (v == 2) {
|
|
33928
|
-
var S =
|
|
33928
|
+
var S = I(e, d, 31) + 257, C = I(e, d + 10, 15) + 4, w = S + I(e, d + 5, 31) + 1;
|
|
33929
33929
|
d += 14;
|
|
33930
|
-
for (var T = new
|
|
33930
|
+
for (var T = new _e(w), E = new _e(19), D = 0; D < C; ++D) E[Se[D]] = I(e, d + D * 3, 7);
|
|
33931
33931
|
d += C * 3;
|
|
33932
|
-
for (var O =
|
|
33933
|
-
var j = A[
|
|
33932
|
+
for (var O = Le(E), k = (1 << O) - 1, A = Me(E, O, 1), D = 0; D < w;) {
|
|
33933
|
+
var j = A[I(e, d, k)];
|
|
33934
33934
|
d += j & 15;
|
|
33935
33935
|
var y = j >> 4;
|
|
33936
33936
|
if (y < 16) T[D++] = y;
|
|
33937
33937
|
else {
|
|
33938
33938
|
var M = 0, N = 0;
|
|
33939
|
-
for (y == 16 ? (N = 3 +
|
|
33939
|
+
for (y == 16 ? (N = 3 + I(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + I(e, d, 7), d += 3) : y == 18 && (N = 11 + I(e, d, 127), d += 7); N--;) T[D++] = M;
|
|
33940
33940
|
}
|
|
33941
33941
|
}
|
|
33942
33942
|
var ee = T.subarray(0, S), P = T.subarray(S);
|
|
33943
|
-
h =
|
|
33943
|
+
h = Le(ee), g = Le(P), p = Me(ee, h, 1), m = Me(P, g, 1);
|
|
33944
33944
|
} else Ve(1);
|
|
33945
33945
|
if (d > _) {
|
|
33946
33946
|
c && Ve(0);
|
|
@@ -33948,46 +33948,46 @@ var Pe = /*#__PURE__*/ je(Me, 9, 1), Fe = /*#__PURE__*/ je(Ne, 5, 1), Ie = funct
|
|
|
33948
33948
|
}
|
|
33949
33949
|
}
|
|
33950
33950
|
s && l(f + 131072);
|
|
33951
|
-
for (var te = (1 << h) - 1,
|
|
33952
|
-
var M = p[
|
|
33951
|
+
for (var te = (1 << h) - 1, ne = (1 << g) - 1, re = d;; re = d) {
|
|
33952
|
+
var M = p[Re(e, d) & te], ie = M >> 4;
|
|
33953
33953
|
if (d += M & 15, d > _) {
|
|
33954
33954
|
c && Ve(0);
|
|
33955
33955
|
break;
|
|
33956
33956
|
}
|
|
33957
|
-
if (M || Ve(2),
|
|
33958
|
-
else if (
|
|
33959
|
-
|
|
33957
|
+
if (M || Ve(2), ie < 256) n[f++] = ie;
|
|
33958
|
+
else if (ie == 256) {
|
|
33959
|
+
re = d, p = null;
|
|
33960
33960
|
break;
|
|
33961
33961
|
} else {
|
|
33962
|
-
var
|
|
33963
|
-
if (
|
|
33964
|
-
var D =
|
|
33965
|
-
|
|
33966
|
-
}
|
|
33967
|
-
var
|
|
33968
|
-
|
|
33969
|
-
var P =
|
|
33970
|
-
if (
|
|
33971
|
-
var
|
|
33972
|
-
P +=
|
|
33962
|
+
var ae = ie - 254;
|
|
33963
|
+
if (ie > 264) {
|
|
33964
|
+
var D = ie - 257, oe = be[D];
|
|
33965
|
+
ae = I(e, d, (1 << oe) - 1) + Te[D], d += oe;
|
|
33966
|
+
}
|
|
33967
|
+
var se = m[Re(e, d) & ne], ce = se >> 4;
|
|
33968
|
+
se || Ve(3), d += se & 15;
|
|
33969
|
+
var P = Oe[ce];
|
|
33970
|
+
if (ce > 3) {
|
|
33971
|
+
var oe = xe[ce];
|
|
33972
|
+
P += Re(e, d) & (1 << oe) - 1, d += oe;
|
|
33973
33973
|
}
|
|
33974
33974
|
if (d > _) {
|
|
33975
33975
|
c && Ve(0);
|
|
33976
33976
|
break;
|
|
33977
33977
|
}
|
|
33978
33978
|
s && l(f + 131072);
|
|
33979
|
-
var
|
|
33979
|
+
var le = f + ae;
|
|
33980
33980
|
if (f < P) {
|
|
33981
|
-
var
|
|
33982
|
-
for (
|
|
33981
|
+
var ue = a - P, de = Math.min(P, le);
|
|
33982
|
+
for (ue + f < 0 && Ve(3); f < de; ++f) n[f] = r[ue + f];
|
|
33983
33983
|
}
|
|
33984
|
-
for (; f <
|
|
33984
|
+
for (; f < le; ++f) n[f] = n[f - P];
|
|
33985
33985
|
}
|
|
33986
33986
|
}
|
|
33987
|
-
t.l = p, t.p =
|
|
33987
|
+
t.l = p, t.p = re, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
|
|
33988
33988
|
} while (!u);
|
|
33989
|
-
return f != n.length && o ?
|
|
33990
|
-
}, Ue = /*#__PURE__*/ new
|
|
33989
|
+
return f != n.length && o ? R(n, 0, f) : n.subarray(0, f);
|
|
33990
|
+
}, Ue = /*#__PURE__*/ new _e(0), We = function(e) {
|
|
33991
33991
|
(e[0] != 31 || e[1] != 139 || e[2] != 8) && Ve(6, "invalid gzip data");
|
|
33992
33992
|
var t = e[3], n = 10;
|
|
33993
33993
|
t & 4 && (n += (e[10] | e[11] << 8) + 2);
|
|
@@ -34004,7 +34004,7 @@ function qe(e, t) {
|
|
|
34004
34004
|
}
|
|
34005
34005
|
function z(e, t) {
|
|
34006
34006
|
var n = We(e);
|
|
34007
|
-
return n + 8 > e.length && Ve(6, "invalid gzip data"), He(e.subarray(n, -8), { i: 2 }, t && t.out || new
|
|
34007
|
+
return n + 8 > e.length && Ve(6, "invalid gzip data"), He(e.subarray(n, -8), { i: 2 }, t && t.out || new _e(Ge(e)), t && t.dictionary);
|
|
34008
34008
|
}
|
|
34009
34009
|
function Je(e, t) {
|
|
34010
34010
|
return He(e.subarray(Ke(e, t && t.dictionary), -4), { i: 2 }, t && t.out, t && t.dictionary);
|
|
@@ -34667,25 +34667,25 @@ function Ut() {
|
|
|
34667
34667
|
let e = new et();
|
|
34668
34668
|
Lt = e;
|
|
34669
34669
|
try {
|
|
34670
|
-
(0,
|
|
34670
|
+
(0, ge.addProtocol)("pmtiles", e.tile);
|
|
34671
34671
|
} catch (e) {
|
|
34672
34672
|
console.warn("Maplibre PMTiles protocol registration failed.", e);
|
|
34673
34673
|
}
|
|
34674
34674
|
return e;
|
|
34675
34675
|
}
|
|
34676
34676
|
function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i, onMapReady: a, onMapDimLayerReady: o, onMapLoadError: s, onPointerMissed: c, children: l }) {
|
|
34677
|
-
let u = (0,
|
|
34677
|
+
let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(), p = (0, F.useRef)(a), m = (0, F.useRef)(o), h = (0, F.useRef)(s), g = (0, F.useRef)({
|
|
34678
34678
|
geoConfig: t,
|
|
34679
34679
|
tileSource: n,
|
|
34680
34680
|
mapOptions: r,
|
|
34681
34681
|
debug: i
|
|
34682
34682
|
});
|
|
34683
|
-
return (0,
|
|
34684
|
-
|
|
34685
|
-
}), (0,
|
|
34683
|
+
return (0, F.useEffect)(() => {
|
|
34684
|
+
p.current = a, m.current = o, h.current = s;
|
|
34685
|
+
}), (0, F.useEffect)(() => {
|
|
34686
34686
|
let e = u.current;
|
|
34687
34687
|
if (!e) return;
|
|
34688
|
-
let { geoConfig: t, tileSource: n, mapOptions: r, debug: i } =
|
|
34688
|
+
let { geoConfig: t, tileSource: n, mapOptions: r, debug: i } = g.current, a = !1, o, s = () => {
|
|
34689
34689
|
let s = Ut(), c = t.bounds ? {
|
|
34690
34690
|
bounds: t.bounds,
|
|
34691
34691
|
fitBoundsOptions: {
|
|
@@ -34695,7 +34695,7 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34695
34695
|
} : {
|
|
34696
34696
|
center: t.center,
|
|
34697
34697
|
zoom: t.zoom
|
|
34698
|
-
}, l = jt(n.style, n.offline ? (e) => Ot(s, e) : void 0), u = new
|
|
34698
|
+
}, l = jt(n.style, n.offline ? (e) => Ot(s, e) : void 0), u = new ge.Map({
|
|
34699
34699
|
container: e,
|
|
34700
34700
|
...c,
|
|
34701
34701
|
bearing: t.bearing,
|
|
@@ -34715,7 +34715,7 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34715
34715
|
});
|
|
34716
34716
|
t.zoomAdjustment && u.jumpTo({ zoom: u.getZoom() + t.zoomAdjustment }), u.once("error", (e) => {
|
|
34717
34717
|
var t, n;
|
|
34718
|
-
u.isStyleLoaded() || (t =
|
|
34718
|
+
u.isStyleLoaded() || (t = h.current) == null || t.call(h, (n = e == null ? void 0 : e.error) == null ? e : n);
|
|
34719
34719
|
});
|
|
34720
34720
|
let d = (e) => {
|
|
34721
34721
|
let t = e == null ? void 0 : e.id;
|
|
@@ -34726,23 +34726,23 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34726
34726
|
});
|
|
34727
34727
|
};
|
|
34728
34728
|
u.on("styleimagemissing", d);
|
|
34729
|
-
let
|
|
34729
|
+
let g, _ = () => u.triggerRepaint(), v = {
|
|
34730
34730
|
id: It,
|
|
34731
34731
|
type: "custom",
|
|
34732
34732
|
renderingMode: "3d",
|
|
34733
34733
|
onAdd(e, t) {
|
|
34734
34734
|
var n;
|
|
34735
|
-
a || (
|
|
34735
|
+
a || (f({
|
|
34736
34736
|
gl: t,
|
|
34737
|
-
requestFrame:
|
|
34738
|
-
onFrame: (e) => (
|
|
34739
|
-
|
|
34737
|
+
requestFrame: _,
|
|
34738
|
+
onFrame: (e) => (g = e, _(), () => {
|
|
34739
|
+
g === e && (g = void 0);
|
|
34740
34740
|
})
|
|
34741
|
-
}), (n =
|
|
34741
|
+
}), (n = p.current) == null || n.call(p, u, _));
|
|
34742
34742
|
},
|
|
34743
34743
|
render(e, t) {
|
|
34744
34744
|
let n = Bt(t == null ? e : t);
|
|
34745
|
-
n && (
|
|
34745
|
+
n && (g == null || g(n)), i && _();
|
|
34746
34746
|
}
|
|
34747
34747
|
}, y = () => {
|
|
34748
34748
|
var e;
|
|
@@ -34761,16 +34761,16 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34761
34761
|
delay: 0
|
|
34762
34762
|
}
|
|
34763
34763
|
}
|
|
34764
|
-
}), (e =
|
|
34764
|
+
}), (e = m.current) == null || e.call(m, u), u.addLayer(v);
|
|
34765
34765
|
};
|
|
34766
34766
|
u.on("style.load", y), u.setStyle(n.style, l ? { transformStyle: l } : void 0), o = () => {
|
|
34767
34767
|
u.off("style.load", y), u.off("styleimagemissing", d), u.remove();
|
|
34768
34768
|
};
|
|
34769
34769
|
};
|
|
34770
|
-
return i ?
|
|
34770
|
+
return i ? v().then(() => {
|
|
34771
34771
|
a || s();
|
|
34772
34772
|
}) : s(), () => {
|
|
34773
|
-
a = !0, o == null || o(),
|
|
34773
|
+
a = !0, o == null || o(), f(void 0);
|
|
34774
34774
|
};
|
|
34775
34775
|
}, []), /* @__PURE__ */ (0, Mt.jsx)("div", {
|
|
34776
34776
|
ref: u,
|
|
@@ -34781,8 +34781,8 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34781
34781
|
width: "100%",
|
|
34782
34782
|
height: "100%"
|
|
34783
34783
|
},
|
|
34784
|
-
children:
|
|
34785
|
-
...
|
|
34784
|
+
children: d && /* @__PURE__ */ (0, Mt.jsx)(P, {
|
|
34785
|
+
...d,
|
|
34786
34786
|
scene: e,
|
|
34787
34787
|
debug: i,
|
|
34788
34788
|
onPointerMissed: c,
|
|
@@ -34823,7 +34823,7 @@ function nn(e, t, n, r, i) {
|
|
|
34823
34823
|
g(e.max.x, e.min.y, t),
|
|
34824
34824
|
g(e.max.x, e.max.y, t),
|
|
34825
34825
|
g(e.min.x, e.max.y, t)
|
|
34826
|
-
].map(([e, t]) =>
|
|
34826
|
+
].map(([e, t]) => ge.MercatorCoordinate.fromLngLat({
|
|
34827
34827
|
lng: e,
|
|
34828
34828
|
lat: t
|
|
34829
34829
|
}));
|
|
@@ -34834,7 +34834,7 @@ function nn(e, t, n, r, i) {
|
|
|
34834
34834
|
if (p <= 0 || m <= 0) return null;
|
|
34835
34835
|
let h = Math.min(p / (d * tn), m / (f * tn));
|
|
34836
34836
|
if (!(h > 0)) return null;
|
|
34837
|
-
let _ = tn * h, v = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / _, y = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / _, { lng: b, lat: x } = new
|
|
34837
|
+
let _ = tn * h, v = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / _, y = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / _, { lng: b, lat: x } = new ge.MercatorCoordinate(v * s + y * c, -v * c + y * s).toLngLat();
|
|
34838
34838
|
return {
|
|
34839
34839
|
center: [b, x],
|
|
34840
34840
|
zoom: Math.log2(h)
|
|
@@ -34868,8 +34868,8 @@ function on(e, t, n) {
|
|
|
34868
34868
|
}
|
|
34869
34869
|
function sn() {
|
|
34870
34870
|
var e, t;
|
|
34871
|
-
if (!(!(
|
|
34872
|
-
let n =
|
|
34871
|
+
if (!(!(y == null || (e = y.properties) == null) && e.config)) return null;
|
|
34872
|
+
let n = y.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = p(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
|
|
34873
34873
|
return {
|
|
34874
34874
|
center: [r, i],
|
|
34875
34875
|
bearing: o,
|
|
@@ -34908,7 +34908,7 @@ function K(e, t, n, r = {}) {
|
|
|
34908
34908
|
e.easeTo(g);
|
|
34909
34909
|
return;
|
|
34910
34910
|
}
|
|
34911
|
-
let _ = e.getBounds().extend(
|
|
34911
|
+
let _ = e.getBounds().extend(ge.LngLatBounds.convert(o)), v = e.cameraForBounds(_, {
|
|
34912
34912
|
padding: c,
|
|
34913
34913
|
bearing: n.bearing
|
|
34914
34914
|
});
|
|
@@ -34932,7 +34932,7 @@ function K(e, t, n, r = {}) {
|
|
|
34932
34932
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
34933
34933
|
var q = O, cn = 15, J = 24, ln = 20;
|
|
34934
34934
|
function un(e) {
|
|
34935
|
-
return j(e,
|
|
34935
|
+
return j(e, w(e, N)).expand(ln);
|
|
34936
34936
|
}
|
|
34937
34937
|
function dn(e, t) {
|
|
34938
34938
|
return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
|
|
@@ -34940,7 +34940,7 @@ function dn(e, t) {
|
|
|
34940
34940
|
function fn(e, t, n) {
|
|
34941
34941
|
var r;
|
|
34942
34942
|
if (n.length !== 1) return !1;
|
|
34943
|
-
let i = (r = n[0]) == null ? void 0 : r.id, a =
|
|
34943
|
+
let i = (r = n[0]) == null ? void 0 : r.id, a = S.poiMarkerStore.markers.find((e) => e.boothId === i);
|
|
34944
34944
|
if (!a) return !1;
|
|
34945
34945
|
let o = g(a.center.x, a.center.y, t.gpsConfig);
|
|
34946
34946
|
return on(e, o, an(J)) || e.easeTo({
|
|
@@ -34952,7 +34952,7 @@ function fn(e, t, n) {
|
|
|
34952
34952
|
}), !0;
|
|
34953
34953
|
}
|
|
34954
34954
|
function pn(e, t, n) {
|
|
34955
|
-
|
|
34955
|
+
ie(() => q.moveToBooths, (n) => {
|
|
34956
34956
|
let r = e.current;
|
|
34957
34957
|
if (!n || !r || !t) return;
|
|
34958
34958
|
let i = n.filter((e) => e.rect);
|
|
@@ -34963,23 +34963,23 @@ function pn(e, t, n) {
|
|
|
34963
34963
|
}
|
|
34964
34964
|
K(r, un(f.fromUnion(...i.map((e) => e.rect))), t), q.moveToBooths = null;
|
|
34965
34965
|
}
|
|
34966
|
-
}),
|
|
34966
|
+
}), ie(() => q.moveToRect, (n) => {
|
|
34967
34967
|
let r = e.current;
|
|
34968
34968
|
!n || !r || !t || (K(r, n, t, { paddingPercent: q.moveToRectPaddingPercent }), q.moveToRect = null, q.moveToRectPaddingPercent = null);
|
|
34969
|
-
}),
|
|
34969
|
+
}), ie(() => q.zoomBy, (t) => {
|
|
34970
34970
|
let n = e.current;
|
|
34971
34971
|
!t || !n || (n.flyTo({
|
|
34972
34972
|
zoom: n.getZoom() + (t > 1 ? .5 : -.5),
|
|
34973
34973
|
animate: !0,
|
|
34974
34974
|
duration: 500
|
|
34975
34975
|
}), q.zoomBy = null);
|
|
34976
|
-
}),
|
|
34976
|
+
}), ie(() => [
|
|
34977
34977
|
O.moveToLocation,
|
|
34978
|
-
|
|
34979
|
-
|
|
34978
|
+
S.maplibreStore.cameraPort,
|
|
34979
|
+
S.routeStore.currentPosition
|
|
34980
34980
|
], ([n]) => {
|
|
34981
34981
|
if (!n) return;
|
|
34982
|
-
let r = e.current, i =
|
|
34982
|
+
let r = e.current, i = S.routeStore.currentPosition;
|
|
34983
34983
|
if (!i) {
|
|
34984
34984
|
O.moveToLocation = !1;
|
|
34985
34985
|
return;
|
|
@@ -34998,14 +34998,14 @@ function pn(e, t, n) {
|
|
|
34998
34998
|
animate: !0,
|
|
34999
34999
|
duration: 1e3
|
|
35000
35000
|
});
|
|
35001
|
-
}),
|
|
35001
|
+
}), ie(() => O.centerMap, (r) => {
|
|
35002
35002
|
let i = e.current;
|
|
35003
35003
|
if (!(!r || !i || !t)) {
|
|
35004
35004
|
if (!(O.list.type === "search" && !O.list.text)) {
|
|
35005
35005
|
let { rect: e } = k({
|
|
35006
|
-
layerViewbox:
|
|
35007
|
-
explicitArea:
|
|
35008
|
-
layerRectangle:
|
|
35006
|
+
layerViewbox: S.layerStore.viewboxRectangle,
|
|
35007
|
+
explicitArea: te ? N : null,
|
|
35008
|
+
layerRectangle: S.layerStore.rectangle,
|
|
35009
35009
|
sceneDef: n,
|
|
35010
35010
|
svgArea: N
|
|
35011
35011
|
});
|
|
@@ -35024,7 +35024,7 @@ function hn(e) {
|
|
|
35024
35024
|
function gn(e) {
|
|
35025
35025
|
if (!e || e === "none") return "light";
|
|
35026
35026
|
try {
|
|
35027
|
-
return (0,
|
|
35027
|
+
return (0, he.default)(e).lightness() < mn ? "dark" : "light";
|
|
35028
35028
|
} catch {
|
|
35029
35029
|
return "light";
|
|
35030
35030
|
}
|
|
@@ -35053,50 +35053,50 @@ function Sn(e, t) {
|
|
|
35053
35053
|
}
|
|
35054
35054
|
function Cn() {
|
|
35055
35055
|
var e, t, n;
|
|
35056
|
-
let r = (e = (t =
|
|
35056
|
+
let r = (e = (t = S.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
|
|
35057
35057
|
return r != null && r.style ? {
|
|
35058
35058
|
style: r.style,
|
|
35059
35059
|
offline: r.offline
|
|
35060
35060
|
} : r != null && r.styleUrl ? {
|
|
35061
35061
|
style: r.styleUrl,
|
|
35062
35062
|
offline: r.offline
|
|
35063
|
-
} : _n(
|
|
35063
|
+
} : _n(y == null || (n = y.properties) == null || (n = n.config) == null ? void 0 : n.style, x.backgroundColor) === "dark" ? yn : vn;
|
|
35064
35064
|
}
|
|
35065
35065
|
//#endregion
|
|
35066
35066
|
//#region src/components/Maplibre/useDimming.ts
|
|
35067
35067
|
function wn() {
|
|
35068
|
-
return O.dimmed && !
|
|
35068
|
+
return O.dimmed && !S.poiMarkerStore.dimSuppressed;
|
|
35069
35069
|
}
|
|
35070
35070
|
function Tn(e, t) {
|
|
35071
|
-
let n = (0,
|
|
35071
|
+
let n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useCallback)((e) => {
|
|
35072
35072
|
var t, i;
|
|
35073
35073
|
let a = wn();
|
|
35074
35074
|
(t = n.current) == null || t.setTarget(a, e), (i = r.current) == null || i.setTarget(a, e);
|
|
35075
35075
|
}, []);
|
|
35076
|
-
return (0,
|
|
35077
|
-
let i =
|
|
35078
|
-
bn(e.current, t *
|
|
35079
|
-
}), a =
|
|
35076
|
+
return (0, F.useEffect)(() => {
|
|
35077
|
+
let i = fe((t) => {
|
|
35078
|
+
bn(e.current, t * me);
|
|
35079
|
+
}), a = fe((e) => {
|
|
35080
35080
|
let n = t.current;
|
|
35081
|
-
n &&
|
|
35081
|
+
n && ue(n, e * 1) && D(n.rootLayer);
|
|
35082
35082
|
});
|
|
35083
35083
|
return n.current = i, r.current = a, () => {
|
|
35084
35084
|
i.stop(), a.stop(), n.current = null, r.current = null;
|
|
35085
35085
|
};
|
|
35086
|
-
}, [e, t]),
|
|
35086
|
+
}, [e, t]), ie(() => wn(), () => i()), {
|
|
35087
35087
|
mapDimAnimatorRef: n,
|
|
35088
35088
|
venueDimAnimatorRef: r,
|
|
35089
35089
|
applyDimmingTarget: i,
|
|
35090
|
-
handleMapDimLayerReady: (0,
|
|
35090
|
+
handleMapDimLayerReady: (0, F.useCallback)((e) => {
|
|
35091
35091
|
var t, r;
|
|
35092
|
-
bn(e, ((t = (r = n.current) == null ? void 0 : r.getValue()) == null ? +!!wn() : t) *
|
|
35092
|
+
bn(e, ((t = (r = n.current) == null ? void 0 : r.getValue()) == null ? +!!wn() : t) * me);
|
|
35093
35093
|
}, [])
|
|
35094
35094
|
};
|
|
35095
35095
|
}
|
|
35096
35096
|
//#endregion
|
|
35097
35097
|
//#region src/components/Maplibre/useKioskIdleEvents.ts
|
|
35098
35098
|
function En(e, t) {
|
|
35099
|
-
(0,
|
|
35099
|
+
(0, F.useEffect)(() => {
|
|
35100
35100
|
let n = t.current;
|
|
35101
35101
|
if (!e || !n) return;
|
|
35102
35102
|
let r = !1, i = (e) => {
|
|
@@ -35120,14 +35120,14 @@ function Dn(e, t = /* @__PURE__ */ new Map()) {
|
|
|
35120
35120
|
let n = (r = t.get(e.name)) == null ? [] : r;
|
|
35121
35121
|
n.push(e), t.set(e.name, n);
|
|
35122
35122
|
}
|
|
35123
|
-
for (let r of (n = e.children) == null ? [] : n)
|
|
35123
|
+
for (let r of (n = e.children) == null ? [] : n) l(r) && Dn(r, t);
|
|
35124
35124
|
return t;
|
|
35125
35125
|
}
|
|
35126
35126
|
//#endregion
|
|
35127
35127
|
//#region src/components/Maplibre/useLayerVisibilitySync.ts
|
|
35128
35128
|
function On(e, t, n) {
|
|
35129
|
-
let r = (0,
|
|
35130
|
-
|
|
35129
|
+
let r = (0, F.useRef)(null), i = (0, F.useRef)(null);
|
|
35130
|
+
ie(() => S.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
|
|
35131
35131
|
var a, o;
|
|
35132
35132
|
if (!e) return;
|
|
35133
35133
|
((a = r.current) == null ? void 0 : a.rootLayer) !== e.rootLayer && (r.current = {
|
|
@@ -35135,7 +35135,7 @@ function On(e, t, n) {
|
|
|
35135
35135
|
defsByName: Dn(e.rootLayer)
|
|
35136
35136
|
});
|
|
35137
35137
|
let s = r.current.defsByName, c = [];
|
|
35138
|
-
for (let e of
|
|
35138
|
+
for (let e of S.layerStore.layers) {
|
|
35139
35139
|
let t = s.get(e.name);
|
|
35140
35140
|
if (t != null && t.length) for (let n of t) {
|
|
35141
35141
|
let t = !e.visible;
|
|
@@ -35143,7 +35143,7 @@ function On(e, t, n) {
|
|
|
35143
35143
|
}
|
|
35144
35144
|
}
|
|
35145
35145
|
c.length && D(...c);
|
|
35146
|
-
let l =
|
|
35146
|
+
let l = S.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
|
|
35147
35147
|
if (!l || i.current === l.name) return;
|
|
35148
35148
|
i.current = l.name;
|
|
35149
35149
|
let u = (o = l.viewbox) == null ? l.rect : o;
|
|
@@ -35163,24 +35163,24 @@ var kn = "expofp-poi", An = "expofp-poi-clusters", jn = "expofp-poi-cluster-coun
|
|
|
35163
35163
|
Nn
|
|
35164
35164
|
], In = Fn.filter((e) => e !== jn), Ln = (e) => `expofp-poi-icon-${e}`;
|
|
35165
35165
|
function Rn(e, t, a) {
|
|
35166
|
-
(0,
|
|
35166
|
+
(0, F.useEffect)(() => {
|
|
35167
35167
|
var o;
|
|
35168
35168
|
if (!ee()) return;
|
|
35169
35169
|
let s = t.current;
|
|
35170
35170
|
if (!e || !s || !a) return;
|
|
35171
|
-
let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), u = window.devicePixelRatio || 1, d = A(36, u, ((o =
|
|
35171
|
+
let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), u = window.devicePixelRatio || 1, d = A(36, u, ((o = x.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), p = (e) => g(e.center.x, e.center.y, c), h = (e, t) => {
|
|
35172
35172
|
s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: u }), l.add(e);
|
|
35173
|
-
},
|
|
35174
|
-
let t =
|
|
35173
|
+
}, _ = (e) => {
|
|
35174
|
+
let t = S.poiMarkerStore.markers, n = new Set(t.map((e) => Ln(e.boothId)));
|
|
35175
35175
|
n.add(Pn);
|
|
35176
35176
|
for (let e of [...l]) n.has(e) || (s.hasImage(e) && s.removeImage(e), l.delete(e));
|
|
35177
35177
|
for (let n of t) {
|
|
35178
35178
|
let t = Ln(n.boothId);
|
|
35179
|
-
(e || !l.has(t)) &&
|
|
35179
|
+
(e || !l.has(t)) && h(t, n.icon);
|
|
35180
35180
|
}
|
|
35181
|
-
l.has(Pn) ||
|
|
35182
|
-
},
|
|
35183
|
-
let e =
|
|
35181
|
+
l.has(Pn) || h(Pn, d);
|
|
35182
|
+
}, v = () => {
|
|
35183
|
+
let e = S.poiMarkerStore.selectedMarkerId, t = S.poiMarkerStore.outdoorFilter, n = !t.active, r = S.poiMarkerStore.markers;
|
|
35184
35184
|
return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
|
|
35185
35185
|
cluster: n,
|
|
35186
35186
|
data: {
|
|
@@ -35199,7 +35199,7 @@ function Rn(e, t, a) {
|
|
|
35199
35199
|
}))
|
|
35200
35200
|
}
|
|
35201
35201
|
};
|
|
35202
|
-
},
|
|
35202
|
+
}, y = () => {
|
|
35203
35203
|
var e, t, n;
|
|
35204
35204
|
let r = null;
|
|
35205
35205
|
for (let n of (e = (t = s.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
|
|
@@ -35212,17 +35212,17 @@ function Rn(e, t, a) {
|
|
|
35212
35212
|
}
|
|
35213
35213
|
}
|
|
35214
35214
|
return (n = r) == null ? ["Noto Sans Regular"] : n;
|
|
35215
|
-
},
|
|
35215
|
+
}, b = null, C = () => {
|
|
35216
35216
|
for (let e of Fn) s.getLayer(e) && s.removeLayer(e);
|
|
35217
|
-
s.getSource(kn) && s.removeSource(kn),
|
|
35218
|
-
},
|
|
35219
|
-
if (
|
|
35217
|
+
s.getSource(kn) && s.removeSource(kn), b = null;
|
|
35218
|
+
}, w = (e, t) => {
|
|
35219
|
+
if (b !== null && b !== t && C(), s.getSource(kn) || (s.addSource(kn, {
|
|
35220
35220
|
type: "geojson",
|
|
35221
35221
|
data: e,
|
|
35222
35222
|
cluster: t,
|
|
35223
35223
|
clusterRadius: 50,
|
|
35224
35224
|
clusterMinPoints: 3
|
|
35225
|
-
}),
|
|
35225
|
+
}), b = t), s.getLayer(An)) return;
|
|
35226
35226
|
let i = ["!", ["has", "point_count"]], a = [
|
|
35227
35227
|
"==",
|
|
35228
35228
|
[
|
|
@@ -35251,7 +35251,7 @@ function Rn(e, t, a) {
|
|
|
35251
35251
|
filter: ["has", "point_count"],
|
|
35252
35252
|
layout: {
|
|
35253
35253
|
"text-field": ["get", "point_count_abbreviated"],
|
|
35254
|
-
"text-font":
|
|
35254
|
+
"text-font": y(),
|
|
35255
35255
|
"text-size": 14,
|
|
35256
35256
|
"text-allow-overlap": !0,
|
|
35257
35257
|
"text-ignore-placement": !0
|
|
@@ -35288,16 +35288,16 @@ function Rn(e, t, a) {
|
|
|
35288
35288
|
"icon-ignore-placement": !0
|
|
35289
35289
|
}
|
|
35290
35290
|
});
|
|
35291
|
-
},
|
|
35291
|
+
}, T = () => {
|
|
35292
35292
|
if (!s.getLayer(An)) return;
|
|
35293
|
-
let e = wn() ? 1 -
|
|
35293
|
+
let e = wn() ? 1 - me : 1;
|
|
35294
35294
|
s.setPaintProperty(An, "circle-opacity", e), s.setPaintProperty(An, "circle-stroke-opacity", e), s.setPaintProperty(jn, "text-opacity", e), s.setPaintProperty(Mn, "icon-opacity", e), s.setPaintProperty(Nn, "icon-opacity", e);
|
|
35295
|
-
},
|
|
35295
|
+
}, E = (e = !1) => {
|
|
35296
35296
|
var t;
|
|
35297
|
-
|
|
35298
|
-
let { cluster: n, data: r } =
|
|
35299
|
-
|
|
35300
|
-
},
|
|
35297
|
+
_(e);
|
|
35298
|
+
let { cluster: n, data: r } = v();
|
|
35299
|
+
w(r, n), (t = s.getSource(kn)) == null || t.setData(r), T();
|
|
35300
|
+
}, D = (e) => {
|
|
35301
35301
|
if (!e.length) return;
|
|
35302
35302
|
let t = an(50);
|
|
35303
35303
|
if (e.every((e) => on(s, p(e), t))) return;
|
|
@@ -35312,13 +35312,13 @@ function Rn(e, t, a) {
|
|
|
35312
35312
|
duration: 500,
|
|
35313
35313
|
essential: !0
|
|
35314
35314
|
});
|
|
35315
|
-
},
|
|
35315
|
+
}, O = (e) => {
|
|
35316
35316
|
var t;
|
|
35317
35317
|
let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
|
|
35318
35318
|
if (typeof n != "number") return;
|
|
35319
|
-
let r =
|
|
35320
|
-
r &&
|
|
35321
|
-
},
|
|
35319
|
+
let r = S.boothStore.boothById.get(n);
|
|
35320
|
+
r && S.clickBooth(r);
|
|
35321
|
+
}, k = (e) => {
|
|
35322
35322
|
var t, n, r;
|
|
35323
35323
|
let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, o = s.getSource(kn);
|
|
35324
35324
|
if (typeof a != "number" || !o || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
|
|
@@ -35331,23 +35331,23 @@ function Rn(e, t, a) {
|
|
|
35331
35331
|
});
|
|
35332
35332
|
});
|
|
35333
35333
|
};
|
|
35334
|
-
s.on("click", Mn,
|
|
35334
|
+
s.on("click", Mn, O), s.on("click", Nn, O), s.on("click", An, k), m.set((e, t) => {
|
|
35335
35335
|
let n = In.filter((e) => !!s.getLayer(e));
|
|
35336
35336
|
if (!n.length) return !1;
|
|
35337
35337
|
let r = s.project(g(e, t, c));
|
|
35338
35338
|
return s.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
|
|
35339
35339
|
});
|
|
35340
|
-
let
|
|
35341
|
-
l.clear(),
|
|
35340
|
+
let j = () => {
|
|
35341
|
+
l.clear(), E(!0);
|
|
35342
35342
|
};
|
|
35343
|
-
s.on("style.load",
|
|
35344
|
-
let
|
|
35345
|
-
|
|
35346
|
-
}),
|
|
35347
|
-
return
|
|
35348
|
-
|
|
35343
|
+
s.on("style.load", j);
|
|
35344
|
+
let M = i(() => S.poiMarkerStore.markers, () => E(!0)), N = i(() => S.poiMarkerStore.selectedMarkerId, () => E()), P = i(() => S.poiMarkerStore.outdoorFilter.key, () => {
|
|
35345
|
+
E(), D(S.poiMarkerStore.outdoorFilter.matchingMarkers);
|
|
35346
|
+
}), te = i(() => wn(), () => T());
|
|
35347
|
+
return E(!0), () => {
|
|
35348
|
+
M(), N(), P(), te(), m.set(null), s.off("style.load", j), s.off("click", Mn, O), s.off("click", Nn, O), s.off("click", An, k);
|
|
35349
35349
|
try {
|
|
35350
|
-
|
|
35350
|
+
C();
|
|
35351
35351
|
for (let e of l) s.hasImage(e) && s.removeImage(e);
|
|
35352
35352
|
} catch {}
|
|
35353
35353
|
};
|
|
@@ -35360,13 +35360,13 @@ function Rn(e, t, a) {
|
|
|
35360
35360
|
//#endregion
|
|
35361
35361
|
//#region src/components/Maplibre/useWayfindingAndMarkers.ts
|
|
35362
35362
|
function zn(e, t) {
|
|
35363
|
-
(0,
|
|
35363
|
+
(0, F.useEffect)(() => {
|
|
35364
35364
|
if (!e) return;
|
|
35365
|
-
let n =
|
|
35365
|
+
let n = d({
|
|
35366
35366
|
scene: e,
|
|
35367
|
-
store:
|
|
35367
|
+
store: S,
|
|
35368
35368
|
canvas: t
|
|
35369
|
-
}), r =
|
|
35369
|
+
}), r = le({ scene: e });
|
|
35370
35370
|
return () => {
|
|
35371
35371
|
n(), r();
|
|
35372
35372
|
};
|
|
@@ -35396,7 +35396,7 @@ function Gn(e, t) {
|
|
|
35396
35396
|
], s = [], c = [], l = [];
|
|
35397
35397
|
for (let e of o) {
|
|
35398
35398
|
Xn(e), c.push([e.x, e.y]);
|
|
35399
|
-
let t =
|
|
35399
|
+
let t = ge.MercatorCoordinate.fromLngLat([e.lng, e.lat], 0), n = t.meterInMercatorCoordinateUnits();
|
|
35400
35400
|
Zn(t.x), Zn(t.y), Zn(n), s.push(n), l.push([t.x, t.y]);
|
|
35401
35401
|
}
|
|
35402
35402
|
let u = [], d = [];
|
|
@@ -35550,23 +35550,23 @@ function or(e, t, n) {
|
|
|
35550
35550
|
};
|
|
35551
35551
|
}
|
|
35552
35552
|
function sr() {
|
|
35553
|
-
|
|
35554
|
-
|
|
35553
|
+
S.poiMarkerStore.clear(), a(() => {
|
|
35554
|
+
S.layerStore.layers.forEach((e) => {
|
|
35555
35555
|
e.configured = !1, e.children = [], e.loaded = !1;
|
|
35556
|
-
}),
|
|
35556
|
+
}), S.layerStore.layersLoaded = !1;
|
|
35557
35557
|
});
|
|
35558
35558
|
}
|
|
35559
|
-
var cr =
|
|
35559
|
+
var cr = re(function({ viewMode: e }) {
|
|
35560
35560
|
var t;
|
|
35561
|
-
let [n, r] = (0,
|
|
35562
|
-
layerViewbox:
|
|
35563
|
-
explicitArea:
|
|
35564
|
-
layerRectangle:
|
|
35561
|
+
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null), s = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useMemo)(() => sn(), []), p = (0, F.useMemo)(() => k({
|
|
35562
|
+
layerViewbox: S.layerStore.viewboxRectangle,
|
|
35563
|
+
explicitArea: te ? N : null,
|
|
35564
|
+
layerRectangle: S.layerStore.rectangle,
|
|
35565
35565
|
sceneDef: n,
|
|
35566
35566
|
svgArea: N
|
|
35567
|
-
}), [n]), m = p.rect,
|
|
35567
|
+
}), [n]), m = p.rect, g = (0, F.useMemo)(() => {
|
|
35568
35568
|
if (!f) return null;
|
|
35569
|
-
let e =
|
|
35569
|
+
let e = C(p.source) ? 0 : w(m, N), t = an(0);
|
|
35570
35570
|
e && O.screenSize && (t.left += O.screenSize.width * e, t.right += O.screenSize.width * e, t.top += O.screenSize.height * e, t.bottom += O.screenSize.height * e);
|
|
35571
35571
|
let n = O.screenSize ? nn(m, f.gpsConfig, f.bearing, {
|
|
35572
35572
|
width: O.screenSize.width,
|
|
@@ -35588,23 +35588,23 @@ var cr = ne(function({ viewMode: e }) {
|
|
|
35588
35588
|
f,
|
|
35589
35589
|
p,
|
|
35590
35590
|
m
|
|
35591
|
-
]),
|
|
35591
|
+
]), v = (0, F.useMemo)(() => {
|
|
35592
35592
|
var e;
|
|
35593
|
-
return f ? Gn(f.gpsConfig, (e =
|
|
35594
|
-
}, [f]),
|
|
35593
|
+
return f ? Gn(f.gpsConfig, (e = T()) == null ? void 0 : e.getAttribute("units")) : null;
|
|
35594
|
+
}, [f]), y = O.mapSettings.pitchdegrees, D = O.maxPitch, A = (0, F.useMemo)(() => {
|
|
35595
35595
|
let t = e === "map2d";
|
|
35596
35596
|
return {
|
|
35597
|
-
pitch: t ? 0 :
|
|
35597
|
+
pitch: t ? 0 : y,
|
|
35598
35598
|
maxPitch: t ? 0 : D,
|
|
35599
35599
|
minZoom: 12
|
|
35600
35600
|
};
|
|
35601
35601
|
}, [
|
|
35602
35602
|
e,
|
|
35603
|
-
|
|
35603
|
+
y,
|
|
35604
35604
|
D
|
|
35605
|
-
]), j = (0,
|
|
35606
|
-
if (!n || !
|
|
35607
|
-
let e = n.rootLayer.children, t =
|
|
35605
|
+
]), j = (0, F.useRef)(A), ee = (0, F.useMemo)(() => Cn(), []), P = (0, F.useMemo)(() => {
|
|
35606
|
+
if (!n || !v) return null;
|
|
35607
|
+
let e = n.rootLayer.children, t = E(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
|
|
35608
35608
|
return {
|
|
35609
35609
|
...n,
|
|
35610
35610
|
rootLayer: {
|
|
@@ -35612,78 +35612,78 @@ var cr = ne(function({ viewMode: e }) {
|
|
|
35612
35612
|
children: t
|
|
35613
35613
|
},
|
|
35614
35614
|
background: void 0,
|
|
35615
|
-
staticTransform:
|
|
35615
|
+
staticTransform: v
|
|
35616
35616
|
};
|
|
35617
|
-
}, [n,
|
|
35618
|
-
(0,
|
|
35619
|
-
|
|
35620
|
-
}, [
|
|
35621
|
-
if (
|
|
35622
|
-
}, [
|
|
35623
|
-
let { mapDimAnimatorRef:
|
|
35624
|
-
(0,
|
|
35617
|
+
}, [n, v]), re = (0, F.useRef)(null);
|
|
35618
|
+
(0, F.useEffect)(() => {
|
|
35619
|
+
re.current = P;
|
|
35620
|
+
}, [P]), (0, F.useEffect)(() => {
|
|
35621
|
+
if (P) return M(P), () => M(void 0);
|
|
35622
|
+
}, [P]);
|
|
35623
|
+
let { mapDimAnimatorRef: ie, venueDimAnimatorRef: le, applyDimmingTarget: ue, handleMapDimLayerReady: fe } = Tn(o, re);
|
|
35624
|
+
(0, F.useEffect)(() => {
|
|
35625
35625
|
if (!f) return;
|
|
35626
35626
|
let e = !1;
|
|
35627
|
-
sr(),
|
|
35627
|
+
sr(), se().then(({ layers: t, cleanup: n }) => {
|
|
35628
35628
|
if (e) {
|
|
35629
35629
|
n();
|
|
35630
35630
|
return;
|
|
35631
35631
|
}
|
|
35632
35632
|
l.current = n;
|
|
35633
|
-
let i = (0,
|
|
35634
|
-
r(
|
|
35633
|
+
let i = (0, he.default)(x.backgroundColor === "none" ? "#ebebeb" : x.backgroundColor).string();
|
|
35634
|
+
r(b(t, N, i));
|
|
35635
35635
|
}).catch((t) => {
|
|
35636
35636
|
e || console.warn("Maplibre scene configuration failed.", t);
|
|
35637
35637
|
});
|
|
35638
|
-
let t =
|
|
35638
|
+
let t = ie.current, n = le.current;
|
|
35639
35639
|
return () => {
|
|
35640
35640
|
var r;
|
|
35641
|
-
e = !0, sr(), (r = l.current) == null || r.call(l), l.current = null, d.current && (
|
|
35641
|
+
e = !0, sr(), (r = l.current) == null || r.call(l), l.current = null, d.current && (S.maplibreStore.clearCameraPortIfCurrent(d.current), d.current = null), o.current = null, s.current = null, u.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), O.sceneDefReady = !1;
|
|
35642
35642
|
};
|
|
35643
35643
|
}, [
|
|
35644
35644
|
f,
|
|
35645
|
-
|
|
35646
|
-
|
|
35645
|
+
ie,
|
|
35646
|
+
le
|
|
35647
35647
|
]);
|
|
35648
|
-
let
|
|
35648
|
+
let me = (0, F.useCallback)((e, t) => {
|
|
35649
35649
|
var n;
|
|
35650
35650
|
o.current = e, s.current = e.getCanvas(), u.current = t, a(!0), e.once("idle", () => Sn(e, j.current));
|
|
35651
35651
|
let r = or(e, (n = f == null ? void 0 : f.bearing) == null ? e.getBearing() : n, () => {
|
|
35652
35652
|
var e;
|
|
35653
35653
|
return (e = j.current.pitch) == null ? 0 : e;
|
|
35654
35654
|
});
|
|
35655
|
-
d.current = r,
|
|
35656
|
-
}, [
|
|
35657
|
-
(0,
|
|
35655
|
+
d.current = r, S.maplibreStore.setCameraPort(r), S.fp.getCenterCoordinates = () => ae(s.current), ue({ immediate: !0 }), ne(), S.layerStore.layersLoaded = !0, S.fp.onFpConfigured && S.fp.onFpConfigured(), O.sceneDefReady = !0, t();
|
|
35656
|
+
}, [ue, f]);
|
|
35657
|
+
(0, F.useEffect)(() => {
|
|
35658
35658
|
j.current = A, Sn(o.current, A);
|
|
35659
|
-
}, [A]), En(i, o), zn(
|
|
35660
|
-
enabled:
|
|
35661
|
-
scene:
|
|
35659
|
+
}, [A]), En(i, o), zn(P, s), Rn(i, o, f), On(P, o, f), pn(o, f, P), oe({
|
|
35660
|
+
enabled: S.layerStore.layersLoaded && O.buildRoute,
|
|
35661
|
+
scene: P == null ? void 0 : P
|
|
35662
35662
|
});
|
|
35663
|
-
let
|
|
35664
|
-
|
|
35665
|
-
permission:
|
|
35666
|
-
scene:
|
|
35667
|
-
dataJsonUrl: `https://${ir}/v1/routes?expo=${
|
|
35668
|
-
websocketUrl: `wss://${ir}/locations?expo=${
|
|
35663
|
+
let ge = (t = _.busRoutes) != null && t;
|
|
35664
|
+
ce({
|
|
35665
|
+
permission: S.layerStore.layersLoaded && ge,
|
|
35666
|
+
scene: P == null ? void 0 : P,
|
|
35667
|
+
dataJsonUrl: `https://${ir}/v1/routes?expo=${x.EXPO}`,
|
|
35668
|
+
websocketUrl: `wss://${ir}/locations?expo=${x.EXPO}`
|
|
35669
35669
|
});
|
|
35670
|
-
let
|
|
35671
|
-
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e),
|
|
35670
|
+
let _e = (0, F.useCallback)((e) => {
|
|
35671
|
+
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), S.maplibreStore.deactivateMaplibre();
|
|
35672
35672
|
}, []);
|
|
35673
|
-
if (!f || !
|
|
35674
|
-
let
|
|
35673
|
+
if (!f || !g || !v || !P) return null;
|
|
35674
|
+
let ve = `${g.center.join(",")}:${g.bearing}:${g.zoom}`;
|
|
35675
35675
|
return /* @__PURE__ */ (0, Mt.jsxs)(Wt, {
|
|
35676
|
-
sceneDef:
|
|
35677
|
-
geoConfig:
|
|
35676
|
+
sceneDef: P,
|
|
35677
|
+
geoConfig: g,
|
|
35678
35678
|
tileSource: ee,
|
|
35679
35679
|
mapOptions: A,
|
|
35680
35680
|
debug: c,
|
|
35681
|
-
onMapReady:
|
|
35682
|
-
onMapDimLayerReady:
|
|
35683
|
-
onMapLoadError:
|
|
35684
|
-
onPointerMissed:
|
|
35685
|
-
children: [/* @__PURE__ */ (0, Mt.jsx)(
|
|
35686
|
-
},
|
|
35681
|
+
onMapReady: me,
|
|
35682
|
+
onMapDimLayerReady: fe,
|
|
35683
|
+
onMapLoadError: _e,
|
|
35684
|
+
onPointerMissed: h,
|
|
35685
|
+
children: [/* @__PURE__ */ (0, Mt.jsx)(de, {}), c && /* @__PURE__ */ (0, Mt.jsx)(pe, { canvas: s })]
|
|
35686
|
+
}, ve);
|
|
35687
35687
|
});
|
|
35688
35688
|
//#endregion
|
|
35689
35689
|
export { cr as default };
|