@expofp/floorplan 3.23.0 → 3.23.1
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-Cdcme0dW.js → Button-Cu9clsSR.js} +5 -5
- package/dist/browser/{CookieConsent-B7cDBqp6.js → CookieConsent-mvgZy0jC.js} +8 -8
- package/dist/browser/{Debug-C1YnJvnk.js → Debug-CnnGHGZJ.js} +10 -10
- package/dist/browser/{Demo-BIM3wFq3.js → Demo-DQlgp6cY.js} +10 -10
- package/dist/browser/{Free-D7U5AEcf.js → Free-DgGCDTNd.js} +12 -12
- package/dist/browser/{Gallery-BXlz1tz4.js → GalleryContainer-ixlqlJ9Q.js} +714 -589
- package/dist/browser/{GpsLoader-BdUzK_Wq.js → GpsLoader-9JLK7S2S.js} +31 -31
- package/dist/browser/{KioskStore-t38ARgcW.js → KioskStore-ZtZBfHyG.js} +34 -34
- package/dist/browser/{MaplibreAdapter-CSAShUgd.js → MaplibreAdapter-C__Oc26V.js} +835 -835
- package/dist/browser/{ModalContainer-B33HKAAU.js → ModalContainer-DsyDwSqY.js} +59 -54
- package/dist/browser/{PermissionNotice-F6g9pz0M.js → PermissionNotice-CZ4QlKe_.js} +6 -6
- package/dist/browser/{SetKioskMode-CJoi2gHM.js → SetKioskMode-Bf4b4bnh.js} +15 -15
- package/dist/browser/{ShowKiosk-H4rnBUGh.js → ShowKiosk-BdAccxwG.js} +11 -11
- package/dist/browser/{ViewerMenuPanel-BmJhh8Ln.js → ViewerMenuPanel-_Y9M630H.js} +18 -18
- package/dist/browser/{add-debug-secret-listener-BNoe6VU3.js → add-debug-secret-listener-DQl3P4ki.js} +1 -1
- package/dist/browser/{adopt-global-settings-DIweHmmO.js → adopt-global-settings-DTFmFw7D.js} +9 -9
- package/dist/browser/{boolean-editor-C9fqoeTB.js → boolean-editor-DRaZvwNE.js} +9 -9
- package/dist/browser/{bootIntercom-BB5HdKln.js → bootIntercom-Bxi_kVm1.js} +2 -2
- package/dist/browser/{booth-by-xy-BP9IYJhy.js → booth-by-xy-RZ4XM07z.js} +287 -287
- package/dist/browser/bundle.json +65 -65
- package/dist/browser/{classnames-Dmeqek3o.js → classnames-yCHhGUHk.js} +2 -2
- package/dist/browser/{client-CBb2454O.js → client-dzWvVFIu.js} +4 -4
- package/dist/browser/{components-DyDFRZBC.js → components-DiWraxYJ.js} +2032 -2034
- package/dist/browser/{debug-overlay-DXOrtUeJ.js → debug-overlay-By2JKe98.js} +10 -10
- package/dist/browser/{debug-ui-tNUnR4wz.js → debug-ui-B7iMFZL2.js} +6 -6
- package/dist/browser/{dist-DcOtrqGG.js → dist-BJYZuYz5.js} +3 -3
- package/dist/browser/{dist-BIFUFe-T.js → dist-D0sDuIMU.js} +5 -5
- package/dist/browser/{dist-DZfEO0RJ.js → dist-XtgimJG-.js} +6 -6
- package/dist/browser/{efp-debug-init-B4ddpmiL.js → efp-debug-init-Cm4noHZv.js} +3 -3
- package/dist/browser/{enum-editor-CJB3E-Vh.js → enum-editor-CmI32f5A.js} +4 -4
- package/dist/browser/{es5-DeTUpXm2.js → es5-97nOnIxB.js} +2 -2
- package/dist/browser/{event-not-found-WRXwMJms.js → event-not-found-Gs3WorrR.js} +1 -1
- package/dist/browser/{exports-C5uYtLxL.js → exports-BzI9isE4.js} +1 -1
- package/dist/browser/{favicon-5gTCZLy9.js → favicon-NX_igce1.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BoyaQteS.js → fetch-retry.umd-BdBGrOUm.js} +2 -2
- package/dist/browser/{flex-DjFgAKFt.js → flex-D0Cx6ssp.js} +5 -5
- package/dist/browser/{floorplan.loader-Ck3XnezM.js → floorplan.loader-BNASIC9N.js} +10 -10
- package/dist/browser/{floorplan.ready-CzTR8qqL.js → floorplan.ready-Bdm_nBoS.js} +269 -269
- package/dist/browser/{fuse-BR27GheK.js → fuse-CArwLmpE.js} +2 -2
- package/dist/browser/{i18n-DNH3sP4D.js → i18n-DJDkRNUS.js} +5 -5
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-DzGptmYn.js → index.module-AN1k6qf9.js} +4 -4
- package/dist/browser/{integrateKiosk-DN5HgMdz.js → integrateKiosk-BHslPH6W.js} +5 -5
- package/dist/browser/{is-webview-CEqtlsy5.js → is-webview-CpxNA1hf.js} +1 -1
- package/dist/browser/{jsx-runtime-BRUHXGcL.js → jsx-runtime-BTmKWYLh.js} +2 -2
- package/dist/browser/{kiosk-record-C6KsyYH0.js → kiosk-record-Dar5bcb3.js} +1 -1
- package/dist/browser/{lib-BoYL1Y22.js → lib-CH0lKOWr.js} +3 -3
- package/dist/browser/{loadImage-2JV_4hsV.js → loadImage-Cyucj9ZO.js} +4 -4
- package/dist/browser/{logDeviceInfo-Bga4LjdT.js → logDeviceInfo-DrWNwkiz.js} +9 -9
- package/dist/browser/{main-BUSluy8y.js → main-DDG4oAN0.js} +1 -1
- package/dist/browser/{mobx-Cp-RXiD6.js → mobx-CCrzy0oK.js} +4 -4
- package/dist/browser/{optional-boolean-editor-biZOa4EF.js → optional-boolean-editor-B9ghixUw.js} +3 -3
- package/dist/browser/{optional-enum-editor-BuzYWVhL.js → optional-enum-editor-ymdwpZCG.js} +4 -4
- package/dist/browser/{optional-string-editor-1Gxph7oU.js → optional-string-editor-B7GvxUp0.js} +4 -4
- package/dist/browser/{particles.min-Cq5SYO7P.js → particles.min-DR9RAdSY.js} +2 -2
- package/dist/browser/{react-BCiZTNvQ.js → react-Di1u_Olu.js} +2 -2
- package/dist/browser/{react-dom-Gayzbfmi.js → react-dom-DgZLuRw2.js} +3 -3
- package/dist/browser/{rolldown-runtime-C4CgTizo.js → rolldown-runtime-Bq2YTOlP.js} +1 -1
- package/dist/browser/{select-BEAG7sfR.js → select-1HLg5zVy.js} +10 -10
- package/dist/browser/{settings-BJrS0XMO.js → settings-CiVCMVtK.js} +2 -2
- package/dist/browser/{settings-item-C-rqGE6m.js → settings-item-BdvpCLdo.js} +6 -6
- package/dist/browser/{store-DH91iUcL.js → store-CYrJjLi8.js} +5581 -5554
- package/dist/browser/{string-editor-fs3xB248.js → string-editor-OFy8aOQQ.js} +4 -4
- package/dist/browser/{text-field-CN-pynRC.js → text-field-BXXmJXFF.js} +5 -5
- package/dist/browser/{theme-78GgHmsO.js → theme-DpPZfgKy.js} +8 -8
- package/dist/browser/{ui-BFQlKtKk.js → ui-CJ0nQkSv.js} +8 -8
- package/dist/browser/useRenderTarget-roc5qoAU.js +57 -0
- package/dist/esm/components/EntityList.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/GalleryContainer.d.ts +6 -0
- package/dist/esm/components/GalleryContainer.js +1 -0
- package/dist/esm/components/OverlayContainer.d.ts +1 -2
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/index.d.ts +1 -3
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/store/OverlayStore.d.ts +19 -0
- package/dist/esm/store/OverlayStore.js +1 -0
- package/dist/esm/store/RootStore.d.ts +2 -0
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +0 -1
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/index.d.ts +1 -0
- package/dist/esm/store/index.js +1 -1
- package/package.json +9 -11
- package/dist/browser/useRenderTarget-CtWSXh71.js +0 -48
- package/dist/esm/components/Gallery/Gallery.d.ts +0 -13
- package/dist/esm/components/Gallery/Gallery.js +0 -1
- package/dist/esm/components/Gallery/GalleryBadges/GalleryBadges.d.ts +0 -8
- package/dist/esm/components/Gallery/GalleryBadges/GalleryBadges.js +0 -1
- package/dist/esm/components/Gallery/GalleryControls/GalleryControls.d.ts +0 -9
- package/dist/esm/components/Gallery/GalleryControls/GalleryControls.js +0 -1
- package/dist/esm/components/Gallery/GalleryImg/GalleryImg.d.ts +0 -14
- package/dist/esm/components/Gallery/GalleryImg/GalleryImg.js +0 -1
- package/dist/esm/components/Gallery/GalleryItem/GalleryItem.d.ts +0 -13
- package/dist/esm/components/Gallery/GalleryItem/GalleryItem.js +0 -1
- package/dist/esm/components/Gallery/GalleryModal/GalleryModal.d.ts +0 -12
- package/dist/esm/components/Gallery/GalleryModal/GalleryModal.js +0 -1
- package/dist/esm/components/Gallery/GalleryPreLoader.d.ts +0 -7
- package/dist/esm/components/Gallery/GalleryPreLoader.js +0 -1
- package/dist/esm/components/Gallery/TransformImg/TransformImg.d.ts +0 -10
- package/dist/esm/components/Gallery/TransformImg/TransformImg.js +0 -1
- package/dist/esm/components/Overlay.d.ts +0 -23
- package/dist/esm/components/Overlay.js +0 -1
- package/dist/esm/components/Toast/ToastContainer.d.ts +0 -12
- package/dist/esm/components/Toast/ToastContainer.js +0 -1
- package/dist/esm/components/Toast/ToastContext.d.ts +0 -2
- package/dist/esm/components/Toast/ToastContext.js +0 -1
- package/dist/esm/components/Toast/ToastProvider.d.ts +0 -6
- package/dist/esm/components/Toast/ToastProvider.js +0 -1
- package/dist/esm/components/Toast/index.d.ts +0 -2
- package/dist/esm/components/Toast/index.js +0 -1
- package/dist/esm/hooks/useDragGesture.d.ts +0 -19
- package/dist/esm/hooks/useDragGesture.js +0 -1
- package/dist/esm/hooks/useWindowSize.d.ts +0 -5
- package/dist/esm/hooks/useWindowSize.js +0 -1
- package/dist/esm/utils/useTimeout.d.ts +0 -2
- package/dist/esm/utils/useTimeout.js +0 -1
|
@@ -2,21 +2,21 @@ 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.23.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.23.1" };
|
|
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] = "c1955406-aa1a-469d-b676-8ba2664e60b8", e._sentryDebugIdIdentifier = "sentry-dbid-c1955406-aa1a-469d-b676-8ba2664e60b8");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import { X as n, Y 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 {
|
|
15
|
-
import { t as
|
|
16
|
-
import { r as
|
|
17
|
-
import { a as
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-Bq2YTOlP.js";
|
|
11
|
+
import { X as n, Y as r, v as i, y as a } from "./i18n-DJDkRNUS.js";
|
|
12
|
+
import { t as o } from "./react-Di1u_Olu.js";
|
|
13
|
+
import { t as s } from "./jsx-runtime-BTmKWYLh.js";
|
|
14
|
+
import { E as c, I as l, Nt as u, Ot as d, R as f, Rt as p, Ut as m, V as h, bn as g, c as _, cn as v, d as y, dn as b, f as x, ft as S, gt as C, ht as w, in as T, l as E, mn as D, on as O, p as k, sn as A, t as j, u as M, un as ee } from "./store-CYrJjLi8.js";
|
|
15
|
+
import { t as te } from "./index.module-AN1k6qf9.js";
|
|
16
|
+
import { r as N } from "./mobx-CCrzy0oK.js";
|
|
17
|
+
import { a as ne, c as re, i as ie, l as ae, n as oe, o as se, r as ce, s as le, t as ue } from "./booth-by-xy-RZ4XM07z.js";
|
|
18
18
|
//#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
19
|
-
var
|
|
19
|
+
var P = /* @__PURE__ */ e(o(), 1), de = /* @__PURE__ */ e(b(), 1), fe = (/* @__PURE__ */ t(((e, t) => {
|
|
20
20
|
(function(n, r) {
|
|
21
21
|
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());
|
|
22
22
|
})(e, (function() {
|
|
@@ -315,58 +315,58 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
315
315
|
function M(e, t, n) {
|
|
316
316
|
return e * (1 - n) + t * n;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function ee(e) {
|
|
319
319
|
if (e <= 0) return 0;
|
|
320
320
|
if (e >= 1) return 1;
|
|
321
321
|
let t = e * e, n = t * e;
|
|
322
322
|
return 4 * (e < .5 ? n : 3 * (e - t) + n - .75);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function te(e, t, n, r) {
|
|
325
325
|
let i = new o(e, t, n, r);
|
|
326
326
|
return (e) => i.solve(e);
|
|
327
327
|
}
|
|
328
|
-
let
|
|
329
|
-
function
|
|
328
|
+
let N = te(.25, .1, .25, 1);
|
|
329
|
+
function ne(e, t, n) {
|
|
330
330
|
return Math.min(n, Math.max(t, e));
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function re(e, t, n) {
|
|
333
333
|
let r = n - t, i = ((e - t) % r + r) % r + t;
|
|
334
334
|
return i === t ? n : i;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function ie(e, ...t) {
|
|
337
337
|
for (let n of t) for (let t in n) e[t] = n[t];
|
|
338
338
|
return e;
|
|
339
339
|
}
|
|
340
|
-
let
|
|
341
|
-
function
|
|
340
|
+
let ae = 1;
|
|
341
|
+
function oe(e, t, n) {
|
|
342
342
|
let r = {};
|
|
343
343
|
for (let n in e) r[n] = t.call(this, e[n], n, e);
|
|
344
344
|
return r;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function se(e, t, n) {
|
|
347
347
|
let r = {};
|
|
348
348
|
for (let n in e) t.call(this, e[n], n, e) && (r[n] = e[n]);
|
|
349
349
|
return r;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
return Array.isArray(e) ? e.map(
|
|
351
|
+
function ce(e) {
|
|
352
|
+
return Array.isArray(e) ? e.map(ce) : typeof e == "object" && e ? oe(e, ce) : e;
|
|
353
353
|
}
|
|
354
|
-
let
|
|
355
|
-
function
|
|
356
|
-
|
|
354
|
+
let le = {};
|
|
355
|
+
function ue(e) {
|
|
356
|
+
le[e] || (typeof console < "u" && console.warn(e), le[e] = !0);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function P(e, t, n) {
|
|
359
359
|
return (n.y - e.y) * (t.x - e.x) > (t.y - e.y) * (n.x - e.x);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function de(e) {
|
|
362
362
|
return typeof WorkerGlobalScope < "u" && e !== void 0 && e instanceof WorkerGlobalScope;
|
|
363
363
|
}
|
|
364
|
-
let
|
|
365
|
-
function
|
|
364
|
+
let fe = null;
|
|
365
|
+
function pe(e) {
|
|
366
366
|
return typeof ImageBitmap < "u" && e instanceof ImageBitmap;
|
|
367
367
|
}
|
|
368
|
-
let
|
|
369
|
-
function
|
|
368
|
+
let me = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
|
|
369
|
+
function he(e, n, r, i, a) {
|
|
370
370
|
return t(this, void 0, void 0, (function* () {
|
|
371
371
|
if (typeof VideoFrame > "u") throw Error("VideoFrame not supported");
|
|
372
372
|
let t = new VideoFrame(e, { timestamp: 0 });
|
|
@@ -398,25 +398,25 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
398
398
|
}
|
|
399
399
|
}));
|
|
400
400
|
}
|
|
401
|
-
let
|
|
402
|
-
function
|
|
401
|
+
let ge, _e;
|
|
402
|
+
function ve(e, t, n, r) {
|
|
403
403
|
return e.addEventListener(t, n, r), { unsubscribe: () => {
|
|
404
404
|
e.removeEventListener(t, n, r);
|
|
405
405
|
} };
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function ye(e) {
|
|
408
408
|
return e * Math.PI / 180;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function be(e) {
|
|
411
411
|
return e / Math.PI * 180;
|
|
412
412
|
}
|
|
413
|
-
let
|
|
413
|
+
let xe = {
|
|
414
414
|
touchstart: !0,
|
|
415
415
|
touchmove: !0,
|
|
416
416
|
touchmoveWindow: !0,
|
|
417
417
|
touchend: !0,
|
|
418
418
|
touchcancel: !0
|
|
419
|
-
},
|
|
419
|
+
}, Se = {
|
|
420
420
|
dblclick: !0,
|
|
421
421
|
click: !0,
|
|
422
422
|
mouseover: !0,
|
|
@@ -428,55 +428,55 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
428
428
|
mouseupWindow: !0,
|
|
429
429
|
contextmenu: !0,
|
|
430
430
|
wheel: !0
|
|
431
|
-
},
|
|
432
|
-
class
|
|
433
|
-
constructor(e =
|
|
434
|
-
super(e instanceof Error ? e.message : e), this.name =
|
|
431
|
+
}, Ce = "AbortError";
|
|
432
|
+
class we extends Error {
|
|
433
|
+
constructor(e = Ce) {
|
|
434
|
+
super(e instanceof Error ? e.message : e), this.name = Ce, e instanceof Error && e.stack && (this.stack = e.stack);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function we(e) {
|
|
438
|
-
return e instanceof Error && e.name === Se;
|
|
439
|
-
}
|
|
440
437
|
function Te(e) {
|
|
441
|
-
|
|
438
|
+
return e instanceof Error && e.name === Ce;
|
|
439
|
+
}
|
|
440
|
+
function Ee(e) {
|
|
441
|
+
if (e.aborted) throw new we(e.reason);
|
|
442
442
|
}
|
|
443
|
-
let
|
|
443
|
+
let De = {
|
|
444
444
|
MAX_PARALLEL_IMAGE_REQUESTS: 16,
|
|
445
445
|
MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8,
|
|
446
446
|
MAX_TILE_CACHE_ZOOM_LEVELS: 5,
|
|
447
447
|
REGISTERED_PROTOCOLS: {},
|
|
448
448
|
WORKER_URL: ""
|
|
449
449
|
};
|
|
450
|
-
function
|
|
451
|
-
return
|
|
450
|
+
function Oe(e) {
|
|
451
|
+
return De.REGISTERED_PROTOCOLS[e.substring(0, e.indexOf("://"))];
|
|
452
452
|
}
|
|
453
|
-
let
|
|
454
|
-
class
|
|
453
|
+
let ke = "global-dispatcher";
|
|
454
|
+
class Ae extends Error {
|
|
455
455
|
constructor(e, t, n, r) {
|
|
456
456
|
super(`AJAXError: ${t} (${e}): ${n}`), this.status = e, this.statusText = t, this.url = n, this.body = r;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
let
|
|
459
|
+
let je = () => {
|
|
460
460
|
var e;
|
|
461
|
-
return
|
|
462
|
-
},
|
|
461
|
+
return de(self) ? (e = self.worker) == null ? void 0 : e.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href;
|
|
462
|
+
}, Me = function(e, n) {
|
|
463
463
|
return t(this, void 0, void 0, (function* () {
|
|
464
464
|
var r, i;
|
|
465
465
|
if (e.url.includes("://") && !/^https?:|^file:/.test(e.url)) {
|
|
466
|
-
let t =
|
|
466
|
+
let t = Oe(e.url);
|
|
467
467
|
if (t) {
|
|
468
468
|
let r = yield t(e, n);
|
|
469
|
-
return r.data || e.type !== "arrayBuffer" ? r :
|
|
469
|
+
return r.data || e.type !== "arrayBuffer" ? r : ie(r, { data: /* @__PURE__ */ new ArrayBuffer(0) });
|
|
470
470
|
}
|
|
471
|
-
if (
|
|
471
|
+
if (de(self) && (r = self.worker) != null && r.actor) return self.worker.actor.sendAsync({
|
|
472
472
|
type: "GR",
|
|
473
473
|
data: e,
|
|
474
|
-
targetMapId:
|
|
474
|
+
targetMapId: ke
|
|
475
475
|
}, n);
|
|
476
476
|
}
|
|
477
477
|
if (!((e) => {
|
|
478
478
|
var t;
|
|
479
|
-
return e.startsWith("file:") || ((t =
|
|
479
|
+
return e.startsWith("file:") || ((t = je()) == null ? void 0 : t.startsWith("file:")) && !/^\w+:/.test(e);
|
|
480
480
|
})(e.url)) {
|
|
481
481
|
if (fetch && Request && AbortController && Object.hasOwn(Request.prototype, "signal")) return function(e, n) {
|
|
482
482
|
return t(this, void 0, void 0, (function* () {
|
|
@@ -486,7 +486,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
486
486
|
credentials: e.credentials,
|
|
487
487
|
headers: e.headers,
|
|
488
488
|
cache: e.cache,
|
|
489
|
-
referrer:
|
|
489
|
+
referrer: je(),
|
|
490
490
|
referrerPolicy: e.referrerPolicy,
|
|
491
491
|
signal: n.signal
|
|
492
492
|
}), r, i;
|
|
@@ -494,15 +494,15 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
494
494
|
try {
|
|
495
495
|
r = yield fetch(t);
|
|
496
496
|
} catch (t) {
|
|
497
|
-
throw
|
|
497
|
+
throw Te(t) ? t : new Ae(0, A(t).message, e.url, new Blob());
|
|
498
498
|
}
|
|
499
499
|
if (!r.ok) {
|
|
500
500
|
let t = yield r.blob();
|
|
501
|
-
throw new
|
|
501
|
+
throw new Ae(r.status, r.statusText, e.url, t);
|
|
502
502
|
}
|
|
503
503
|
i = e.type === "arrayBuffer" || e.type === "image" ? r.arrayBuffer() : e.type === "json" ? r.json() : r.text();
|
|
504
504
|
let a = yield i;
|
|
505
|
-
return
|
|
505
|
+
return Ee(n.signal), {
|
|
506
506
|
data: a,
|
|
507
507
|
cacheControl: r.headers.get("Cache-Control"),
|
|
508
508
|
expires: r.headers.get("Expires"),
|
|
@@ -510,11 +510,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
510
510
|
};
|
|
511
511
|
}));
|
|
512
512
|
}(e, n);
|
|
513
|
-
if (
|
|
513
|
+
if (de(self) && (i = self.worker) != null && i.actor) return self.worker.actor.sendAsync({
|
|
514
514
|
type: "GR",
|
|
515
515
|
data: e,
|
|
516
516
|
mustQueue: !0,
|
|
517
|
-
targetMapId:
|
|
517
|
+
targetMapId: ke
|
|
518
518
|
}, n);
|
|
519
519
|
}
|
|
520
520
|
return function(e, t) {
|
|
@@ -542,65 +542,65 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
542
542
|
});
|
|
543
543
|
} else {
|
|
544
544
|
let t = new Blob([a.response], { type: a.getResponseHeader("Content-Type") });
|
|
545
|
-
r(new
|
|
545
|
+
r(new Ae(a.status, a.statusText, e.url, t));
|
|
546
546
|
}
|
|
547
547
|
}, t.signal.addEventListener("abort", (() => {
|
|
548
|
-
a.abort(), r(new
|
|
548
|
+
a.abort(), r(new we(t.signal.reason));
|
|
549
549
|
})), a.send(e.body);
|
|
550
550
|
}));
|
|
551
551
|
}(e, n);
|
|
552
552
|
}));
|
|
553
553
|
};
|
|
554
|
-
function
|
|
554
|
+
function Ne(e) {
|
|
555
555
|
if (!e || e.indexOf("://") <= 0 || e.startsWith("data:image/") || e.startsWith("blob:")) return !0;
|
|
556
556
|
let t = new URL(e), n = window.location;
|
|
557
557
|
return t.protocol === n.protocol && t.host === n.host;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Pe(e, t, n) {
|
|
560
560
|
var r;
|
|
561
561
|
(r = n[e]) != null && r.includes(t) || (n[e] || (n[e] = []), n[e].push(t));
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Fe(e, t, n) {
|
|
564
564
|
if (n != null && n[e]) {
|
|
565
565
|
let r = n[e].indexOf(t);
|
|
566
566
|
r !== -1 && n[e].splice(r, 1);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
class
|
|
569
|
+
class Ie {
|
|
570
570
|
constructor(e, t = {}) {
|
|
571
|
-
|
|
571
|
+
ie(this, t), this.type = e;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
class
|
|
574
|
+
class Le extends Ie {
|
|
575
575
|
constructor(e, t = {}) {
|
|
576
|
-
super("error",
|
|
576
|
+
super("error", ie({ error: e }, t));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
class
|
|
579
|
+
class Re {
|
|
580
580
|
on(e, t) {
|
|
581
|
-
return this._listeners || (this._listeners = {}),
|
|
581
|
+
return this._listeners || (this._listeners = {}), Pe(e, t, this._listeners), { unsubscribe: () => {
|
|
582
582
|
this.off(e, t);
|
|
583
583
|
} };
|
|
584
584
|
}
|
|
585
585
|
off(e, t) {
|
|
586
|
-
return
|
|
586
|
+
return Fe(e, t, this._listeners), Fe(e, t, this._oneTimeListeners), this;
|
|
587
587
|
}
|
|
588
588
|
once(e, t) {
|
|
589
|
-
return t ? (this._oneTimeListeners || (this._oneTimeListeners = {}),
|
|
589
|
+
return t ? (this._oneTimeListeners || (this._oneTimeListeners = {}), Pe(e, t, this._oneTimeListeners), this) : new Promise(((t) => this.once(e, t)));
|
|
590
590
|
}
|
|
591
591
|
fire(e, t) {
|
|
592
592
|
var n, r;
|
|
593
|
-
typeof e == "string" && (e = new
|
|
593
|
+
typeof e == "string" && (e = new Ie(e, t || {}));
|
|
594
594
|
let i = e.type;
|
|
595
595
|
if (this.listens(i)) {
|
|
596
596
|
e.target = this;
|
|
597
597
|
let t = (n = this._listeners) != null && n[i] ? this._listeners[i].slice() : [];
|
|
598
598
|
for (let n of t) n.call(this, e);
|
|
599
599
|
let a = (r = this._oneTimeListeners) != null && r[i] ? this._oneTimeListeners[i].slice() : [];
|
|
600
|
-
for (let t of a)
|
|
600
|
+
for (let t of a) Fe(i, t, this._oneTimeListeners), t.call(this, e);
|
|
601
601
|
let o = this._eventedParent;
|
|
602
|
-
o && (
|
|
603
|
-
} else e instanceof
|
|
602
|
+
o && (ie(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), o.fire(e));
|
|
603
|
+
} else e instanceof Le && console.error(e.error);
|
|
604
604
|
return this;
|
|
605
605
|
}
|
|
606
606
|
listens(e) {
|
|
@@ -611,7 +611,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
611
611
|
return this._eventedParent = e, this._eventedParentData = t, this;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
var
|
|
614
|
+
var F = {
|
|
615
615
|
$version: 8,
|
|
616
616
|
$root: {
|
|
617
617
|
version: {
|
|
@@ -3222,7 +3222,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
3222
3222
|
}
|
|
3223
3223
|
}
|
|
3224
3224
|
};
|
|
3225
|
-
let
|
|
3225
|
+
let ze = [
|
|
3226
3226
|
"type",
|
|
3227
3227
|
"source",
|
|
3228
3228
|
"source-layer",
|
|
@@ -3231,22 +3231,22 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
3231
3231
|
"filter",
|
|
3232
3232
|
"layout"
|
|
3233
3233
|
];
|
|
3234
|
-
function
|
|
3234
|
+
function Be(e, t) {
|
|
3235
3235
|
let n = {};
|
|
3236
3236
|
for (let t in e) t !== "ref" && (n[t] = e[t]);
|
|
3237
|
-
return
|
|
3237
|
+
return ze.forEach(((e) => {
|
|
3238
3238
|
e in t && (n[e] = t[e]);
|
|
3239
3239
|
})), n;
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function I(e, t) {
|
|
3242
3242
|
if (Array.isArray(e)) {
|
|
3243
3243
|
if (!Array.isArray(t) || e.length !== t.length) return !1;
|
|
3244
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
3244
|
+
for (let n = 0; n < e.length; n++) if (!I(e[n], t[n])) return !1;
|
|
3245
3245
|
return !0;
|
|
3246
3246
|
}
|
|
3247
3247
|
if (typeof e == "object" && e && t !== null) {
|
|
3248
3248
|
if (typeof t != "object" || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
3249
|
-
for (let n in e) if (!
|
|
3249
|
+
for (let n in e) if (!I(e[n], t[n])) return !1;
|
|
3250
3250
|
return !0;
|
|
3251
3251
|
}
|
|
3252
3252
|
return e === t;
|
|
@@ -3271,13 +3271,13 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
3271
3271
|
}
|
|
3272
3272
|
function Ge(e, t, n) {
|
|
3273
3273
|
let r;
|
|
3274
|
-
for (r in e[n]) if (Object.prototype.hasOwnProperty.call(e[n], r) && r !== "data" && !
|
|
3275
|
-
for (r in t[n]) if (Object.prototype.hasOwnProperty.call(t[n], r) && r !== "data" && !
|
|
3274
|
+
for (r in e[n]) if (Object.prototype.hasOwnProperty.call(e[n], r) && r !== "data" && !I(e[n][r], t[n][r])) return !1;
|
|
3275
|
+
for (r in t[n]) if (Object.prototype.hasOwnProperty.call(t[n], r) && r !== "data" && !I(e[n][r], t[n][r])) return !1;
|
|
3276
3276
|
return !0;
|
|
3277
3277
|
}
|
|
3278
3278
|
function Ke(e, t, n, r, i, a) {
|
|
3279
3279
|
e = e || {}, t = t || {};
|
|
3280
|
-
for (let o in e) Object.prototype.hasOwnProperty.call(e, o) && (
|
|
3280
|
+
for (let o in e) Object.prototype.hasOwnProperty.call(e, o) && (I(e[o], t[o]) || n.push({
|
|
3281
3281
|
command: a,
|
|
3282
3282
|
args: [
|
|
3283
3283
|
r,
|
|
@@ -3286,7 +3286,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
3286
3286
|
i
|
|
3287
3287
|
]
|
|
3288
3288
|
}));
|
|
3289
|
-
for (let o in t) Object.prototype.hasOwnProperty.call(t, o) && !Object.prototype.hasOwnProperty.call(e, o) && (
|
|
3289
|
+
for (let o in t) Object.prototype.hasOwnProperty.call(t, o) && !Object.prototype.hasOwnProperty.call(e, o) && (I(e[o], t[o]) || n.push({
|
|
3290
3290
|
command: a,
|
|
3291
3291
|
args: [
|
|
3292
3292
|
r,
|
|
@@ -7155,7 +7155,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
7155
7155
|
}
|
|
7156
7156
|
function Ei(e) {
|
|
7157
7157
|
let t = "";
|
|
7158
|
-
for (let n of
|
|
7158
|
+
for (let n of ze) t += `/${Ti(e[n])}`;
|
|
7159
7159
|
return t;
|
|
7160
7160
|
}
|
|
7161
7161
|
function Di(e) {
|
|
@@ -7866,7 +7866,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
7866
7866
|
let t = e.value, n = e.key, r = Ui(e);
|
|
7867
7867
|
return r.length || (t.indexOf("{fontstack}") === -1 && r.push(new R(n, t, "\"glyphs\" url must include a \"{fontstack}\" token")), t.indexOf("{range}") === -1 && r.push(new R(n, t, "\"glyphs\" url must include a \"{range}\" token"))), r;
|
|
7868
7868
|
}
|
|
7869
|
-
function ta(e, t =
|
|
7869
|
+
function ta(e, t = F) {
|
|
7870
7870
|
let n = [];
|
|
7871
7871
|
return n = n.concat($i({
|
|
7872
7872
|
key: "",
|
|
@@ -7930,10 +7930,10 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
7930
7930
|
return this._globalStateRefs;
|
|
7931
7931
|
}
|
|
7932
7932
|
}
|
|
7933
|
-
let sa =
|
|
7933
|
+
let sa = F, ca = ta, la = ca.light, ua = ca.sky, da = ca.paintProperty, fa = ca.layoutProperty;
|
|
7934
7934
|
function pa(e, t) {
|
|
7935
7935
|
let n = !1;
|
|
7936
|
-
if (t != null && t.length) for (let r of t) e.fire(new
|
|
7936
|
+
if (t != null && t.length) for (let r of t) e.fire(new Le(Error(r.message))), n = !0;
|
|
7937
7937
|
return n;
|
|
7938
7938
|
}
|
|
7939
7939
|
class ma {
|
|
@@ -8031,7 +8031,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8031
8031
|
shallow: n.shallow || []
|
|
8032
8032
|
};
|
|
8033
8033
|
}
|
|
8034
|
-
X("Object", Object), X("Set", Set), X("TransferableGridIndex", ma), X("Color", W), X("Error", Error), X("AJAXError",
|
|
8034
|
+
X("Object", Object), X("Set", Set), X("TransferableGridIndex", ma), X("Color", W), X("Error", Error), X("AJAXError", Ae), X("ResolvedImage", qt), X("StylePropertyFunction", di), X("StyleExpression", ai, { omit: ["_evaluator"] }), X("ZoomDependentExpression", li), X("ZoomConstantExpression", ci), X("CompoundExpression", Lr, { omit: ["_evaluate"] });
|
|
8035
8035
|
for (let e in Ir) Ir[e]._classRegistryKey || X(`Expression_${e}`, Ir[e]);
|
|
8036
8036
|
function ga(e) {
|
|
8037
8037
|
var t;
|
|
@@ -8045,10 +8045,10 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8045
8045
|
if (typeof e != "object" || !e) return !1;
|
|
8046
8046
|
let t = _a(e);
|
|
8047
8047
|
return t && t !== "Object";
|
|
8048
|
-
}(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) ||
|
|
8048
|
+
}(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);
|
|
8049
8049
|
}
|
|
8050
8050
|
function ya(e, t) {
|
|
8051
|
-
if (va(e)) return (ga(e) ||
|
|
8051
|
+
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;
|
|
8052
8052
|
if (Array.isArray(e)) {
|
|
8053
8053
|
let n = [];
|
|
8054
8054
|
for (let r of e) n.push(ya(r, t));
|
|
@@ -8258,7 +8258,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8258
8258
|
this.property = e, this.value = new za(e, void 0, t);
|
|
8259
8259
|
}
|
|
8260
8260
|
transitioned(e, t) {
|
|
8261
|
-
return new Ha(this.property, this.value, t,
|
|
8261
|
+
return new Ha(this.property, this.value, t, ie({}, e.transition, this.transition), e.now);
|
|
8262
8262
|
}
|
|
8263
8263
|
untransitioned() {
|
|
8264
8264
|
return new Ha(this.property, this.value, null, {}, 0);
|
|
@@ -8272,16 +8272,16 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8272
8272
|
return e in this._properties.defaultTransitionablePropertyValues;
|
|
8273
8273
|
}
|
|
8274
8274
|
getValue(e) {
|
|
8275
|
-
return
|
|
8275
|
+
return ce(this._values[e].value.value);
|
|
8276
8276
|
}
|
|
8277
8277
|
setValue(e, t) {
|
|
8278
|
-
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 :
|
|
8278
|
+
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 : ce(t), this._globalState);
|
|
8279
8279
|
}
|
|
8280
8280
|
getTransition(e) {
|
|
8281
|
-
return
|
|
8281
|
+
return ce(this._values[e].transition);
|
|
8282
8282
|
}
|
|
8283
8283
|
setTransition(e, t) {
|
|
8284
|
-
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition =
|
|
8284
|
+
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition = ce(t) || void 0;
|
|
8285
8285
|
}
|
|
8286
8286
|
serialize() {
|
|
8287
8287
|
let e = {};
|
|
@@ -8315,7 +8315,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8315
8315
|
if (r < this.begin) return a.possiblyEvaluate(e, t, n);
|
|
8316
8316
|
{
|
|
8317
8317
|
let o = (r - this.begin) / (this.end - this.begin);
|
|
8318
|
-
return this.property.interpolate(a.possiblyEvaluate(e, t, n), i,
|
|
8318
|
+
return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, ee(o));
|
|
8319
8319
|
}
|
|
8320
8320
|
}
|
|
8321
8321
|
return i;
|
|
@@ -8346,10 +8346,10 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8346
8346
|
return e in this._properties.defaultPropertyValues;
|
|
8347
8347
|
}
|
|
8348
8348
|
getValue(e) {
|
|
8349
|
-
return
|
|
8349
|
+
return ce(this._values[e].value);
|
|
8350
8350
|
}
|
|
8351
8351
|
setValue(e, t) {
|
|
8352
|
-
this._values[e] = new za(this._values[e].property, t === null ? void 0 :
|
|
8352
|
+
this._values[e] = new za(this._values[e].property, t === null ? void 0 : ce(t), this._globalState);
|
|
8353
8353
|
}
|
|
8354
8354
|
serialize() {
|
|
8355
8355
|
let e = {};
|
|
@@ -8522,7 +8522,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8522
8522
|
}
|
|
8523
8523
|
X("DataDrivenProperty", Q), X("DataConstantProperty", Z), X("CrossFadedDataDrivenProperty", qa), X("CrossFadedProperty", Ja), X("ColorRampProperty", Ya);
|
|
8524
8524
|
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?";
|
|
8525
|
-
class $a extends
|
|
8525
|
+
class $a extends Re {
|
|
8526
8526
|
constructor(e, t, n) {
|
|
8527
8527
|
if (super(), this.id = e.id, this.type = e.type, this._globalState = n, this._featureFilter = {
|
|
8528
8528
|
filter: () => !0,
|
|
@@ -8581,7 +8581,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8581
8581
|
setLayoutProperty(e, t, n = {}) {
|
|
8582
8582
|
var r;
|
|
8583
8583
|
if (e === "visibility") return this.visibility = t, this._visibilityExpression.setValue(t), void this.recalculateVisibility();
|
|
8584
|
-
(r = this._transitionablePaint) != null && r.hasProperty(e) ? this.fire(new
|
|
8584
|
+
(r = this._transitionablePaint) != null && r.hasProperty(e) ? this.fire(new Le(/* @__PURE__ */ Error(e + Za))) : t != null && this._validate(fa, `layers.${this.id}.layout.${e}`, e, t, n) || this._unevaluatedLayout.setValue(e, t);
|
|
8585
8585
|
}
|
|
8586
8586
|
getPaintProperty(e) {
|
|
8587
8587
|
var t, n;
|
|
@@ -8595,7 +8595,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8595
8595
|
}
|
|
8596
8596
|
setPaintProperty(e, t, n = {}) {
|
|
8597
8597
|
var r;
|
|
8598
|
-
if (e === "visibility" || (r = this._unevaluatedLayout) != null && r.hasProperty(e)) return this.fire(new
|
|
8598
|
+
if (e === "visibility" || (r = this._unevaluatedLayout) != null && r.hasProperty(e)) return this.fire(new Le(/* @__PURE__ */ Error(e + Qa))), !1;
|
|
8599
8599
|
if (t != null && this._validate(da, `layers.${this.id}.paint.${e}`, e, t, n)) return !1;
|
|
8600
8600
|
if (e.endsWith(Ra)) return this._transitionablePaint.setTransition(e.slice(0, -11), t || void 0), !1;
|
|
8601
8601
|
{
|
|
@@ -8638,7 +8638,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8638
8638
|
layout: (e = this._unevaluatedLayout) == null ? void 0 : e.serialize(),
|
|
8639
8639
|
paint: (t = this._transitionablePaint) == null ? void 0 : t.serialize()
|
|
8640
8640
|
};
|
|
8641
|
-
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility),
|
|
8641
|
+
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility), se(n, ((e, t) => !(e === void 0 || t === "layout" && !Object.keys(e).length || t === "paint" && !Object.keys(e).length)));
|
|
8642
8642
|
}
|
|
8643
8643
|
_validate(e, t, n, r, i = {}) {
|
|
8644
8644
|
return !1 !== (i == null ? void 0 : i.validate) && pa(this, e.call(ca, {
|
|
@@ -8646,7 +8646,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8646
8646
|
layerType: this.type,
|
|
8647
8647
|
objectKey: n,
|
|
8648
8648
|
value: r,
|
|
8649
|
-
styleSpec:
|
|
8649
|
+
styleSpec: F,
|
|
8650
8650
|
style: {
|
|
8651
8651
|
glyphs: !0,
|
|
8652
8652
|
sprite: !0
|
|
@@ -8674,15 +8674,15 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
8674
8674
|
let eo;
|
|
8675
8675
|
var to = { get paint() {
|
|
8676
8676
|
return eo = eo || new Xa({
|
|
8677
|
-
"raster-opacity": new Z(
|
|
8678
|
-
"raster-hue-rotate": new Z(
|
|
8679
|
-
"raster-brightness-min": new Z(
|
|
8680
|
-
"raster-brightness-max": new Z(
|
|
8681
|
-
"raster-saturation": new Z(
|
|
8682
|
-
"raster-contrast": new Z(
|
|
8683
|
-
resampling: new Z(
|
|
8684
|
-
"raster-resampling": new Z(
|
|
8685
|
-
"raster-fade-duration": new Z(
|
|
8677
|
+
"raster-opacity": new Z(F.paint_raster["raster-opacity"]),
|
|
8678
|
+
"raster-hue-rotate": new Z(F.paint_raster["raster-hue-rotate"]),
|
|
8679
|
+
"raster-brightness-min": new Z(F.paint_raster["raster-brightness-min"]),
|
|
8680
|
+
"raster-brightness-max": new Z(F.paint_raster["raster-brightness-max"]),
|
|
8681
|
+
"raster-saturation": new Z(F.paint_raster["raster-saturation"]),
|
|
8682
|
+
"raster-contrast": new Z(F.paint_raster["raster-contrast"]),
|
|
8683
|
+
resampling: new Z(F.paint_raster.resampling),
|
|
8684
|
+
"raster-resampling": new Z(F.paint_raster["raster-resampling"]),
|
|
8685
|
+
"raster-fade-duration": new Z(F.paint_raster["raster-fade-duration"])
|
|
8686
8686
|
});
|
|
8687
8687
|
} };
|
|
8688
8688
|
class no extends $a {
|
|
@@ -9377,7 +9377,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
9377
9377
|
}
|
|
9378
9378
|
prepareSegment(e, t, n, r) {
|
|
9379
9379
|
let i = this.segments[this.segments.length - 1];
|
|
9380
|
-
return e > ss.MAX_VERTEX_ARRAY_LENGTH &&
|
|
9380
|
+
return e > ss.MAX_VERTEX_ARRAY_LENGTH && ue(`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;
|
|
9381
9381
|
}
|
|
9382
9382
|
createNewSegment(e, t, n) {
|
|
9383
9383
|
let r = {
|
|
@@ -9413,7 +9413,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
9413
9413
|
}
|
|
9414
9414
|
}
|
|
9415
9415
|
function cs(e, t) {
|
|
9416
|
-
return 256 * (e =
|
|
9416
|
+
return 256 * (e = ne(Math.floor(e), 0, 255)) + ne(Math.floor(t), 0, 255);
|
|
9417
9417
|
}
|
|
9418
9418
|
ss.MAX_VERTEX_ARRAY_LENGTH = 2 ** 16 - 1, X("SegmentVector", ss);
|
|
9419
9419
|
let ls = oo([
|
|
@@ -9673,7 +9673,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
9673
9673
|
this.paintVertexBuffer && this.paintVertexBuffer.destroy();
|
|
9674
9674
|
}
|
|
9675
9675
|
setUniform(e, t) {
|
|
9676
|
-
let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r =
|
|
9676
|
+
let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r = ne(this.expression.interpolationFactor(n, this.zoom, this.zoom + 1), 0, 1);
|
|
9677
9677
|
e.set(r);
|
|
9678
9678
|
}
|
|
9679
9679
|
getBinding(e, t, n) {
|
|
@@ -9967,7 +9967,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
9967
9967
|
let t = O / e.extent, n = e.loadGeometry();
|
|
9968
9968
|
for (let e of n) for (let n of e) {
|
|
9969
9969
|
let e = Math.round(n.x * t), r = Math.round(n.y * t);
|
|
9970
|
-
n.x =
|
|
9970
|
+
n.x = ne(e, Bs, zs), n.y = ne(r, Bs, zs), (e < n.x || e > n.x + 1 || r < n.y || r > n.y + 1) && ue("Geometry exceeds allowed extent, reduce your vector tile buffer size");
|
|
9971
9971
|
}
|
|
9972
9972
|
return n;
|
|
9973
9973
|
}
|
|
@@ -10118,7 +10118,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10118
10118
|
return !1;
|
|
10119
10119
|
}
|
|
10120
10120
|
function Zs(e, t, n, r) {
|
|
10121
|
-
return
|
|
10121
|
+
return P(e, n, r) !== P(t, n, r) && P(e, t, n) !== P(e, t, r);
|
|
10122
10122
|
}
|
|
10123
10123
|
function Qs(e, t, n) {
|
|
10124
10124
|
let r = n * n;
|
|
@@ -10151,8 +10151,8 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10151
10151
|
function nc(e, t, n) {
|
|
10152
10152
|
let r = n[0], i = n[2];
|
|
10153
10153
|
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;
|
|
10154
|
-
let a =
|
|
10155
|
-
return a !==
|
|
10154
|
+
let a = P(e, t, n[0]);
|
|
10155
|
+
return a !== P(e, t, n[1]) || a !== P(e, t, n[2]) || a !== P(e, t, n[3]);
|
|
10156
10156
|
}
|
|
10157
10157
|
function rc(e, t, n) {
|
|
10158
10158
|
let r = t.paint.get(e).value;
|
|
@@ -10210,21 +10210,21 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10210
10210
|
var hc = {
|
|
10211
10211
|
get paint() {
|
|
10212
10212
|
return mc = mc || new Xa({
|
|
10213
|
-
"circle-radius": new Q(
|
|
10214
|
-
"circle-color": new Q(
|
|
10215
|
-
"circle-blur": new Q(
|
|
10216
|
-
"circle-opacity": new Q(
|
|
10217
|
-
"circle-translate": new Z(
|
|
10218
|
-
"circle-translate-anchor": new Z(
|
|
10219
|
-
"circle-pitch-scale": new Z(
|
|
10220
|
-
"circle-pitch-alignment": new Z(
|
|
10221
|
-
"circle-stroke-width": new Q(
|
|
10222
|
-
"circle-stroke-color": new Q(
|
|
10223
|
-
"circle-stroke-opacity": new Q(
|
|
10213
|
+
"circle-radius": new Q(F.paint_circle["circle-radius"]),
|
|
10214
|
+
"circle-color": new Q(F.paint_circle["circle-color"]),
|
|
10215
|
+
"circle-blur": new Q(F.paint_circle["circle-blur"]),
|
|
10216
|
+
"circle-opacity": new Q(F.paint_circle["circle-opacity"]),
|
|
10217
|
+
"circle-translate": new Z(F.paint_circle["circle-translate"]),
|
|
10218
|
+
"circle-translate-anchor": new Z(F.paint_circle["circle-translate-anchor"]),
|
|
10219
|
+
"circle-pitch-scale": new Z(F.paint_circle["circle-pitch-scale"]),
|
|
10220
|
+
"circle-pitch-alignment": new Z(F.paint_circle["circle-pitch-alignment"]),
|
|
10221
|
+
"circle-stroke-width": new Q(F.paint_circle["circle-stroke-width"]),
|
|
10222
|
+
"circle-stroke-color": new Q(F.paint_circle["circle-stroke-color"]),
|
|
10223
|
+
"circle-stroke-opacity": new Q(F.paint_circle["circle-stroke-opacity"])
|
|
10224
10224
|
});
|
|
10225
10225
|
},
|
|
10226
10226
|
get layout() {
|
|
10227
|
-
return pc = pc || new Xa({ "circle-sort-key": new Q(
|
|
10227
|
+
return pc = pc || new Xa({ "circle-sort-key": new Q(F.layout_circle["circle-sort-key"]) });
|
|
10228
10228
|
}
|
|
10229
10229
|
};
|
|
10230
10230
|
class gc extends $a {
|
|
@@ -10258,11 +10258,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10258
10258
|
X("HeatmapBucket", _c, { omit: ["layers"] });
|
|
10259
10259
|
var yc = { get paint() {
|
|
10260
10260
|
return vc = vc || new Xa({
|
|
10261
|
-
"heatmap-radius": new Q(
|
|
10262
|
-
"heatmap-weight": new Q(
|
|
10263
|
-
"heatmap-intensity": new Z(
|
|
10264
|
-
"heatmap-color": new Ya(
|
|
10265
|
-
"heatmap-opacity": new Z(
|
|
10261
|
+
"heatmap-radius": new Q(F.paint_heatmap["heatmap-radius"]),
|
|
10262
|
+
"heatmap-weight": new Q(F.paint_heatmap["heatmap-weight"]),
|
|
10263
|
+
"heatmap-intensity": new Z(F.paint_heatmap["heatmap-intensity"]),
|
|
10264
|
+
"heatmap-color": new Ya(F.paint_heatmap["heatmap-color"]),
|
|
10265
|
+
"heatmap-opacity": new Z(F.paint_heatmap["heatmap-opacity"])
|
|
10266
10266
|
});
|
|
10267
10267
|
} };
|
|
10268
10268
|
function bc(e, { width: t, height: n }, r, i) {
|
|
@@ -10409,15 +10409,15 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10409
10409
|
let kc;
|
|
10410
10410
|
var Ac = { get paint() {
|
|
10411
10411
|
return kc = kc || new Xa({
|
|
10412
|
-
"hillshade-illumination-direction": new Z(
|
|
10413
|
-
"hillshade-illumination-altitude": new Z(
|
|
10414
|
-
"hillshade-illumination-anchor": new Z(
|
|
10415
|
-
"hillshade-exaggeration": new Z(
|
|
10416
|
-
"hillshade-shadow-color": new Z(
|
|
10417
|
-
"hillshade-highlight-color": new Z(
|
|
10418
|
-
"hillshade-accent-color": new Z(
|
|
10419
|
-
"hillshade-method": new Z(
|
|
10420
|
-
resampling: new Z(
|
|
10412
|
+
"hillshade-illumination-direction": new Z(F.paint_hillshade["hillshade-illumination-direction"]),
|
|
10413
|
+
"hillshade-illumination-altitude": new Z(F.paint_hillshade["hillshade-illumination-altitude"]),
|
|
10414
|
+
"hillshade-illumination-anchor": new Z(F.paint_hillshade["hillshade-illumination-anchor"]),
|
|
10415
|
+
"hillshade-exaggeration": new Z(F.paint_hillshade["hillshade-exaggeration"]),
|
|
10416
|
+
"hillshade-shadow-color": new Z(F.paint_hillshade["hillshade-shadow-color"]),
|
|
10417
|
+
"hillshade-highlight-color": new Z(F.paint_hillshade["hillshade-highlight-color"]),
|
|
10418
|
+
"hillshade-accent-color": new Z(F.paint_hillshade["hillshade-accent-color"]),
|
|
10419
|
+
"hillshade-method": new Z(F.paint_hillshade["hillshade-method"]),
|
|
10420
|
+
resampling: new Z(F.paint_hillshade.resampling)
|
|
10421
10421
|
});
|
|
10422
10422
|
} };
|
|
10423
10423
|
class jc extends $a {
|
|
@@ -10430,9 +10430,9 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10430
10430
|
getIlluminationProperties() {
|
|
10431
10431
|
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);
|
|
10432
10432
|
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)));
|
|
10433
|
-
let a = t.map(
|
|
10433
|
+
let a = t.map(ye);
|
|
10434
10434
|
return {
|
|
10435
|
-
directionRadians: e.map(
|
|
10435
|
+
directionRadians: e.map(ye),
|
|
10436
10436
|
altitudeRadians: a,
|
|
10437
10437
|
shadowColor: r,
|
|
10438
10438
|
highlightColor: n
|
|
@@ -10445,9 +10445,9 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10445
10445
|
let Mc;
|
|
10446
10446
|
var Nc = { get paint() {
|
|
10447
10447
|
return Mc = Mc || new Xa({
|
|
10448
|
-
"color-relief-opacity": new Z(
|
|
10449
|
-
"color-relief-color": new Ya(
|
|
10450
|
-
resampling: new Z(
|
|
10448
|
+
"color-relief-opacity": new Z(F["paint_color-relief"]["color-relief-opacity"]),
|
|
10449
|
+
"color-relief-color": new Ya(F["paint_color-relief"]["color-relief-color"]),
|
|
10450
|
+
resampling: new Z(F["paint_color-relief"].resampling)
|
|
10451
10451
|
});
|
|
10452
10452
|
} };
|
|
10453
10453
|
function Pc(e) {
|
|
@@ -10505,7 +10505,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10505
10505
|
"mapbox",
|
|
10506
10506
|
"terrarium",
|
|
10507
10507
|
"custom"
|
|
10508
|
-
].includes(n)) return void
|
|
10508
|
+
].includes(n)) return void ue(`"${n}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);
|
|
10509
10509
|
this.stride = t.height;
|
|
10510
10510
|
let s = this.dim = t.height - 2;
|
|
10511
10511
|
switch (this.data = new Uint32Array(t.data.buffer), n) {
|
|
@@ -10601,7 +10601,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
10601
10601
|
colorStops: []
|
|
10602
10602
|
}, i = (t.elevationStops.length - 1) / (e - 1);
|
|
10603
10603
|
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)]);
|
|
10604
|
-
return
|
|
10604
|
+
return ue(`Too many colors in specification of ${this.id} color-relief layer, may not render properly. Max possible colors: ${e}, provided: ${t.elevationStops.length}`), r;
|
|
10605
10605
|
}
|
|
10606
10606
|
_colorRampChanged() {
|
|
10607
10607
|
return this.colorRampExpression != this._transitionablePaint._values["color-relief-color"].value.expression;
|
|
@@ -11248,17 +11248,17 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
11248
11248
|
var El = {
|
|
11249
11249
|
get paint() {
|
|
11250
11250
|
return Tl = Tl || new Xa({
|
|
11251
|
-
"fill-antialias": new Z(
|
|
11252
|
-
"fill-opacity": new Q(
|
|
11253
|
-
"fill-color": new Q(
|
|
11254
|
-
"fill-outline-color": new Q(
|
|
11255
|
-
"fill-translate": new Z(
|
|
11256
|
-
"fill-translate-anchor": new Z(
|
|
11257
|
-
"fill-pattern": new qa(
|
|
11251
|
+
"fill-antialias": new Z(F.paint_fill["fill-antialias"]),
|
|
11252
|
+
"fill-opacity": new Q(F.paint_fill["fill-opacity"]),
|
|
11253
|
+
"fill-color": new Q(F.paint_fill["fill-color"]),
|
|
11254
|
+
"fill-outline-color": new Q(F.paint_fill["fill-outline-color"]),
|
|
11255
|
+
"fill-translate": new Z(F.paint_fill["fill-translate"]),
|
|
11256
|
+
"fill-translate-anchor": new Z(F.paint_fill["fill-translate-anchor"]),
|
|
11257
|
+
"fill-pattern": new qa(F.paint_fill["fill-pattern"])
|
|
11258
11258
|
});
|
|
11259
11259
|
},
|
|
11260
11260
|
get layout() {
|
|
11261
|
-
return wl = wl || new Xa({ "fill-sort-key": new Q(
|
|
11261
|
+
return wl = wl || new Xa({ "fill-sort-key": new Q(F.layout_fill["fill-sort-key"]) });
|
|
11262
11262
|
}
|
|
11263
11263
|
};
|
|
11264
11264
|
class Dl extends $a {
|
|
@@ -11556,14 +11556,14 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
11556
11556
|
X("FillExtrusionBucket", Vl, { omit: ["layers", "features"] });
|
|
11557
11557
|
var Kl = { get paint() {
|
|
11558
11558
|
return Gl = Gl || new Xa({
|
|
11559
|
-
"fill-extrusion-opacity": new Z(
|
|
11560
|
-
"fill-extrusion-color": new Q(
|
|
11561
|
-
"fill-extrusion-translate": new Z(
|
|
11562
|
-
"fill-extrusion-translate-anchor": new Z(
|
|
11563
|
-
"fill-extrusion-pattern": new qa(
|
|
11564
|
-
"fill-extrusion-height": new Q(
|
|
11565
|
-
"fill-extrusion-base": new Q(
|
|
11566
|
-
"fill-extrusion-vertical-gradient": new Z(
|
|
11559
|
+
"fill-extrusion-opacity": new Z(F["paint_fill-extrusion"]["fill-extrusion-opacity"]),
|
|
11560
|
+
"fill-extrusion-color": new Q(F["paint_fill-extrusion"]["fill-extrusion-color"]),
|
|
11561
|
+
"fill-extrusion-translate": new Z(F["paint_fill-extrusion"]["fill-extrusion-translate"]),
|
|
11562
|
+
"fill-extrusion-translate-anchor": new Z(F["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),
|
|
11563
|
+
"fill-extrusion-pattern": new qa(F["paint_fill-extrusion"]["fill-extrusion-pattern"]),
|
|
11564
|
+
"fill-extrusion-height": new Q(F["paint_fill-extrusion"]["fill-extrusion-height"]),
|
|
11565
|
+
"fill-extrusion-base": new Q(F["paint_fill-extrusion"]["fill-extrusion-base"]),
|
|
11566
|
+
"fill-extrusion-vertical-gradient": new Z(F["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])
|
|
11567
11567
|
});
|
|
11568
11568
|
} };
|
|
11569
11569
|
class ql extends $a {
|
|
@@ -12811,26 +12811,26 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
12811
12811
|
var ld = {
|
|
12812
12812
|
get paint() {
|
|
12813
12813
|
return cd = cd || new Xa({
|
|
12814
|
-
"line-opacity": new Q(
|
|
12815
|
-
"line-color": new Q(
|
|
12816
|
-
"line-translate": new Z(
|
|
12817
|
-
"line-translate-anchor": new Z(
|
|
12818
|
-
"line-width": new Q(
|
|
12819
|
-
"line-gap-width": new Q(
|
|
12820
|
-
"line-offset": new Q(
|
|
12821
|
-
"line-blur": new Q(
|
|
12822
|
-
"line-dasharray": new qa(
|
|
12823
|
-
"line-pattern": new qa(
|
|
12824
|
-
"line-gradient": new Ya(
|
|
12814
|
+
"line-opacity": new Q(F.paint_line["line-opacity"]),
|
|
12815
|
+
"line-color": new Q(F.paint_line["line-color"]),
|
|
12816
|
+
"line-translate": new Z(F.paint_line["line-translate"]),
|
|
12817
|
+
"line-translate-anchor": new Z(F.paint_line["line-translate-anchor"]),
|
|
12818
|
+
"line-width": new Q(F.paint_line["line-width"]),
|
|
12819
|
+
"line-gap-width": new Q(F.paint_line["line-gap-width"]),
|
|
12820
|
+
"line-offset": new Q(F.paint_line["line-offset"]),
|
|
12821
|
+
"line-blur": new Q(F.paint_line["line-blur"]),
|
|
12822
|
+
"line-dasharray": new qa(F.paint_line["line-dasharray"]),
|
|
12823
|
+
"line-pattern": new qa(F.paint_line["line-pattern"]),
|
|
12824
|
+
"line-gradient": new Ya(F.paint_line["line-gradient"])
|
|
12825
12825
|
});
|
|
12826
12826
|
},
|
|
12827
12827
|
get layout() {
|
|
12828
12828
|
return sd = sd || new Xa({
|
|
12829
|
-
"line-cap": new Q(
|
|
12830
|
-
"line-join": new Q(
|
|
12831
|
-
"line-miter-limit": new Q(
|
|
12832
|
-
"line-round-limit": new Q(
|
|
12833
|
-
"line-sort-key": new Q(
|
|
12829
|
+
"line-cap": new Q(F.layout_line["line-cap"]),
|
|
12830
|
+
"line-join": new Q(F.layout_line["line-join"]),
|
|
12831
|
+
"line-miter-limit": new Q(F.layout_line["line-miter-limit"]),
|
|
12832
|
+
"line-round-limit": new Q(F.layout_line["line-round-limit"]),
|
|
12833
|
+
"line-sort-key": new Q(F.layout_line["line-sort-key"])
|
|
12834
12834
|
});
|
|
12835
12835
|
}
|
|
12836
12836
|
};
|
|
@@ -12844,7 +12844,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
12844
12844
|
}), super.possiblyEvaluate(e, t);
|
|
12845
12845
|
}
|
|
12846
12846
|
evaluate(e, t, n, r) {
|
|
12847
|
-
return t =
|
|
12847
|
+
return t = ie({}, t, { zoom: Math.floor(t.zoom) }), super.evaluate(e, t, n, r);
|
|
12848
12848
|
}
|
|
12849
12849
|
}
|
|
12850
12850
|
let dd;
|
|
@@ -13450,13 +13450,13 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
13450
13450
|
}
|
|
13451
13451
|
addImageSection(e) {
|
|
13452
13452
|
let t = e.image ? e.image.name : "";
|
|
13453
|
-
if (t.length === 0) return void
|
|
13453
|
+
if (t.length === 0) return void ue("Can't add FormattedSection with an empty image.");
|
|
13454
13454
|
let n = this.getNextImageSectionCharCode();
|
|
13455
13455
|
n ? (this.text += String.fromCharCode(n), this.sections.push({
|
|
13456
13456
|
scale: 1,
|
|
13457
13457
|
verticalAlign: e.verticalAlign || "bottom",
|
|
13458
13458
|
imageName: t
|
|
13459
|
-
}), this.sectionIndex.push(this.sections.length - 1)) :
|
|
13459
|
+
}), this.sectionIndex.push(this.sections.length - 1)) : ue("Reached maximum number of images 6401");
|
|
13460
13460
|
}
|
|
13461
13461
|
getNextImageSectionCharCode() {
|
|
13462
13462
|
return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
|
|
@@ -14575,72 +14575,72 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
14575
14575
|
var Cf = {
|
|
14576
14576
|
get paint() {
|
|
14577
14577
|
return Sf = Sf || new Xa({
|
|
14578
|
-
"icon-opacity": new Q(
|
|
14579
|
-
"icon-color": new Q(
|
|
14580
|
-
"icon-halo-color": new Q(
|
|
14581
|
-
"icon-halo-width": new Q(
|
|
14582
|
-
"icon-halo-blur": new Q(
|
|
14583
|
-
"icon-translate": new Z(
|
|
14584
|
-
"icon-translate-anchor": new Z(
|
|
14585
|
-
"text-opacity": new Q(
|
|
14586
|
-
"text-color": new Q(
|
|
14578
|
+
"icon-opacity": new Q(F.paint_symbol["icon-opacity"]),
|
|
14579
|
+
"icon-color": new Q(F.paint_symbol["icon-color"]),
|
|
14580
|
+
"icon-halo-color": new Q(F.paint_symbol["icon-halo-color"]),
|
|
14581
|
+
"icon-halo-width": new Q(F.paint_symbol["icon-halo-width"]),
|
|
14582
|
+
"icon-halo-blur": new Q(F.paint_symbol["icon-halo-blur"]),
|
|
14583
|
+
"icon-translate": new Z(F.paint_symbol["icon-translate"]),
|
|
14584
|
+
"icon-translate-anchor": new Z(F.paint_symbol["icon-translate-anchor"]),
|
|
14585
|
+
"text-opacity": new Q(F.paint_symbol["text-opacity"]),
|
|
14586
|
+
"text-color": new Q(F.paint_symbol["text-color"], {
|
|
14587
14587
|
runtimeType: Qe,
|
|
14588
14588
|
getOverride: (e) => e.textColor,
|
|
14589
14589
|
hasOverride: (e) => !!e.textColor
|
|
14590
14590
|
}),
|
|
14591
|
-
"text-halo-color": new Q(
|
|
14592
|
-
"text-halo-width": new Q(
|
|
14593
|
-
"text-halo-blur": new Q(
|
|
14594
|
-
"text-translate": new Z(
|
|
14595
|
-
"text-translate-anchor": new Z(
|
|
14591
|
+
"text-halo-color": new Q(F.paint_symbol["text-halo-color"]),
|
|
14592
|
+
"text-halo-width": new Q(F.paint_symbol["text-halo-width"]),
|
|
14593
|
+
"text-halo-blur": new Q(F.paint_symbol["text-halo-blur"]),
|
|
14594
|
+
"text-translate": new Z(F.paint_symbol["text-translate"]),
|
|
14595
|
+
"text-translate-anchor": new Z(F.paint_symbol["text-translate-anchor"])
|
|
14596
14596
|
});
|
|
14597
14597
|
},
|
|
14598
14598
|
get layout() {
|
|
14599
14599
|
return xf = xf || new Xa({
|
|
14600
|
-
"symbol-placement": new Z(
|
|
14601
|
-
"symbol-spacing": new Z(
|
|
14602
|
-
"symbol-avoid-edges": new Z(
|
|
14603
|
-
"symbol-sort-key": new Q(
|
|
14604
|
-
"symbol-z-order": new Z(
|
|
14605
|
-
"icon-allow-overlap": new Z(
|
|
14606
|
-
"icon-overlap": new Z(
|
|
14607
|
-
"icon-ignore-placement": new Z(
|
|
14608
|
-
"icon-optional": new Z(
|
|
14609
|
-
"icon-rotation-alignment": new Z(
|
|
14610
|
-
"icon-size": new Q(
|
|
14611
|
-
"icon-text-fit": new Z(
|
|
14612
|
-
"icon-text-fit-padding": new Z(
|
|
14613
|
-
"icon-image": new Q(
|
|
14614
|
-
"icon-rotate": new Q(
|
|
14615
|
-
"icon-padding": new Q(
|
|
14616
|
-
"icon-keep-upright": new Z(
|
|
14617
|
-
"icon-offset": new Q(
|
|
14618
|
-
"icon-anchor": new Q(
|
|
14619
|
-
"icon-pitch-alignment": new Z(
|
|
14620
|
-
"text-pitch-alignment": new Z(
|
|
14621
|
-
"text-rotation-alignment": new Z(
|
|
14622
|
-
"text-field": new Q(
|
|
14623
|
-
"text-font": new Q(
|
|
14624
|
-
"text-size": new Q(
|
|
14625
|
-
"text-max-width": new Q(
|
|
14626
|
-
"text-line-height": new Z(
|
|
14627
|
-
"text-letter-spacing": new Q(
|
|
14628
|
-
"text-justify": new Q(
|
|
14629
|
-
"text-radial-offset": new Q(
|
|
14630
|
-
"text-variable-anchor": new Z(
|
|
14631
|
-
"text-variable-anchor-offset": new Q(
|
|
14632
|
-
"text-anchor": new Q(
|
|
14633
|
-
"text-max-angle": new Z(
|
|
14634
|
-
"text-writing-mode": new Z(
|
|
14635
|
-
"text-rotate": new Q(
|
|
14636
|
-
"text-padding": new Z(
|
|
14637
|
-
"text-keep-upright": new Z(
|
|
14638
|
-
"text-transform": new Q(
|
|
14639
|
-
"text-offset": new Q(
|
|
14640
|
-
"text-allow-overlap": new Z(
|
|
14641
|
-
"text-overlap": new Z(
|
|
14642
|
-
"text-ignore-placement": new Z(
|
|
14643
|
-
"text-optional": new Z(
|
|
14600
|
+
"symbol-placement": new Z(F.layout_symbol["symbol-placement"]),
|
|
14601
|
+
"symbol-spacing": new Z(F.layout_symbol["symbol-spacing"]),
|
|
14602
|
+
"symbol-avoid-edges": new Z(F.layout_symbol["symbol-avoid-edges"]),
|
|
14603
|
+
"symbol-sort-key": new Q(F.layout_symbol["symbol-sort-key"]),
|
|
14604
|
+
"symbol-z-order": new Z(F.layout_symbol["symbol-z-order"]),
|
|
14605
|
+
"icon-allow-overlap": new Z(F.layout_symbol["icon-allow-overlap"]),
|
|
14606
|
+
"icon-overlap": new Z(F.layout_symbol["icon-overlap"]),
|
|
14607
|
+
"icon-ignore-placement": new Z(F.layout_symbol["icon-ignore-placement"]),
|
|
14608
|
+
"icon-optional": new Z(F.layout_symbol["icon-optional"]),
|
|
14609
|
+
"icon-rotation-alignment": new Z(F.layout_symbol["icon-rotation-alignment"]),
|
|
14610
|
+
"icon-size": new Q(F.layout_symbol["icon-size"]),
|
|
14611
|
+
"icon-text-fit": new Z(F.layout_symbol["icon-text-fit"]),
|
|
14612
|
+
"icon-text-fit-padding": new Z(F.layout_symbol["icon-text-fit-padding"]),
|
|
14613
|
+
"icon-image": new Q(F.layout_symbol["icon-image"]),
|
|
14614
|
+
"icon-rotate": new Q(F.layout_symbol["icon-rotate"]),
|
|
14615
|
+
"icon-padding": new Q(F.layout_symbol["icon-padding"]),
|
|
14616
|
+
"icon-keep-upright": new Z(F.layout_symbol["icon-keep-upright"]),
|
|
14617
|
+
"icon-offset": new Q(F.layout_symbol["icon-offset"]),
|
|
14618
|
+
"icon-anchor": new Q(F.layout_symbol["icon-anchor"]),
|
|
14619
|
+
"icon-pitch-alignment": new Z(F.layout_symbol["icon-pitch-alignment"]),
|
|
14620
|
+
"text-pitch-alignment": new Z(F.layout_symbol["text-pitch-alignment"]),
|
|
14621
|
+
"text-rotation-alignment": new Z(F.layout_symbol["text-rotation-alignment"]),
|
|
14622
|
+
"text-field": new Q(F.layout_symbol["text-field"]),
|
|
14623
|
+
"text-font": new Q(F.layout_symbol["text-font"]),
|
|
14624
|
+
"text-size": new Q(F.layout_symbol["text-size"]),
|
|
14625
|
+
"text-max-width": new Q(F.layout_symbol["text-max-width"]),
|
|
14626
|
+
"text-line-height": new Z(F.layout_symbol["text-line-height"]),
|
|
14627
|
+
"text-letter-spacing": new Q(F.layout_symbol["text-letter-spacing"]),
|
|
14628
|
+
"text-justify": new Q(F.layout_symbol["text-justify"]),
|
|
14629
|
+
"text-radial-offset": new Q(F.layout_symbol["text-radial-offset"]),
|
|
14630
|
+
"text-variable-anchor": new Z(F.layout_symbol["text-variable-anchor"]),
|
|
14631
|
+
"text-variable-anchor-offset": new Q(F.layout_symbol["text-variable-anchor-offset"]),
|
|
14632
|
+
"text-anchor": new Q(F.layout_symbol["text-anchor"]),
|
|
14633
|
+
"text-max-angle": new Z(F.layout_symbol["text-max-angle"]),
|
|
14634
|
+
"text-writing-mode": new Z(F.layout_symbol["text-writing-mode"]),
|
|
14635
|
+
"text-rotate": new Q(F.layout_symbol["text-rotate"]),
|
|
14636
|
+
"text-padding": new Z(F.layout_symbol["text-padding"]),
|
|
14637
|
+
"text-keep-upright": new Z(F.layout_symbol["text-keep-upright"]),
|
|
14638
|
+
"text-transform": new Q(F.layout_symbol["text-transform"]),
|
|
14639
|
+
"text-offset": new Q(F.layout_symbol["text-offset"]),
|
|
14640
|
+
"text-allow-overlap": new Z(F.layout_symbol["text-allow-overlap"]),
|
|
14641
|
+
"text-overlap": new Z(F.layout_symbol["text-overlap"]),
|
|
14642
|
+
"text-ignore-placement": new Z(F.layout_symbol["text-ignore-placement"]),
|
|
14643
|
+
"text-optional": new Z(F.layout_symbol["text-optional"])
|
|
14644
14644
|
});
|
|
14645
14645
|
}
|
|
14646
14646
|
};
|
|
@@ -14725,9 +14725,9 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
14725
14725
|
let Ef;
|
|
14726
14726
|
var Df = { get paint() {
|
|
14727
14727
|
return Ef = Ef || new Xa({
|
|
14728
|
-
"background-color": new Z(
|
|
14729
|
-
"background-pattern": new Ja(
|
|
14730
|
-
"background-opacity": new Z(
|
|
14728
|
+
"background-color": new Z(F.paint_background["background-color"]),
|
|
14729
|
+
"background-pattern": new Ja(F.paint_background["background-pattern"]),
|
|
14730
|
+
"background-opacity": new Z(F.paint_background["background-opacity"])
|
|
14731
14731
|
});
|
|
14732
14732
|
} };
|
|
14733
14733
|
class Of extends $a {
|
|
@@ -14779,7 +14779,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
14779
14779
|
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");
|
|
14780
14780
|
}
|
|
14781
14781
|
wrap() {
|
|
14782
|
-
return new Nf(
|
|
14782
|
+
return new Nf(re(this.lng, -180, 180), this.lat);
|
|
14783
14783
|
}
|
|
14784
14784
|
toArray() {
|
|
14785
14785
|
return [this.lng, this.lat];
|
|
@@ -17214,7 +17214,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17214
17214
|
if (!n) continue;
|
|
17215
17215
|
let i = {};
|
|
17216
17216
|
m && l && (i = l.getState(n.sourceLayer || Um, m));
|
|
17217
|
-
let d =
|
|
17217
|
+
let d = ie({}, c[t]);
|
|
17218
17218
|
d.paint = Qm(d.paint, n.paint, p, i, o), d.layout = Qm(d.layout, n.layout, p, i, o);
|
|
17219
17219
|
let f = !u || u(p, n, i);
|
|
17220
17220
|
if (!f) continue;
|
|
@@ -17246,7 +17246,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17246
17246
|
}
|
|
17247
17247
|
}
|
|
17248
17248
|
function Qm(e, t, n, r, i) {
|
|
17249
|
-
return
|
|
17249
|
+
return oe(e, ((e, a) => {
|
|
17250
17250
|
let o = t instanceof Ka ? t.get(a) : null;
|
|
17251
17251
|
return o != null && o.evaluate ? o.evaluate(n, r, i) : o;
|
|
17252
17252
|
}));
|
|
@@ -17388,33 +17388,33 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17388
17388
|
(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;
|
|
17389
17389
|
}
|
|
17390
17390
|
let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
|
|
17391
|
-
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),
|
|
17392
|
-
if (
|
|
17393
|
-
let e = Math.sin(
|
|
17391
|
+
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), ee = new n(p, _), te = new n(l, _), N = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
|
|
17392
|
+
if (re) {
|
|
17393
|
+
let e = Math.sin(re), t = Math.cos(re), n = [
|
|
17394
17394
|
t,
|
|
17395
17395
|
-e,
|
|
17396
17396
|
e,
|
|
17397
17397
|
t
|
|
17398
17398
|
];
|
|
17399
|
-
j._matMult(n), M._matMult(n),
|
|
17399
|
+
j._matMult(n), M._matMult(n), te._matMult(n), ee._matMult(n);
|
|
17400
17400
|
}
|
|
17401
|
-
let
|
|
17401
|
+
let ie = e.stretch + e.fixed, ae = i.stretch + i.fixed;
|
|
17402
17402
|
return {
|
|
17403
17403
|
tl: j,
|
|
17404
17404
|
tr: M,
|
|
17405
|
-
bl:
|
|
17406
|
-
br:
|
|
17405
|
+
bl: te,
|
|
17406
|
+
br: ee,
|
|
17407
17407
|
tex: {
|
|
17408
|
-
x: o.paddedRect.x + 1 +
|
|
17409
|
-
y: o.paddedRect.y + 1 +
|
|
17410
|
-
w: a.stretch + a.fixed -
|
|
17411
|
-
h: c.stretch + c.fixed -
|
|
17408
|
+
x: o.paddedRect.x + 1 + ie,
|
|
17409
|
+
y: o.paddedRect.y + 1 + ae,
|
|
17410
|
+
w: a.stretch + a.fixed - ie,
|
|
17411
|
+
h: c.stretch + c.fixed - ae
|
|
17412
17412
|
},
|
|
17413
17413
|
writingMode: void 0,
|
|
17414
17414
|
glyphOffset: [0, 0],
|
|
17415
17415
|
sectionIndex: 0,
|
|
17416
|
-
pixelOffsetTL:
|
|
17417
|
-
pixelOffsetBR:
|
|
17416
|
+
pixelOffsetTL: N,
|
|
17417
|
+
pixelOffsetBR: ne,
|
|
17418
17418
|
minFontScaleX: C / s / O,
|
|
17419
17419
|
minFontScaleY: T / s / k,
|
|
17420
17420
|
isSDF: r
|
|
@@ -17673,9 +17673,9 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17673
17673
|
];
|
|
17674
17674
|
}(m, n, d, t.tilePixelRatio), w = m.get("text-max-angle") / 180 * Math.PI, T = m.get("text-rotation-alignment") !== "viewport" && m.get("symbol-placement") !== "point", E = m.get("icon-rotation-alignment") === "map" && m.get("symbol-placement") !== "point", D = m.get("symbol-placement"), k = x / 2, A = m.get("icon-text-fit"), j;
|
|
17675
17675
|
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, _)));
|
|
17676
|
-
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1,
|
|
17676
|
+
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, ee = (c, f) => {
|
|
17677
17677
|
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) {
|
|
17678
|
-
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0,
|
|
17678
|
+
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, ee = 0, te = 0, N = -1, ne = -1, re = {}, ie = _s("");
|
|
17679
17679
|
if (t.allowVerticalPlacement && i.vertical) {
|
|
17680
17680
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
|
|
17681
17681
|
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));
|
|
@@ -17684,33 +17684,33 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17684
17684
|
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;
|
|
17685
17685
|
O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
|
|
17686
17686
|
let m = t.iconSizeData, h = null;
|
|
17687
|
-
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df &&
|
|
17687
|
+
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${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) && ue(`${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), N = 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), ne = t.icon.placedSymbolArray.length - 1);
|
|
17688
17688
|
}
|
|
17689
|
-
let
|
|
17690
|
-
for (let r of
|
|
17689
|
+
let ae = Object.keys(i.horizontal);
|
|
17690
|
+
for (let r of ae) {
|
|
17691
17691
|
let a = i.horizontal[r];
|
|
17692
17692
|
if (!D) {
|
|
17693
|
-
|
|
17693
|
+
ie = _s(a.text);
|
|
17694
17694
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w);
|
|
17695
17695
|
D = new yh(l, n, u, d, f, a, p, m, h, e);
|
|
17696
17696
|
}
|
|
17697
17697
|
let s = a.positionedLines.length === 1;
|
|
17698
|
-
if (
|
|
17699
|
-
}
|
|
17700
|
-
i.vertical && (
|
|
17701
|
-
let
|
|
17702
|
-
|
|
17703
|
-
let
|
|
17704
|
-
|
|
17705
|
-
let
|
|
17698
|
+
if (ee += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, N, S, w), s) break;
|
|
17699
|
+
}
|
|
17700
|
+
i.vertical && (te += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
|
|
17701
|
+
let oe = D ? D.boxStartIndex : t.collisionBoxArray.length, se = D ? D.boxEndIndex : t.collisionBoxArray.length, ce = k ? k.boxStartIndex : t.collisionBoxArray.length, le = k ? k.boxEndIndex : t.collisionBoxArray.length, P = 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, he = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
|
|
17702
|
+
me = he(D, me), me = he(k, me), me = he(O, me), me = he(A, me);
|
|
17703
|
+
let ge = +(me > -1);
|
|
17704
|
+
ge && (me *= T / xd), t.glyphOffsetArray.length >= bf.MAX_GLYPHS && ue("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);
|
|
17705
|
+
let _e = Dh(c, x, w), [ve, ye] = function(t, n) {
|
|
17706
17706
|
let r = t.length, i = n == null ? void 0 : n.values;
|
|
17707
17707
|
if ((i == null ? void 0 : i.length) > 0) for (let n = 0; n < i.length; n += 2) {
|
|
17708
17708
|
let r = i[n + 1];
|
|
17709
17709
|
t.emplaceBack(e.aM[i[n]], r[0], r[1]);
|
|
17710
17710
|
}
|
|
17711
17711
|
return [r, t.length];
|
|
17712
|
-
}(t.textAnchorOffsets,
|
|
17713
|
-
t.symbolInstances.emplaceBack(n.x, n.y,
|
|
17712
|
+
}(t.textAnchorOffsets, _e);
|
|
17713
|
+
t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1, N, ne, ie, oe, se, ce, le, P, de, fe, pe, u, ee, te, j, M, ge, 0, p, me, ve, ye);
|
|
17714
17714
|
}(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
|
|
17715
17715
|
S,
|
|
17716
17716
|
S,
|
|
@@ -17720,22 +17720,22 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17720
17720
|
};
|
|
17721
17721
|
if (D === "line") for (let e of eh(n.geometry, 0, 0, O, O)) {
|
|
17722
17722
|
let n = yl(e, M), a = fh(n, x, w, r.vertical || g, i, 24, y, t.overscaling, O);
|
|
17723
|
-
for (let e of a) g && Mh(t, g.text, k, e) ||
|
|
17723
|
+
for (let e of a) g && Mh(t, g.text, k, e) || ee(n, e);
|
|
17724
17724
|
}
|
|
17725
17725
|
else if (D === "line-center") {
|
|
17726
17726
|
for (let e of n.geometry) if (e.length > 1) {
|
|
17727
17727
|
let t = yl(e, M), n = dh(t, w, r.vertical || g, i, 24, y);
|
|
17728
|
-
n &&
|
|
17728
|
+
n && ee(t, n);
|
|
17729
17729
|
}
|
|
17730
17730
|
} else if (n.type === "Polygon") for (let e of or(n.geometry, 0)) {
|
|
17731
17731
|
let t = xh(e, 16);
|
|
17732
|
-
|
|
17732
|
+
ee(yl(e[0], M, !0), new oh(t.x, t.y, 0));
|
|
17733
17733
|
}
|
|
17734
17734
|
else if (n.type === "LineString") for (let e of n.geometry) {
|
|
17735
17735
|
let t = yl(e, M);
|
|
17736
|
-
|
|
17736
|
+
ee(t, new oh(t[0].x, t[0].y, 0));
|
|
17737
17737
|
}
|
|
17738
|
-
else if (n.type === "Point") for (let e of n.geometry) for (let t of e)
|
|
17738
|
+
else if (n.type === "Point") for (let e of n.geometry) for (let t of e) ee([t], new oh(t.x, t.y, 0));
|
|
17739
17739
|
}
|
|
17740
17740
|
function Ah(e, t, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
17741
17741
|
let g = function(e, t, r, i, a, o, s, c) {
|
|
@@ -17782,7 +17782,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17782
17782
|
}
|
|
17783
17783
|
return u;
|
|
17784
17784
|
}(0, r, c, a, o, s, i, e.allowVerticalPlacement), _ = e.textSizeData, v = null;
|
|
17785
|
-
_.kind === "source" ? (v = [128 * a.layout.get("text-size").evaluate(s, {})], v[0] > df &&
|
|
17785
|
+
_.kind === "source" ? (v = [128 * a.layout.get("text-size").evaluate(s, {})], v[0] > df && ue(`${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) && ue(`${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);
|
|
17786
17786
|
for (let t of d) f[t] = e.text.placedSymbolArray.length - 1;
|
|
17787
17787
|
return 4 * g.length;
|
|
17788
17788
|
}
|
|
@@ -17798,21 +17798,21 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17798
17798
|
} else i[t] = [];
|
|
17799
17799
|
return i[t].push(r), !1;
|
|
17800
17800
|
}
|
|
17801
|
-
e.$ =
|
|
17801
|
+
e.$ = Te, e.A = f, e.B = Ra, e.C = pa, e.D = Z, e.E = Re, e.F = ca, e.G = function([e, t, n]) {
|
|
17802
17802
|
return t += 90, t *= Math.PI / 180, n *= Math.PI / 180, {
|
|
17803
17803
|
x: e * Math.cos(t) * Math.sin(n),
|
|
17804
17804
|
y: e * Math.sin(t) * Math.sin(n),
|
|
17805
17805
|
z: e * Math.cos(n)
|
|
17806
17806
|
};
|
|
17807
17807
|
}, e.H = xn, e.I = Xd, e.J = Ia, e.K = ua, e.L = function(e) {
|
|
17808
|
-
if (
|
|
17808
|
+
if (fe == null) {
|
|
17809
17809
|
let t = e.navigator ? e.navigator.userAgent : null;
|
|
17810
|
-
|
|
17810
|
+
fe = !!e.safari || !(!t || !(/\b(iPad|iPhone|iPod)\b/.test(t) || t.match("Safari") && !t.match("Chrome")));
|
|
17811
17811
|
}
|
|
17812
|
-
return
|
|
17813
|
-
}, e.M =
|
|
17812
|
+
return fe;
|
|
17813
|
+
}, e.M = ke, e.N = class {
|
|
17814
17814
|
constructor(e, t) {
|
|
17815
|
-
this.target = e, this.mapId = t, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Af((() => this.process())), this.subscription =
|
|
17815
|
+
this.target = e, this.mapId = t, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Af((() => this.process())), this.subscription = ve(this.target, "message", ((e) => this.receive(e)), !1), this.globalScope = de(self) ? e : window;
|
|
17816
17816
|
}
|
|
17817
17817
|
registerMessageHandler(e, t) {
|
|
17818
17818
|
this.messageHandlers[e] = t;
|
|
@@ -17822,7 +17822,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17822
17822
|
}
|
|
17823
17823
|
sendAsync(e, t) {
|
|
17824
17824
|
return new Promise(((n, r) => {
|
|
17825
|
-
let i = Math.round(0xde0b6b3a7640000 * Math.random()).toString(36).substring(0, 10), a = t ?
|
|
17825
|
+
let i = Math.round(0xde0b6b3a7640000 * Math.random()).toString(36).substring(0, 10), a = t ? ve(t.signal, "abort", (() => {
|
|
17826
17826
|
a == null || a.unsubscribe(), delete this.resolveRejects[i];
|
|
17827
17827
|
let t = {
|
|
17828
17828
|
id: i,
|
|
@@ -17863,7 +17863,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17863
17863
|
delete this.abortControllers[n], e && e.abort();
|
|
17864
17864
|
return;
|
|
17865
17865
|
}
|
|
17866
|
-
if (
|
|
17866
|
+
if (de(self) || t.mustQueue) return this.tasks[n] = t, this.taskQueue.push(n), void this.invoker.trigger();
|
|
17867
17867
|
this.processTask(n, t);
|
|
17868
17868
|
}
|
|
17869
17869
|
}
|
|
@@ -17923,10 +17923,10 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17923
17923
|
let n = {};
|
|
17924
17924
|
for (let r of t) r in e && (n[r] = e[r]);
|
|
17925
17925
|
return n;
|
|
17926
|
-
}, e.W = Nf, e.X =
|
|
17926
|
+
}, e.W = Nf, e.X = re, e.Y = Lf, e.Z = If, e._ = t, e.a = we, e.a$ = function(e) {
|
|
17927
17927
|
var t = new f(3);
|
|
17928
17928
|
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t;
|
|
17929
|
-
}, e.a0 = l, e.a1 = u, e.a2 =
|
|
17929
|
+
}, e.a0 = l, e.a1 = u, e.a2 = he, 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) {
|
|
17930
17930
|
var t = e[0], n = e[1];
|
|
17931
17931
|
return Math.sqrt(t * t + n * n);
|
|
17932
17932
|
}, e.aB = function(e) {
|
|
@@ -17955,7 +17955,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17955
17955
|
n = [n[0] * t - n[1] * e, n[0] * e + n[1] * t];
|
|
17956
17956
|
}
|
|
17957
17957
|
return [i ? n[0] : k(t, n[0], e.zoom), i ? n[1] : k(t, n[1], e.zoom)];
|
|
17958
|
-
}, 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 =
|
|
17958
|
+
}, 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 = be, e.aY = Vf, e.aZ = y, e.a_ = v, e.aa = Wf, e.ab = (e) => {
|
|
17959
17959
|
let t = window.document.createElement("video");
|
|
17960
17960
|
return t.muted = !0, new Promise(((n) => {
|
|
17961
17961
|
t.onloadstart = () => {
|
|
@@ -17963,11 +17963,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17963
17963
|
};
|
|
17964
17964
|
for (let n of e) {
|
|
17965
17965
|
let e = window.document.createElement("source");
|
|
17966
|
-
|
|
17966
|
+
Ne(n) || (t.crossOrigin = "Anonymous"), e.src = n, t.appendChild(e);
|
|
17967
17967
|
}
|
|
17968
17968
|
}));
|
|
17969
17969
|
}, e.ac = R, e.ad = function() {
|
|
17970
|
-
return
|
|
17970
|
+
return ae++;
|
|
17971
17971
|
}, e.ae = Po, e.af = bf, e.ag = Um, e.ah = _i, e.ai = Hs, e.aj = Xf, e.ak = function(e) {
|
|
17972
17972
|
let t = {};
|
|
17973
17973
|
if (e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((e, n, r, i) => {
|
|
@@ -17978,7 +17978,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
17978
17978
|
isNaN(e) ? delete t["max-age"] : t["max-age"] = e;
|
|
17979
17979
|
}
|
|
17980
17980
|
return t;
|
|
17981
|
-
}, e.al =
|
|
17981
|
+
}, e.al = ne, e.am = 85.051129, e.an = ye, e.ao = function(e) {
|
|
17982
17982
|
return 2 ** e;
|
|
17983
17983
|
}, e.ap = m, e.aq = Rf, e.ar = function(e) {
|
|
17984
17984
|
return Math.log(e) / Math.LN2;
|
|
@@ -18063,7 +18063,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18063
18063
|
let n = 0, r = 0;
|
|
18064
18064
|
if (e.kind === "constant") r = e.layoutSize;
|
|
18065
18065
|
else if (e.kind !== "source") {
|
|
18066
|
-
let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ?
|
|
18066
|
+
let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ? ne(yn.interpolationFactor(i, t, a, o), 0, 1) : 0;
|
|
18067
18067
|
e.kind === "camera" ? r = xn.number(e.minSize, e.maxSize, s) : n = s;
|
|
18068
18068
|
}
|
|
18069
18069
|
return {
|
|
@@ -18072,7 +18072,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18072
18072
|
};
|
|
18073
18073
|
}, e.ay = function(e, { uSize: t, uSizeT: n }, { lowerSize: r, upperSize: i }) {
|
|
18074
18074
|
return e.kind === "source" ? r / 128 : e.kind === "composite" ? xn.number(r / 128, i / 128, n) : t;
|
|
18075
|
-
}, e.az = E, e.b =
|
|
18075
|
+
}, e.az = E, e.b = pe, e.b$ = Ts, e.b0 = function(e, t, n) {
|
|
18076
18076
|
return e[0] = t[0] - n[0], e[1] = t[1] - n[1], e[2] = t[2] - n[2], e;
|
|
18077
18077
|
}, e.b1 = function(e, t) {
|
|
18078
18078
|
var n = t[0], r = t[1], i = t[2], a = n * n + r * r + i * i;
|
|
@@ -18159,16 +18159,16 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18159
18159
|
let n = j(e, 2 * Math.PI), r = j(t, 2 * Math.PI);
|
|
18160
18160
|
return Math.min(Math.abs(n - r), Math.abs(n - r + 2 * Math.PI), Math.abs(n - r - 2 * Math.PI));
|
|
18161
18161
|
}, e.bN = function() {
|
|
18162
|
-
let e = {}, t =
|
|
18163
|
-
for (let n in
|
|
18164
|
-
let r =
|
|
18162
|
+
let e = {}, t = F.$version;
|
|
18163
|
+
for (let n in F.$root) {
|
|
18164
|
+
let r = F.$root[n];
|
|
18165
18165
|
if (r.required) {
|
|
18166
18166
|
let i = null;
|
|
18167
18167
|
i = n === "version" ? t : r.type === "array" ? [] : {}, i != null && (e[n] = i);
|
|
18168
18168
|
}
|
|
18169
18169
|
}
|
|
18170
18170
|
return e;
|
|
18171
|
-
}, e.bO =
|
|
18171
|
+
}, e.bO = je, e.bP = xa, e.bQ = function e(t, n) {
|
|
18172
18172
|
if (Array.isArray(t)) {
|
|
18173
18173
|
if (!Array.isArray(n) || t.length !== n.length) return !1;
|
|
18174
18174
|
for (let r = 0; r < t.length; r++) if (!e(t[r], n[r])) return !1;
|
|
@@ -18180,11 +18180,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18180
18180
|
return !0;
|
|
18181
18181
|
}
|
|
18182
18182
|
return t === n;
|
|
18183
|
-
}, e.bR =
|
|
18183
|
+
}, e.bR = Ee, e.bS = function(e) {
|
|
18184
18184
|
e = e.slice();
|
|
18185
18185
|
let t = Object.create(null);
|
|
18186
18186
|
for (let n = 0; n < e.length; n++) t[e[n].id] = e[n];
|
|
18187
|
-
for (let n = 0; n < e.length; n++) "ref" in e[n] && (e[n] =
|
|
18187
|
+
for (let n = 0; n < e.length; n++) "ref" in e[n] && (e[n] = Be(e[n], t[e[n].ref]));
|
|
18188
18188
|
return e;
|
|
18189
18189
|
}, e.bT = function(e, t) {
|
|
18190
18190
|
if (e.type === "custom") return new kf(e, t);
|
|
@@ -18200,57 +18200,57 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18200
18200
|
case "raster": return new no(e, t);
|
|
18201
18201
|
case "symbol": return new Tf(e, t);
|
|
18202
18202
|
}
|
|
18203
|
-
}, e.bU = (e) => e.type === "raster", e.bV =
|
|
18203
|
+
}, e.bU = (e) => e.type === "raster", e.bV = ce, e.bW = function(e, t) {
|
|
18204
18204
|
if (!e) return [{
|
|
18205
18205
|
command: "setStyle",
|
|
18206
18206
|
args: [t]
|
|
18207
18207
|
}];
|
|
18208
18208
|
let n = [];
|
|
18209
18209
|
try {
|
|
18210
|
-
if (!
|
|
18210
|
+
if (!I(e.version, t.version)) return [{
|
|
18211
18211
|
command: "setStyle",
|
|
18212
18212
|
args: [t]
|
|
18213
18213
|
}];
|
|
18214
|
-
|
|
18214
|
+
I(e.center, t.center) || n.push({
|
|
18215
18215
|
command: "setCenter",
|
|
18216
18216
|
args: [t.center]
|
|
18217
|
-
}),
|
|
18217
|
+
}), I(e.state, t.state) || n.push({
|
|
18218
18218
|
command: "setGlobalState",
|
|
18219
18219
|
args: [t.state]
|
|
18220
|
-
}),
|
|
18220
|
+
}), I(e.centerAltitude, t.centerAltitude) || n.push({
|
|
18221
18221
|
command: "setCenterAltitude",
|
|
18222
18222
|
args: [t.centerAltitude]
|
|
18223
|
-
}),
|
|
18223
|
+
}), I(e.zoom, t.zoom) || n.push({
|
|
18224
18224
|
command: "setZoom",
|
|
18225
18225
|
args: [t.zoom]
|
|
18226
|
-
}),
|
|
18226
|
+
}), I(e.bearing, t.bearing) || n.push({
|
|
18227
18227
|
command: "setBearing",
|
|
18228
18228
|
args: [t.bearing]
|
|
18229
|
-
}),
|
|
18229
|
+
}), I(e.pitch, t.pitch) || n.push({
|
|
18230
18230
|
command: "setPitch",
|
|
18231
18231
|
args: [t.pitch]
|
|
18232
|
-
}),
|
|
18232
|
+
}), I(e.roll, t.roll) || n.push({
|
|
18233
18233
|
command: "setRoll",
|
|
18234
18234
|
args: [t.roll]
|
|
18235
|
-
}),
|
|
18235
|
+
}), I(e.sprite, t.sprite) || n.push({
|
|
18236
18236
|
command: "setSprite",
|
|
18237
18237
|
args: [t.sprite]
|
|
18238
|
-
}),
|
|
18238
|
+
}), I(e.glyphs, t.glyphs) || n.push({
|
|
18239
18239
|
command: "setGlyphs",
|
|
18240
18240
|
args: [t.glyphs]
|
|
18241
|
-
}),
|
|
18241
|
+
}), I(e.transition, t.transition) || n.push({
|
|
18242
18242
|
command: "setTransition",
|
|
18243
18243
|
args: [t.transition]
|
|
18244
|
-
}),
|
|
18244
|
+
}), I(e.light, t.light) || n.push({
|
|
18245
18245
|
command: "setLight",
|
|
18246
18246
|
args: [t.light]
|
|
18247
|
-
}),
|
|
18247
|
+
}), I(e.terrain, t.terrain) || n.push({
|
|
18248
18248
|
command: "setTerrain",
|
|
18249
18249
|
args: [t.terrain]
|
|
18250
|
-
}),
|
|
18250
|
+
}), I(e.sky, t.sky) || n.push({
|
|
18251
18251
|
command: "setSky",
|
|
18252
18252
|
args: [t.sky]
|
|
18253
|
-
}),
|
|
18253
|
+
}), I(e.projection, t.projection) || n.push({
|
|
18254
18254
|
command: "setProjection",
|
|
18255
18255
|
args: [t.projection]
|
|
18256
18256
|
});
|
|
@@ -18258,7 +18258,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18258
18258
|
(function(e, t, n, r) {
|
|
18259
18259
|
let i;
|
|
18260
18260
|
for (i in t = t || {}, e = e || {}) Object.prototype.hasOwnProperty.call(e, i) && (Object.prototype.hasOwnProperty.call(t, i) || Ue(i, n, r));
|
|
18261
|
-
for (i in t) Object.prototype.hasOwnProperty.call(t, i) && (Object.prototype.hasOwnProperty.call(e, i) ?
|
|
18261
|
+
for (i in t) Object.prototype.hasOwnProperty.call(t, i) && (Object.prototype.hasOwnProperty.call(e, i) ? I(e[i], t[i]) || (e[i].type === "geojson" && t[i].type === "geojson" && Ge(e, t, i) ? Ve(n, {
|
|
18262
18262
|
command: "setGeoJSONSourceData",
|
|
18263
18263
|
args: [i, t[i].data]
|
|
18264
18264
|
}) : We(i, t, n, r)) : He(i, t, n));
|
|
@@ -18283,18 +18283,18 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18283
18283
|
command: "addLayer",
|
|
18284
18284
|
args: [o[l], f]
|
|
18285
18285
|
}), s.splice(s.length - e, 0, l), c[l] = !0);
|
|
18286
|
-
for (let e = 0; e < i.length; e++) if (l = i[e], u = a[l], d = o[l], !c[l] && !
|
|
18287
|
-
for (p in Ke(u.layout, d.layout, n, l, null, "setLayoutProperty"), Ke(u.paint, d.paint, n, l, null, "setPaintProperty"),
|
|
18286
|
+
for (let e = 0; e < i.length; e++) if (l = i[e], u = a[l], d = o[l], !c[l] && !I(u, d)) if (I(u.source, d.source) && I(u["source-layer"], d["source-layer"]) && I(u.type, d.type)) {
|
|
18287
|
+
for (p in Ke(u.layout, d.layout, n, l, null, "setLayoutProperty"), Ke(u.paint, d.paint, n, l, null, "setPaintProperty"), I(u.filter, d.filter) || Ve(n, {
|
|
18288
18288
|
command: "setFilter",
|
|
18289
18289
|
args: [l, d.filter]
|
|
18290
|
-
}),
|
|
18290
|
+
}), I(u.minzoom, d.minzoom) && I(u.maxzoom, d.maxzoom) || Ve(n, {
|
|
18291
18291
|
command: "setLayerZoomRange",
|
|
18292
18292
|
args: [
|
|
18293
18293
|
l,
|
|
18294
18294
|
d.minzoom,
|
|
18295
18295
|
d.maxzoom
|
|
18296
18296
|
]
|
|
18297
|
-
}), u) Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ke(u[p], d[p], n, l, p.slice(6), "setPaintProperty") :
|
|
18297
|
+
}), u) Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ke(u[p], d[p], n, l, p.slice(6), "setPaintProperty") : I(u[p], d[p]) || Ve(n, {
|
|
18298
18298
|
command: "setLayerProperty",
|
|
18299
18299
|
args: [
|
|
18300
18300
|
l,
|
|
@@ -18302,7 +18302,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18302
18302
|
d[p]
|
|
18303
18303
|
]
|
|
18304
18304
|
}));
|
|
18305
|
-
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 ? Ke(u[p], d[p], n, l, p.slice(6), "setPaintProperty") :
|
|
18305
|
+
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 ? Ke(u[p], d[p], n, l, p.slice(6), "setPaintProperty") : I(u[p], d[p]) || Ve(n, {
|
|
18306
18306
|
command: "setLayerProperty",
|
|
18307
18307
|
args: [
|
|
18308
18308
|
l,
|
|
@@ -18328,7 +18328,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18328
18328
|
}, e.bX = function(e) {
|
|
18329
18329
|
let t = [], n = e.id;
|
|
18330
18330
|
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;
|
|
18331
|
-
}, e.bY =
|
|
18331
|
+
}, e.bY = oe, e.bZ = se, e.b_ = class extends Ss {
|
|
18332
18332
|
constructor(e, t) {
|
|
18333
18333
|
super(e, t), this.current = 0;
|
|
18334
18334
|
}
|
|
@@ -18372,21 +18372,21 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18372
18372
|
let t = /* @__PURE__ */ new Float64Array(9);
|
|
18373
18373
|
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);
|
|
18374
18374
|
(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;
|
|
18375
|
-
let b =
|
|
18376
|
-
return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -
|
|
18375
|
+
let b = be(-Math.asin(ne(t[2], -1, 1))), x, S;
|
|
18376
|
+
return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -be(Math.atan2(t[3], t[4]))) : (x = be(t[5] === 0 && t[8] === 0 ? 0 : Math.atan2(t[5], t[8])), S = be(t[1] === 0 && t[0] === 0 ? 0 : Math.atan2(t[1], t[0]))), {
|
|
18377
18377
|
roll: x,
|
|
18378
18378
|
pitch: b + 90,
|
|
18379
18379
|
bearing: S
|
|
18380
18380
|
};
|
|
18381
18381
|
}, e.bn = function(e, t) {
|
|
18382
18382
|
return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
|
|
18383
|
-
}, e.bo = W, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu =
|
|
18384
|
-
return M(r, i,
|
|
18383
|
+
}, e.bo = W, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = ee, e.bv = Jt, e.bw = function(e, t, n, r, i) {
|
|
18384
|
+
return M(r, i, ne((e - t) / (n - t), 0, 1));
|
|
18385
18385
|
}, e.bx = function(e, t, n, r) {
|
|
18386
18386
|
return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
|
|
18387
18387
|
}, e.by = j, e.bz = function() {
|
|
18388
18388
|
return /* @__PURE__ */ new Float64Array(3);
|
|
18389
|
-
}, e.c =
|
|
18389
|
+
}, e.c = De, e.c$ = si, e.c0 = class extends Ss {
|
|
18390
18390
|
constructor(e, t) {
|
|
18391
18391
|
super(e, t), this.current = Es;
|
|
18392
18392
|
}
|
|
@@ -18448,9 +18448,9 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18448
18448
|
}
|
|
18449
18449
|
}
|
|
18450
18450
|
}, e.cA = function(e, t) {
|
|
18451
|
-
return
|
|
18451
|
+
return xe[t] && "touches" in e;
|
|
18452
18452
|
}, e.cB = function(e) {
|
|
18453
|
-
return
|
|
18453
|
+
return xe[e] || Se[e];
|
|
18454
18454
|
}, e.cC = function(e, t, n) {
|
|
18455
18455
|
var r = t[0], i = t[1];
|
|
18456
18456
|
return e[0] = n[0] * r + n[4] * i + n[12], e[1] = n[1] * r + n[5] * i + n[13], e;
|
|
@@ -18459,10 +18459,10 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18459
18459
|
return !(e < 0 || e > 25 || r < 0 || r >= 1 || n < 0 || n >= 1);
|
|
18460
18460
|
}, e.cE = function(e, t) {
|
|
18461
18461
|
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;
|
|
18462
|
-
}, e.cF = class extends lo {}, e.cG =
|
|
18463
|
-
|
|
18462
|
+
}, e.cF = class extends lo {}, e.cG = Ae, e.cH = function(e, t) {
|
|
18463
|
+
De.REGISTERED_PROTOCOLS[e] = t;
|
|
18464
18464
|
}, e.cI = function(e) {
|
|
18465
|
-
delete
|
|
18465
|
+
delete De.REGISTERED_PROTOCOLS[e];
|
|
18466
18466
|
}, e.cJ = function(e, t) {
|
|
18467
18467
|
let n = {};
|
|
18468
18468
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -18525,7 +18525,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18525
18525
|
let b = !1;
|
|
18526
18526
|
if ((n = o.icon) != null && n.name) {
|
|
18527
18527
|
let e = t.imageMap[o.icon.name];
|
|
18528
|
-
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 &&
|
|
18528
|
+
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 && ue("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));
|
|
18529
18529
|
}
|
|
18530
18530
|
let x = jh(g.horizontal) || g.vertical;
|
|
18531
18531
|
(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);
|
|
@@ -18561,13 +18561,13 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18561
18561
|
}, e.cV = Ll, e.cW = Pd, e.cX = Vm, e.cY = function(e, n, r, i, a) {
|
|
18562
18562
|
return t(this, void 0, void 0, (function* () {
|
|
18563
18563
|
if (u()) try {
|
|
18564
|
-
return yield
|
|
18564
|
+
return yield he(e, n, r, i, a);
|
|
18565
18565
|
} catch {}
|
|
18566
18566
|
return function(e, t, n, r, i) {
|
|
18567
18567
|
let a = e.width, o = e.height;
|
|
18568
|
-
|
|
18569
|
-
let s =
|
|
18570
|
-
return
|
|
18568
|
+
ge && _e || (ge = new OffscreenCanvas(a, o), _e = ge.getContext("2d", { willReadFrequently: !0 })), ge.width = a, ge.height = o, _e.drawImage(e, 0, 0, a, o);
|
|
18569
|
+
let s = _e.getImageData(t, n, r, i);
|
|
18570
|
+
return _e.clearRect(0, 0, a, o), s.data;
|
|
18571
18571
|
}(e, n, r, i, a);
|
|
18572
18572
|
}));
|
|
18573
18573
|
}, e.cZ = Ic, e.c_ = class {
|
|
@@ -18585,21 +18585,21 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18585
18585
|
}, e.ch = class extends uo {}, e.ci = class extends jo {}, e.cj = function(e, t) {
|
|
18586
18586
|
return e[0] === t[0] && e[1] === t[1] && e[2] === t[2] && e[3] === t[3] && e[4] === t[4] && e[5] === t[5] && e[6] === t[6] && e[7] === t[7] && e[8] === t[8] && e[9] === t[9] && e[10] === t[10] && e[11] === t[11] && e[12] === t[12] && e[13] === t[13] && e[14] === t[14] && e[15] === t[15];
|
|
18587
18587
|
}, e.ck = function(e, t) {
|
|
18588
|
-
var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13],
|
|
18589
|
-
return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ -
|
|
18588
|
+
var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], ee = t[14], te = t[15];
|
|
18589
|
+
return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - ee) <= d * Math.max(1, Math.abs(_), Math.abs(ee)) && Math.abs(v - te) <= d * Math.max(1, Math.abs(v), Math.abs(te));
|
|
18590
18590
|
}, e.cl = function(e, t) {
|
|
18591
18591
|
return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[4] = t[4], e[5] = t[5], e[6] = t[6], e[7] = t[7], e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
|
|
18592
|
-
}, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv =
|
|
18592
|
+
}, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = te, e.cw = function(e, t, n) {
|
|
18593
18593
|
if (t <= 0) return e;
|
|
18594
18594
|
let r = 1 / t;
|
|
18595
18595
|
return n === void 0 || Math.abs(n) < 1e-10 ? Math.round(e * r) / r : (n > 0 ? Math.ceil(e * r - 1e-9) : Math.floor(e * r + 1e-10)) / r;
|
|
18596
18596
|
}, e.cx = function(e, t, n) {
|
|
18597
18597
|
let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
|
|
18598
18598
|
var a, o;
|
|
18599
|
-
return
|
|
18600
|
-
}, e.cy =
|
|
18599
|
+
return be(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
|
|
18600
|
+
}, e.cy = N, e.cz = function(e, t) {
|
|
18601
18601
|
var n;
|
|
18602
|
-
if (!
|
|
18602
|
+
if (!Se[t]) return !1;
|
|
18603
18603
|
let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
18604
18604
|
return e instanceof i.MouseEvent || e instanceof i.WheelEvent;
|
|
18605
18605
|
}, e.d = A, e.d0 = class {
|
|
@@ -18695,7 +18695,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18695
18695
|
getClusterLeaves(e, t, n) {
|
|
18696
18696
|
return this.tileIndex.getLeaves(e, t, n);
|
|
18697
18697
|
}
|
|
18698
|
-
}, e.d1 = Fa, e.e =
|
|
18698
|
+
}, e.d1 = Fa, e.e = ie, e.f = Ne, e.g = Oe, e.h = (e) => t(void 0, void 0, void 0, (function* () {
|
|
18699
18699
|
if (e.byteLength === 0) return createImageBitmap(new ImageData(1, 1));
|
|
18700
18700
|
let t = new Blob([new Uint8Array(e)], { type: "image/png" });
|
|
18701
18701
|
try {
|
|
@@ -18703,18 +18703,18 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
18703
18703
|
} catch (e) {
|
|
18704
18704
|
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.`);
|
|
18705
18705
|
}
|
|
18706
|
-
})), e.i =
|
|
18706
|
+
})), e.i = de, e.j = (e) => new Promise(((t, n) => {
|
|
18707
18707
|
let r = new Image();
|
|
18708
18708
|
r.onload = () => {
|
|
18709
|
-
t(r), URL.revokeObjectURL(r.src), r.onload = null, window.requestAnimationFrame((() => r.src =
|
|
18709
|
+
t(r), URL.revokeObjectURL(r.src), r.onload = null, window.requestAnimationFrame((() => r.src = me));
|
|
18710
18710
|
}, 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."));
|
|
18711
18711
|
let i = new Blob([new Uint8Array(e)], { type: "image/png" });
|
|
18712
|
-
r.src = e.byteLength ? URL.createObjectURL(i) :
|
|
18713
|
-
})), e.k = (e, t) =>
|
|
18712
|
+
r.src = e.byteLength ? URL.createObjectURL(i) : me;
|
|
18713
|
+
})), e.k = (e, t) => Me(ie(e, { type: "json" }), t), e.l = Le, e.m = Me, e.n = Ie, e.o = (e, t) => Me(ie(e, { type: "arrayBuffer" }), t), e.p = Yd, e.q = function(e) {
|
|
18714
18714
|
return new Pd(e).readFields(Kd, []);
|
|
18715
18715
|
}, e.r = function(e) {
|
|
18716
18716
|
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));
|
|
18717
|
-
}, e.s =
|
|
18717
|
+
}, e.s = ve, e.t = Cc, e.u = Xa, e.v = sa, e.w = ue, e.x = F, e.y = Va, e.z = la;
|
|
18718
18718
|
})), n("worker", ["./shared"], (function(e) {
|
|
18719
18719
|
class t {
|
|
18720
18720
|
constructor(e, t) {
|
|
@@ -20258,12 +20258,12 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20258
20258
|
return Object.keys(this.active).length;
|
|
20259
20259
|
}
|
|
20260
20260
|
}
|
|
20261
|
-
let M = Math.floor(s.hardwareConcurrency / 2),
|
|
20262
|
-
function
|
|
20263
|
-
return
|
|
20261
|
+
let M = Math.floor(s.hardwareConcurrency / 2), ee, te;
|
|
20262
|
+
function N() {
|
|
20263
|
+
return ee || (ee = new j()), ee;
|
|
20264
20264
|
}
|
|
20265
20265
|
j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
|
|
20266
|
-
class
|
|
20266
|
+
class ne {
|
|
20267
20267
|
constructor(e, n) {
|
|
20268
20268
|
this.workerPool = e, this.actors = [], this.currentActor = 0, this.id = n;
|
|
20269
20269
|
let r = this.workerPool.acquire(n);
|
|
@@ -20295,10 +20295,10 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20295
20295
|
for (let t of this.actors) t.unregisterMessageHandler(e);
|
|
20296
20296
|
}
|
|
20297
20297
|
}
|
|
20298
|
-
function
|
|
20299
|
-
return
|
|
20298
|
+
function re() {
|
|
20299
|
+
return te || (te = new ne(N(), t.M), te.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), te;
|
|
20300
20300
|
}
|
|
20301
|
-
function
|
|
20301
|
+
function ie(e, n) {
|
|
20302
20302
|
let r = t.O();
|
|
20303
20303
|
return t.Q(r, r, [
|
|
20304
20304
|
1,
|
|
@@ -20310,7 +20310,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20310
20310
|
1
|
|
20311
20311
|
]), e.calculatePosMatrix ? t.U(r, r, e.calculatePosMatrix(n.toUnwrapped())) : r;
|
|
20312
20312
|
}
|
|
20313
|
-
function
|
|
20313
|
+
function ae(e, t, n, r, i, a, o) {
|
|
20314
20314
|
var s;
|
|
20315
20315
|
let c = function(e, t, n) {
|
|
20316
20316
|
if (e) for (let r of e) {
|
|
@@ -20323,14 +20323,14 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20323
20323
|
}
|
|
20324
20324
|
return !1;
|
|
20325
20325
|
}((s = i == null ? void 0 : i.layers) == null ? null : s, t, e.id), l = a.maxPitchScaleFactor(), u = e.tilesIn(r, l, c);
|
|
20326
|
-
u.sort(
|
|
20326
|
+
u.sort(oe);
|
|
20327
20327
|
let d = [];
|
|
20328
20328
|
for (let r of u) d.push({
|
|
20329
20329
|
wrappedTileID: r.tileID.wrapped().key,
|
|
20330
|
-
queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l,
|
|
20330
|
+
queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l, ie(a, r.tileID), o ? (e, t) => o(r.tileID, e, t) : void 0)
|
|
20331
20331
|
});
|
|
20332
20332
|
return function(e, t) {
|
|
20333
|
-
for (let n in e) for (let r of e[n])
|
|
20333
|
+
for (let n in e) for (let r of e[n]) se(r, t);
|
|
20334
20334
|
return e;
|
|
20335
20335
|
}(function(e) {
|
|
20336
20336
|
let t = {}, n = {};
|
|
@@ -20348,15 +20348,15 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20348
20348
|
return t;
|
|
20349
20349
|
}(d), e);
|
|
20350
20350
|
}
|
|
20351
|
-
function
|
|
20351
|
+
function oe(e, t) {
|
|
20352
20352
|
let n = e.tileID, r = t.tileID;
|
|
20353
20353
|
return n.overscaledZ - r.overscaledZ || n.canonical.y - r.canonical.y || n.wrap - r.wrap || n.canonical.x - r.canonical.x;
|
|
20354
20354
|
}
|
|
20355
|
-
function
|
|
20355
|
+
function se(e, t) {
|
|
20356
20356
|
let n = e.feature, r = t.getFeatureState(n.layer["source-layer"], n.id);
|
|
20357
20357
|
n.source = n.layer.source, n.layer["source-layer"] && (n.sourceLayer = n.layer["source-layer"]), n.state = r;
|
|
20358
20358
|
}
|
|
20359
|
-
function
|
|
20359
|
+
function ce(e, n, r, i) {
|
|
20360
20360
|
return t._(this, void 0, void 0, (function* () {
|
|
20361
20361
|
let a = e;
|
|
20362
20362
|
if (e.url ? a = (yield t.k(yield n.transformRequest(e.url, "Source"), r)).data : yield s.frameAsync(r, i), !a) return null;
|
|
@@ -20373,7 +20373,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20373
20373
|
return "vector_layers" in a && a.vector_layers && (o.vectorLayerIds = a.vector_layers.map(((e) => e.id))), o;
|
|
20374
20374
|
}));
|
|
20375
20375
|
}
|
|
20376
|
-
class
|
|
20376
|
+
class le {
|
|
20377
20377
|
constructor(e, t) {
|
|
20378
20378
|
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])));
|
|
20379
20379
|
}
|
|
@@ -20387,7 +20387,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20387
20387
|
let n = this._sw, r = this._ne, i, a;
|
|
20388
20388
|
if (e instanceof t.W) i = e, a = e;
|
|
20389
20389
|
else {
|
|
20390
|
-
if (!(e instanceof
|
|
20390
|
+
if (!(e instanceof le)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(le.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;
|
|
20391
20391
|
if (i = e._sw, a = e._ne, !i || !a) return this;
|
|
20392
20392
|
}
|
|
20393
20393
|
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;
|
|
@@ -20433,27 +20433,27 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20433
20433
|
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;
|
|
20434
20434
|
}
|
|
20435
20435
|
intersects(e) {
|
|
20436
|
-
if (!((e =
|
|
20436
|
+
if (!((e = le.convert(e)).getNorth() >= this.getSouth() && e.getSouth() <= this.getNorth())) return !1;
|
|
20437
20437
|
let n = Math.abs(this.getEast() - this.getWest()), r = Math.abs(e.getEast() - e.getWest());
|
|
20438
20438
|
if (n >= 360 || r >= 360) return !0;
|
|
20439
20439
|
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;
|
|
20440
20440
|
return !(!c || !l) || (c ? s >= i || o <= a : l ? a >= o || i <= s : o <= a && s >= i);
|
|
20441
20441
|
}
|
|
20442
20442
|
static convert(e) {
|
|
20443
|
-
return e instanceof
|
|
20443
|
+
return e instanceof le ? e : e && new le(e);
|
|
20444
20444
|
}
|
|
20445
20445
|
static fromLngLat(e, n = 0) {
|
|
20446
20446
|
let r = 360 * n / 40075017, i = r / Math.cos(Math.PI / 180 * e.lat);
|
|
20447
|
-
return new
|
|
20447
|
+
return new le(new t.W(e.lng - i, e.lat - r), new t.W(e.lng + i, e.lat + r));
|
|
20448
20448
|
}
|
|
20449
20449
|
adjustAntiMeridian() {
|
|
20450
20450
|
let e = new t.W(this._sw.lng, this._sw.lat), n = new t.W(this._ne.lng, this._ne.lat);
|
|
20451
|
-
return new
|
|
20451
|
+
return new le(e, e.lng > n.lng ? new t.W(n.lng + 360, n.lat) : n);
|
|
20452
20452
|
}
|
|
20453
20453
|
}
|
|
20454
|
-
class
|
|
20454
|
+
class ue {
|
|
20455
20455
|
constructor(e, t, n) {
|
|
20456
|
-
this.bounds =
|
|
20456
|
+
this.bounds = le.convert(this.validateBounds(e)), this.minzoom = t || 0, this.maxzoom = n || 24;
|
|
20457
20457
|
}
|
|
20458
20458
|
validateBounds(e) {
|
|
20459
20459
|
return Array.isArray(e) && e.length === 4 ? [
|
|
@@ -20473,7 +20473,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20473
20473
|
return e.x >= r && e.x < a && e.y >= i && e.y < o;
|
|
20474
20474
|
}
|
|
20475
20475
|
}
|
|
20476
|
-
class
|
|
20476
|
+
class P extends t.E {
|
|
20477
20477
|
constructor(e, n, r, i) {
|
|
20478
20478
|
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, [
|
|
20479
20479
|
"url",
|
|
@@ -20488,8 +20488,8 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20488
20488
|
return t._(this, arguments, void 0, (function* (e = !1) {
|
|
20489
20489
|
this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
|
20490
20490
|
try {
|
|
20491
|
-
let n = yield
|
|
20492
|
-
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new
|
|
20491
|
+
let n = yield ce(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
|
|
20492
|
+
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new ue(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
|
|
20493
20493
|
dataType: "source",
|
|
20494
20494
|
sourceDataType: "metadata"
|
|
20495
20495
|
})), this.fire(new t.n("data", {
|
|
@@ -20619,7 +20619,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20619
20619
|
return !1;
|
|
20620
20620
|
}
|
|
20621
20621
|
}
|
|
20622
|
-
class
|
|
20622
|
+
class de extends t.E {
|
|
20623
20623
|
constructor(e, n, r, i) {
|
|
20624
20624
|
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, [
|
|
20625
20625
|
"url",
|
|
@@ -20631,8 +20631,8 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20631
20631
|
return t._(this, arguments, void 0, (function* (e = !1) {
|
|
20632
20632
|
this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
|
20633
20633
|
try {
|
|
20634
|
-
let n = yield
|
|
20635
|
-
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new
|
|
20634
|
+
let n = yield ce(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
|
|
20635
|
+
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new ue(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
|
|
20636
20636
|
dataType: "source",
|
|
20637
20637
|
sourceDataType: "metadata"
|
|
20638
20638
|
})), this.fire(new t.n("data", {
|
|
@@ -20708,7 +20708,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20708
20708
|
return !1;
|
|
20709
20709
|
}
|
|
20710
20710
|
}
|
|
20711
|
-
class
|
|
20711
|
+
class fe extends de {
|
|
20712
20712
|
constructor(e, n, r, i) {
|
|
20713
20713
|
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;
|
|
20714
20714
|
}
|
|
@@ -20779,10 +20779,10 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20779
20779
|
}));
|
|
20780
20780
|
}
|
|
20781
20781
|
}
|
|
20782
|
-
function
|
|
20782
|
+
function pe(e, t) {
|
|
20783
20783
|
return t ? e.properties[t] : e.id;
|
|
20784
20784
|
}
|
|
20785
|
-
function
|
|
20785
|
+
function me(e, t) {
|
|
20786
20786
|
let n = { id: e.id };
|
|
20787
20787
|
if (t.removeAllProperties && (delete e.removeProperties, delete e.addOrUpdateProperties, delete t.removeProperties), t.removeProperties) for (let n of t.removeProperties) {
|
|
20788
20788
|
let t = e.addOrUpdateProperties.findIndex(((e) => e.key === n));
|
|
@@ -20790,28 +20790,28 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20790
20790
|
}
|
|
20791
20791
|
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;
|
|
20792
20792
|
}
|
|
20793
|
-
function
|
|
20793
|
+
function he(e) {
|
|
20794
20794
|
var t, n;
|
|
20795
20795
|
if (!e) return {};
|
|
20796
20796
|
let r = {};
|
|
20797
20797
|
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;
|
|
20798
20798
|
}
|
|
20799
|
-
function he(e) {
|
|
20800
|
-
return e && e.length !== 0 ? typeof e[0] == "number" ? [e] : e.flatMap(((e) => he(e))) : [];
|
|
20801
|
-
}
|
|
20802
20799
|
function ge(e) {
|
|
20803
|
-
return e.
|
|
20800
|
+
return e && e.length !== 0 ? typeof e[0] == "number" ? [e] : e.flatMap(((e) => ge(e))) : [];
|
|
20804
20801
|
}
|
|
20805
20802
|
function _e(e) {
|
|
20806
|
-
|
|
20803
|
+
return e.type === "GeometryCollection" ? e.geometries.flatMap(((e) => _e(e))) : ge(e.coordinates);
|
|
20804
|
+
}
|
|
20805
|
+
function ve(e) {
|
|
20806
|
+
let t = new le(), n;
|
|
20807
20807
|
switch (e.type) {
|
|
20808
20808
|
case "FeatureCollection":
|
|
20809
|
-
n = e.features.flatMap(((e) =>
|
|
20809
|
+
n = e.features.flatMap(((e) => _e(e.geometry)));
|
|
20810
20810
|
break;
|
|
20811
20811
|
case "Feature":
|
|
20812
|
-
n =
|
|
20812
|
+
n = _e(e.geometry);
|
|
20813
20813
|
break;
|
|
20814
|
-
default: n =
|
|
20814
|
+
default: n = _e(e);
|
|
20815
20815
|
}
|
|
20816
20816
|
if (n.length === 0) return t;
|
|
20817
20817
|
for (let e of n) {
|
|
@@ -20820,7 +20820,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20820
20820
|
}
|
|
20821
20821
|
return t;
|
|
20822
20822
|
}
|
|
20823
|
-
class
|
|
20823
|
+
class ye extends t.E {
|
|
20824
20824
|
constructor(e, n, r, i) {
|
|
20825
20825
|
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({
|
|
20826
20826
|
source: this.id,
|
|
@@ -20873,13 +20873,13 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20873
20873
|
this._pendingWorkerUpdate.diff = function(e, t) {
|
|
20874
20874
|
if (!e) return t || {};
|
|
20875
20875
|
if (!t) return e || {};
|
|
20876
|
-
let n =
|
|
20876
|
+
let n = he(e), r = he(t);
|
|
20877
20877
|
(function(e, t) {
|
|
20878
20878
|
t.removeAll && (e.add.clear(), e.update.clear(), e.remove.clear(), t.remove.clear());
|
|
20879
20879
|
for (let n of t.remove) e.add.delete(n), e.update.delete(n);
|
|
20880
20880
|
for (let [n, r] of t.update) {
|
|
20881
20881
|
let i = e.update.get(n);
|
|
20882
|
-
i && (t.update.set(n,
|
|
20882
|
+
i && (t.update.set(n, me(i, r)), e.update.delete(n));
|
|
20883
20883
|
}
|
|
20884
20884
|
})(n, r);
|
|
20885
20885
|
let i = {};
|
|
@@ -20902,7 +20902,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20902
20902
|
}
|
|
20903
20903
|
getBounds() {
|
|
20904
20904
|
return t._(this, void 0, void 0, (function* () {
|
|
20905
|
-
return
|
|
20905
|
+
return ve(yield this.getData());
|
|
20906
20906
|
}));
|
|
20907
20907
|
}
|
|
20908
20908
|
setClusterOptions(e) {
|
|
@@ -20993,13 +20993,13 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
20993
20993
|
let n = /* @__PURE__ */ new Map();
|
|
20994
20994
|
if (e == null || e.type == null) return n;
|
|
20995
20995
|
if (e.type === "Feature") {
|
|
20996
|
-
let r =
|
|
20996
|
+
let r = pe(e, t);
|
|
20997
20997
|
return r == null ? void 0 : (n.set(r, e), n);
|
|
20998
20998
|
}
|
|
20999
20999
|
if (e.type === "FeatureCollection") {
|
|
21000
21000
|
let r = /* @__PURE__ */ new Set();
|
|
21001
21001
|
for (let i of e.features) {
|
|
21002
|
-
let e =
|
|
21002
|
+
let e = pe(i, t);
|
|
21003
21003
|
if (e == null || r.has(e)) return;
|
|
21004
21004
|
r.add(e), n.set(e, i);
|
|
21005
21005
|
}
|
|
@@ -21019,7 +21019,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21019
21019
|
t && (a.push(t.geometry), e.delete(n));
|
|
21020
21020
|
}
|
|
21021
21021
|
if (t.add) for (let r of t.add) {
|
|
21022
|
-
let t =
|
|
21022
|
+
let t = pe(r, n);
|
|
21023
21023
|
if (t == null) continue;
|
|
21024
21024
|
let i = e.get(t);
|
|
21025
21025
|
i && a.push(i.geometry), a.push(r.geometry), e.set(t, r);
|
|
@@ -21041,14 +21041,14 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21041
21041
|
return e.removeAll || this._options.cluster ? void 0 : n;
|
|
21042
21042
|
}
|
|
21043
21043
|
_getShouldReloadTileOptions(e) {
|
|
21044
|
-
if (e) return { affectedBounds: e.filter(Boolean).map(((e) =>
|
|
21044
|
+
if (e) return { affectedBounds: e.filter(Boolean).map(((e) => ve(e))) };
|
|
21045
21045
|
}
|
|
21046
21046
|
shouldReloadTile(e, { affectedBounds: n }) {
|
|
21047
21047
|
if (e.state === "loading") return !0;
|
|
21048
21048
|
if (e.state === "unloaded") return !1;
|
|
21049
21049
|
let { buffer: r, extent: i } = this.workerOptions.geojsonVtOptions, a = function({ x: e, y: n, z: r }, i = 0) {
|
|
21050
21050
|
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);
|
|
21051
|
-
return new
|
|
21051
|
+
return new le([a, o], [s, c]);
|
|
21052
21052
|
}(e.tileID.canonical, r / i);
|
|
21053
21053
|
for (let e of n) if (a.intersects(e)) return !0;
|
|
21054
21054
|
return !1;
|
|
@@ -21120,7 +21120,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21120
21120
|
return !1;
|
|
21121
21121
|
}
|
|
21122
21122
|
}
|
|
21123
|
-
class
|
|
21123
|
+
class be extends t.E {
|
|
21124
21124
|
constructor(e, t, n, r) {
|
|
21125
21125
|
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;
|
|
21126
21126
|
}
|
|
@@ -21212,7 +21212,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21212
21212
|
return o;
|
|
21213
21213
|
}
|
|
21214
21214
|
}
|
|
21215
|
-
class
|
|
21215
|
+
class xe extends be {
|
|
21216
21216
|
constructor(e, t, n, r) {
|
|
21217
21217
|
super(e, t, n, r), this._onPlayingHandler = () => {
|
|
21218
21218
|
var e;
|
|
@@ -21281,7 +21281,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21281
21281
|
return this.video && !this.video.paused;
|
|
21282
21282
|
}
|
|
21283
21283
|
}
|
|
21284
|
-
class
|
|
21284
|
+
class Se extends be {
|
|
21285
21285
|
constructor(e, n, r, i) {
|
|
21286
21286
|
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;
|
|
21287
21287
|
}
|
|
@@ -21335,21 +21335,21 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21335
21335
|
return !1;
|
|
21336
21336
|
}
|
|
21337
21337
|
}
|
|
21338
|
-
let
|
|
21338
|
+
let Ce = {}, we = (e) => {
|
|
21339
21339
|
switch (e) {
|
|
21340
|
-
case "geojson": return
|
|
21341
|
-
case "image": return
|
|
21342
|
-
case "raster": return
|
|
21343
|
-
case "raster-dem": return
|
|
21344
|
-
case "vector": return
|
|
21345
|
-
case "video": return
|
|
21346
|
-
case "canvas": return
|
|
21347
|
-
}
|
|
21348
|
-
return
|
|
21349
|
-
},
|
|
21350
|
-
class
|
|
21340
|
+
case "geojson": return ye;
|
|
21341
|
+
case "image": return be;
|
|
21342
|
+
case "raster": return de;
|
|
21343
|
+
case "raster-dem": return fe;
|
|
21344
|
+
case "vector": return P;
|
|
21345
|
+
case "video": return xe;
|
|
21346
|
+
case "canvas": return Se;
|
|
21347
|
+
}
|
|
21348
|
+
return Ce[e];
|
|
21349
|
+
}, Te = "RTLPluginLoaded";
|
|
21350
|
+
class Ee extends t.E {
|
|
21351
21351
|
constructor() {
|
|
21352
|
-
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher =
|
|
21352
|
+
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = re();
|
|
21353
21353
|
}
|
|
21354
21354
|
_syncState(e) {
|
|
21355
21355
|
return this.status = e, this.dispatcher.broadcast("SRPS", {
|
|
@@ -21377,24 +21377,24 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21377
21377
|
}
|
|
21378
21378
|
_requestImport() {
|
|
21379
21379
|
return t._(this, void 0, void 0, (function* () {
|
|
21380
|
-
yield this._syncState("loading"), this.status = "loaded", this.fire(new t.n(
|
|
21380
|
+
yield this._syncState("loading"), this.status = "loaded", this.fire(new t.n(Te));
|
|
21381
21381
|
}));
|
|
21382
21382
|
}
|
|
21383
21383
|
lazyLoad() {
|
|
21384
21384
|
this.status === "unavailable" ? this.status = "requested" : this.status === "deferred" && this._requestImport();
|
|
21385
21385
|
}
|
|
21386
21386
|
}
|
|
21387
|
-
let
|
|
21388
|
-
function
|
|
21389
|
-
return
|
|
21387
|
+
let De = null;
|
|
21388
|
+
function Oe() {
|
|
21389
|
+
return De || (De = new Ee()), De;
|
|
21390
21390
|
}
|
|
21391
|
-
var
|
|
21391
|
+
var ke, Ae;
|
|
21392
21392
|
(function(e) {
|
|
21393
21393
|
e[e.Base = 0] = "Base", e[e.Parent = 1] = "Parent";
|
|
21394
|
-
})(
|
|
21394
|
+
})(ke || (ke = {})), function(e) {
|
|
21395
21395
|
e[e.Departing = 0] = "Departing", e[e.Incoming = 1] = "Incoming";
|
|
21396
|
-
}(
|
|
21397
|
-
class
|
|
21396
|
+
}(Ae || (Ae = {}));
|
|
21397
|
+
class je {
|
|
21398
21398
|
constructor(e, n) {
|
|
21399
21399
|
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";
|
|
21400
21400
|
}
|
|
@@ -21440,7 +21440,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21440
21440
|
if (this.hasRTLText = !1, this.hasSymbolBuckets) for (let e in this.buckets) {
|
|
21441
21441
|
let n = this.buckets[e];
|
|
21442
21442
|
if (n instanceof t.af && n.hasRTLText) {
|
|
21443
|
-
this.hasRTLText = !0,
|
|
21443
|
+
this.hasRTLText = !0, Oe().lazyLoad();
|
|
21444
21444
|
break;
|
|
21445
21445
|
}
|
|
21446
21446
|
}
|
|
@@ -21572,7 +21572,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21572
21572
|
return !1;
|
|
21573
21573
|
}
|
|
21574
21574
|
}
|
|
21575
|
-
class
|
|
21575
|
+
class Me {
|
|
21576
21576
|
constructor() {
|
|
21577
21577
|
this.state = {}, this.stateChanges = {}, this.deletedStates = {}, this.revision = 0;
|
|
21578
21578
|
}
|
|
@@ -21632,18 +21632,18 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21632
21632
|
this.stateChanges = {}, this.deletedStates = {}, Object.keys(o).length !== 0 && (this.revision++, e.setFeatureState(o, n));
|
|
21633
21633
|
}
|
|
21634
21634
|
}
|
|
21635
|
-
let
|
|
21636
|
-
function
|
|
21635
|
+
let Ne = 89.25;
|
|
21636
|
+
function Pe(e, n) {
|
|
21637
21637
|
let r = t.al(n.lat, -t.am, t.am);
|
|
21638
21638
|
return new t.P(t.Z(n.lng) * e, t.Y(r) * e);
|
|
21639
21639
|
}
|
|
21640
|
-
function
|
|
21640
|
+
function Fe(e, n) {
|
|
21641
21641
|
return new t.a7(n.x / e, n.y / e).toLngLat();
|
|
21642
21642
|
}
|
|
21643
|
-
function
|
|
21644
|
-
return e.cameraToCenterDistance * Math.min(.85 * Math.tan(t.an(90 - e.pitch)), Math.tan(t.an(
|
|
21643
|
+
function Ie(e) {
|
|
21644
|
+
return e.cameraToCenterDistance * Math.min(.85 * Math.tan(t.an(90 - e.pitch)), Math.tan(t.an(Ne - e.pitch)));
|
|
21645
21645
|
}
|
|
21646
|
-
function
|
|
21646
|
+
function Le(e, n) {
|
|
21647
21647
|
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));
|
|
21648
21648
|
return t.Q(o, o, [
|
|
21649
21649
|
a * i,
|
|
@@ -21655,11 +21655,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21655
21655
|
1
|
|
21656
21656
|
]), o;
|
|
21657
21657
|
}
|
|
21658
|
-
function
|
|
21659
|
-
let o = t.a7.fromLngLat(e, n), s = a * t.aq(1, e.lat), { x: c, y: l, z: u } =
|
|
21658
|
+
function Re(e, n, r, i, a) {
|
|
21659
|
+
let o = t.a7.fromLngLat(e, n), s = a * t.aq(1, e.lat), { x: c, y: l, z: u } = F(r, i);
|
|
21660
21660
|
return new t.a7(o.x + s * -c, o.y + s * -l, o.z + s * -u);
|
|
21661
21661
|
}
|
|
21662
|
-
function
|
|
21662
|
+
function F(e, n) {
|
|
21663
21663
|
let r = t.an(e), i = t.an(n), a = Math.cos(-r), o = Math.sin(r);
|
|
21664
21664
|
return {
|
|
21665
21665
|
x: o * Math.sin(i),
|
|
@@ -21667,24 +21667,24 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21667
21667
|
z: a
|
|
21668
21668
|
};
|
|
21669
21669
|
}
|
|
21670
|
-
function
|
|
21670
|
+
function ze(e, t, n) {
|
|
21671
21671
|
let r = t.intersectsFrustum(e);
|
|
21672
21672
|
if (!n || r === 0) return r;
|
|
21673
21673
|
let i = t.intersectsPlane(n);
|
|
21674
21674
|
return i === 0 ? 0 : r === 2 && i === 2 ? 2 : 1;
|
|
21675
21675
|
}
|
|
21676
|
-
function
|
|
21676
|
+
function Be(e, t, n) {
|
|
21677
21677
|
let r = 0, i = (n - t) / 10;
|
|
21678
21678
|
for (let a = 0; a < 10; a++) r += i * Math.cos(t + (a + .5) / 10 * (n - t)) ** +e;
|
|
21679
21679
|
return r;
|
|
21680
21680
|
}
|
|
21681
|
-
function
|
|
21681
|
+
function I(e, n) {
|
|
21682
21682
|
return function(r, i, a, o, s) {
|
|
21683
|
-
let c = 2 * ((e - 1) / t.ar(Math.cos(t.an(
|
|
21683
|
+
let c = 2 * ((e - 1) / t.ar(Math.cos(t.an(Ne - s)) / Math.cos(t.an(Ne))) - 1), l = Math.acos(a / o), u = 2 * Be(c - 1, 0, t.an(s / 2)), d = Math.min(t.an(Ne), l + t.an(s / 2)), f = Be(c - 1, Math.min(d, l - t.an(s / 2)), d), p = Math.atan(i / a), m = Math.hypot(i, a), h = r;
|
|
21684
21684
|
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;
|
|
21685
21685
|
};
|
|
21686
21686
|
}
|
|
21687
|
-
let Ve =
|
|
21687
|
+
let Ve = I(9.314, 3);
|
|
21688
21688
|
function He(e, n) {
|
|
21689
21689
|
let r = (n.roundZoom ? Math.round : Math.floor)(e.zoom + t.ar(e.tileSize / n.tileSize));
|
|
21690
21690
|
return Math.max(0, r);
|
|
@@ -21715,7 +21715,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21715
21715
|
z: p.zoom
|
|
21716
21716
|
}, w = s.getTileBoundingVolume(C, p.wrap, e.elevation, n);
|
|
21717
21717
|
if (!S) {
|
|
21718
|
-
let e =
|
|
21718
|
+
let e = ze(r, w, i);
|
|
21719
21719
|
if (e === 0) continue;
|
|
21720
21720
|
S = e === 2;
|
|
21721
21721
|
}
|
|
@@ -21747,18 +21747,18 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21747
21747
|
function Ke(e, t, n, r, i, a, o) {
|
|
21748
21748
|
if (!t.hasData()) return !1;
|
|
21749
21749
|
let { tileID: s, fadingRole: c, fadingDirection: l, fadingParentID: u } = t;
|
|
21750
|
-
if (c ===
|
|
21750
|
+
if (c === ke.Base && l === Ae.Incoming && u) return n[u.key] = u, !0;
|
|
21751
21751
|
let d = Math.max(s.overscaledZ - i, a);
|
|
21752
21752
|
for (let i = s.overscaledZ - 1; i >= d; i--) {
|
|
21753
21753
|
let a = s.scaledTo(i), c = e.getLoadedTile(a);
|
|
21754
21754
|
if (c) return t.setCrossFadeLogic({
|
|
21755
|
-
fadingRole:
|
|
21756
|
-
fadingDirection:
|
|
21755
|
+
fadingRole: ke.Base,
|
|
21756
|
+
fadingDirection: Ae.Incoming,
|
|
21757
21757
|
fadingParentID: c.tileID,
|
|
21758
21758
|
fadeEndTime: r + o
|
|
21759
21759
|
}), c.setCrossFadeLogic({
|
|
21760
|
-
fadingRole:
|
|
21761
|
-
fadingDirection:
|
|
21760
|
+
fadingRole: ke.Parent,
|
|
21761
|
+
fadingDirection: Ae.Departing,
|
|
21762
21762
|
fadeEndTime: r + o
|
|
21763
21763
|
}), n[a.key] = a, !0;
|
|
21764
21764
|
}
|
|
@@ -21778,14 +21778,14 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21778
21778
|
let n = e.getLoadedTile(a);
|
|
21779
21779
|
if (!n) continue;
|
|
21780
21780
|
let { fadingRole: c, fadingDirection: l, fadingParentID: u } = n;
|
|
21781
|
-
c ===
|
|
21782
|
-
fadingRole:
|
|
21783
|
-
fadingDirection:
|
|
21781
|
+
c === ke.Base && l === Ae.Departing && u || (n.setCrossFadeLogic({
|
|
21782
|
+
fadingRole: ke.Base,
|
|
21783
|
+
fadingDirection: Ae.Departing,
|
|
21784
21784
|
fadingParentID: t.tileID,
|
|
21785
21785
|
fadeEndTime: i + o
|
|
21786
21786
|
}), t.setCrossFadeLogic({
|
|
21787
|
-
fadingRole:
|
|
21788
|
-
fadingDirection:
|
|
21787
|
+
fadingRole: ke.Parent,
|
|
21788
|
+
fadingDirection: Ae.Incoming,
|
|
21789
21789
|
fadeEndTime: i + o
|
|
21790
21790
|
})), r[a.key] = a, s = !0;
|
|
21791
21791
|
}
|
|
@@ -21857,10 +21857,10 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
21857
21857
|
})), this.on("error", (() => {
|
|
21858
21858
|
this._sourceErrored = this._source.loaded();
|
|
21859
21859
|
})), this._source = ((e, t, n, r) => {
|
|
21860
|
-
let i = new (
|
|
21860
|
+
let i = new (we(t.type))(e, t, n, r);
|
|
21861
21861
|
if (i.id !== e) throw Error(`Expected Source id to be ${e} instead of ${i.id}`);
|
|
21862
21862
|
return i;
|
|
21863
|
-
})(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
|
|
21863
|
+
})(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 Me(), this._didEmitContent = !1, this._updated = !1;
|
|
21864
21864
|
}
|
|
21865
21865
|
onAdd(e) {
|
|
21866
21866
|
var t;
|
|
@@ -22034,7 +22034,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
22034
22034
|
let c = l(), u = t.at(n);
|
|
22035
22035
|
for (let t of n) {
|
|
22036
22036
|
let n = e.getTileById(t.key);
|
|
22037
|
-
n.fadingDirection !==
|
|
22037
|
+
n.fadingDirection !== Ae.Departing && n.fadeOpacity !== 0 || n.resetFadeLogic(), Ke(e, n, r, c, i, a, s) || qe(e, n, r, c, o, s) || R(n, u, c, s) || n.resetFadeLogic();
|
|
22038
22038
|
}
|
|
22039
22039
|
}(this._inViewTiles, r, o, this._maxFadingAncestorLevels, this._source.minzoom, this._source.maxzoom, this._rasterFadeDuration), s ? this._cleanUpRasterTiles(o) : this._cleanUpVectorTiles(o);
|
|
22040
22040
|
}
|
|
@@ -22083,7 +22083,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
22083
22083
|
if (n) return n;
|
|
22084
22084
|
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));
|
|
22085
22085
|
let r = n;
|
|
22086
|
-
return n || (n = new
|
|
22086
|
+
return n || (n = new je(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", {
|
|
22087
22087
|
tile: n,
|
|
22088
22088
|
coord: n.tileID,
|
|
22089
22089
|
dataType: "source"
|
|
@@ -23033,15 +23033,15 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
23033
23033
|
var w, A;
|
|
23034
23034
|
if (n[e.crossTileID]) return;
|
|
23035
23035
|
if (d) return void (this.placements[e.crossTileID] = new St(!1, !1, !1));
|
|
23036
|
-
let j = !1, M = !1,
|
|
23036
|
+
let j = !1, M = !1, ee = !0, te = null, N = {
|
|
23037
23037
|
box: null,
|
|
23038
23038
|
placeable: !1,
|
|
23039
23039
|
offscreen: null,
|
|
23040
23040
|
occluded: !1
|
|
23041
|
-
},
|
|
23042
|
-
f.textFeatureIndex ?
|
|
23043
|
-
let
|
|
23044
|
-
if (
|
|
23041
|
+
}, ne = { placeable: !1 }, re = null, ie = null, ae = null, oe = 0, se = 0, ce = 0;
|
|
23042
|
+
f.textFeatureIndex ? oe = f.textFeatureIndex : e.useRuntimeCollisionCircles && (oe = e.featureIndex), f.verticalTextFeatureIndex && (se = f.verticalTextFeatureIndex);
|
|
23043
|
+
let le = f.textBox;
|
|
23044
|
+
if (le) {
|
|
23045
23045
|
let n = (n) => {
|
|
23046
23046
|
let r = t.ax.horizontal;
|
|
23047
23047
|
if (i.allowVerticalPlacement && !n && this.prevPlacement) {
|
|
@@ -23051,21 +23051,21 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
23051
23051
|
return r;
|
|
23052
23052
|
}, a = (n, r) => {
|
|
23053
23053
|
if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
|
|
23054
|
-
for (let e of i.writingModes) if (e === t.ax.vertical ? (
|
|
23055
|
-
} else
|
|
23054
|
+
for (let e of i.writingModes) if (e === t.ax.vertical ? (N = r(), ne = N) : N = n(), N != null && N.placeable) break;
|
|
23055
|
+
} else N = n();
|
|
23056
23056
|
}, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
|
|
23057
23057
|
if (d === l) {
|
|
23058
23058
|
let r = (t, n) => {
|
|
23059
23059
|
let r = this.collisionIndex.placeCollisionBox(t, _, u, D, c, S, x, o, m.predicate, O, void 0, k);
|
|
23060
23060
|
return r != null && r.placeable && (this.markUsedOrientation(i, n, e), this.placedOrientations[e.crossTileID] = n), r;
|
|
23061
23061
|
};
|
|
23062
|
-
a((() => r(
|
|
23062
|
+
a((() => r(le, t.ax.horizontal)), (() => {
|
|
23063
23063
|
let n = f.verticalTextBox;
|
|
23064
23064
|
return i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && n ? r(n, t.ax.vertical) : {
|
|
23065
23065
|
box: null,
|
|
23066
23066
|
offscreen: null
|
|
23067
23067
|
};
|
|
23068
|
-
})), n(
|
|
23068
|
+
})), n(N == null ? void 0 : N.placeable);
|
|
23069
23069
|
} else {
|
|
23070
23070
|
let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
|
|
23071
23071
|
let f = t.x2 - t.x1, h = t.y2 - t.y1, g = e.textBoxScale, v = C && y === "never" ? n : null, b = null, w = _ === "never" ? 1 : 2, T = "never";
|
|
@@ -23075,46 +23075,46 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
23075
23075
|
let r = i.textAnchorOffsets.get(n);
|
|
23076
23076
|
if (p && r.textAnchor !== p) continue;
|
|
23077
23077
|
let l = this.attemptAnchorPlacement(r, t, f, h, g, x, S, u, D, c, m, T, e, i, a, o, s, v, O);
|
|
23078
|
-
if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0,
|
|
23078
|
+
if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, te = l.shift, b;
|
|
23079
23079
|
}
|
|
23080
23080
|
p ? p = null : T = _;
|
|
23081
23081
|
}
|
|
23082
23082
|
return r && !b && (b = {
|
|
23083
|
-
box: this.collisionIndex.placeCollisionBox(
|
|
23083
|
+
box: this.collisionIndex.placeCollisionBox(le, "always", u, D, c, S, x, o, m.predicate, O, void 0, k).box,
|
|
23084
23084
|
offscreen: !1,
|
|
23085
23085
|
placeable: !1,
|
|
23086
23086
|
occluded: !1
|
|
23087
23087
|
}), b;
|
|
23088
23088
|
};
|
|
23089
|
-
a((() => h(
|
|
23089
|
+
a((() => h(le, f.iconBox, t.ax.horizontal)), (() => {
|
|
23090
23090
|
let n = f.verticalTextBox;
|
|
23091
|
-
return i.allowVerticalPlacement && !(
|
|
23091
|
+
return i.allowVerticalPlacement && !(N != null && N.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
|
|
23092
23092
|
box: null,
|
|
23093
23093
|
occluded: !0,
|
|
23094
23094
|
offscreen: null
|
|
23095
23095
|
};
|
|
23096
|
-
})),
|
|
23097
|
-
let g = n(
|
|
23096
|
+
})), N && (j = N.placeable, ee = N.offscreen);
|
|
23097
|
+
let g = n(N == null ? void 0 : N.placeable);
|
|
23098
23098
|
if (!j && this.prevPlacement) {
|
|
23099
23099
|
let t = this.prevPlacement.variableOffsets[e.crossTileID];
|
|
23100
23100
|
t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
|
|
23101
23101
|
}
|
|
23102
23102
|
}
|
|
23103
23103
|
}
|
|
23104
|
-
if (
|
|
23104
|
+
if (re = N, j = re == null ? void 0 : re.placeable, ee = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
|
|
23105
23105
|
let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
|
|
23106
|
-
|
|
23106
|
+
ie = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ie.circles.length && ie.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ie.circles.length > 0 && !ie.collisionDetected, ee && (ee = ie.offscreen);
|
|
23107
23107
|
}
|
|
23108
|
-
if (f.iconFeatureIndex && (
|
|
23109
|
-
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C &&
|
|
23110
|
-
|
|
23108
|
+
if (f.iconFeatureIndex && (ce = f.iconFeatureIndex), f.iconBox) {
|
|
23109
|
+
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && te ? te : void 0, k);
|
|
23110
|
+
ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable), ee && (ee = ae.offscreen);
|
|
23111
23111
|
}
|
|
23112
|
-
let
|
|
23113
|
-
|
|
23114
|
-
let
|
|
23115
|
-
if (j &&
|
|
23112
|
+
let ue = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, P = g || e.numIconVertices === 0;
|
|
23113
|
+
ue || P ? P ? ue || M && (M = j) : j = M && j : M = j = M && j;
|
|
23114
|
+
let de = M && ae.placeable;
|
|
23115
|
+
if (j && re.placeable && this.collisionIndex.insertCollisionBox(re.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, ne && ne.placeable && se ? se : oe, m.ID), de && this.collisionIndex.insertCollisionBox(ae.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, ce, m.ID), ie && j && this.collisionIndex.insertCollisionCircles(ie.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, oe, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, re, ae, ie), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
|
|
23116
23116
|
if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
|
|
23117
|
-
this.placements[e.crossTileID] = new St((j || T) && !(
|
|
23117
|
+
this.placements[e.crossTileID] = new St((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded), ee || i.justReloaded), n[e.crossTileID] = !0;
|
|
23118
23118
|
};
|
|
23119
23119
|
if (w) {
|
|
23120
23120
|
if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
|
|
@@ -23814,7 +23814,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
23814
23814
|
}
|
|
23815
23815
|
getMaxBounds() {
|
|
23816
23816
|
var e, t;
|
|
23817
|
-
return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new
|
|
23817
|
+
return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new le([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]);
|
|
23818
23818
|
}
|
|
23819
23819
|
setMaxBounds(e) {
|
|
23820
23820
|
e ? (this._lngRange = [e.getWest(), e.getEast()], this._latRange = [e.getSouth(), e.getNorth()], this.constrainInternal()) : (this._lngRange = null, this._latRange = [-t.am, t.am]);
|
|
@@ -23867,7 +23867,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
23867
23867
|
this._callbacks.calcMatrices();
|
|
23868
23868
|
}
|
|
23869
23869
|
calculateCenterFromCameraLngLatAlt(e, n, r, i) {
|
|
23870
|
-
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 } =
|
|
23870
|
+
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 } = F(o, a), d = t.a7.fromLngLat(e, n), f, p, m = t.aY(1, d.y), h = 0;
|
|
23871
23871
|
do {
|
|
23872
23872
|
if (h += 1, h > 10) break;
|
|
23873
23873
|
p = s / m, f = new t.a7(d.x + l * p, d.y + u * p), m = 1 / f.meterInMercatorCoordinateUnits();
|
|
@@ -23880,7 +23880,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
23880
23880
|
}
|
|
23881
23881
|
recalculateZoomAndCenter(e) {
|
|
23882
23882
|
if (this.elevation - e == 0) return;
|
|
23883
|
-
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 } =
|
|
23883
|
+
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 } = F(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);
|
|
23884
23884
|
this._elevation = v, this._center = b, this.setZoom(S);
|
|
23885
23885
|
}
|
|
23886
23886
|
_distanceToCenterFromAltElevationPitch(e, n, r) {
|
|
@@ -23899,7 +23899,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
23899
23899
|
}
|
|
23900
23900
|
getCameraLngLat() {
|
|
23901
23901
|
let e = t.aq(1, this.center.lat) * this.worldSize;
|
|
23902
|
-
return
|
|
23902
|
+
return Re(this.center, this.elevation, this.pitch, this.bearing, this.cameraToCenterDistance / e).toLngLat();
|
|
23903
23903
|
}
|
|
23904
23904
|
getMercatorTileCoordinates(e) {
|
|
23905
23905
|
if (!e) return [
|
|
@@ -24368,8 +24368,8 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24368
24368
|
o = t.Y(e[1]) * a, s = t.Y(e[0]) * a, s - o < p && (u = p / (s - o));
|
|
24369
24369
|
}
|
|
24370
24370
|
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)));
|
|
24371
|
-
let { x: m, y: h } =
|
|
24372
|
-
if (v) return r.center =
|
|
24371
|
+
let { x: m, y: h } = Pe(a, e), g, _, v = Math.max(d || 0, u || 0);
|
|
24372
|
+
if (v) return r.center = Fe(a, new t.P(d ? (l + c) / 2 : m, u ? (s + o) / 2 : h)).wrap(), r.zoom += t.ar(v), r;
|
|
24373
24373
|
if (this._helper._latRange) {
|
|
24374
24374
|
let e = p / 2;
|
|
24375
24375
|
h - e < o && (_ = o + e), h + e > s && (_ = s - e);
|
|
@@ -24380,7 +24380,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24380
24380
|
let r = f / 2;
|
|
24381
24381
|
n - r < c && (g = c + r), n + r > l && (g = l - r);
|
|
24382
24382
|
}
|
|
24383
|
-
return (g !== void 0 || _ !== void 0) && (r.center =
|
|
24383
|
+
return (g !== void 0 || _ !== void 0) && (r.center = Fe(a, new t.P(g == null ? m : g, _ == null ? h : _)).wrap()), r;
|
|
24384
24384
|
}, this.applyConstrain = (e, t) => this._helper.applyConstrain(e, t), this._helper = new Xt({
|
|
24385
24385
|
calcMatrices: () => this._calcMatrices(),
|
|
24386
24386
|
defaultConstrain: (e, t) => this.defaultConstrain(e, t)
|
|
@@ -24473,11 +24473,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24473
24473
|
return t.aE(i, i, r), new t.P(i[0] / i[3], i[1] / i[3]);
|
|
24474
24474
|
}
|
|
24475
24475
|
getBounds() {
|
|
24476
|
-
let e = Math.max(0, this._helper._height / 2 -
|
|
24477
|
-
return new
|
|
24476
|
+
let e = Math.max(0, this._helper._height / 2 - Ie(this));
|
|
24477
|
+
return new le().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)));
|
|
24478
24478
|
}
|
|
24479
24479
|
isPointOnMapSurface(e, t) {
|
|
24480
|
-
return t ? t.pointCoordinate(e) != null : e.y > this.height / 2 -
|
|
24480
|
+
return t ? t.pointCoordinate(e) != null : e.y > this.height / 2 - Ie(this);
|
|
24481
24481
|
}
|
|
24482
24482
|
calculatePosMatrix(e, n = !1, r) {
|
|
24483
24483
|
var i;
|
|
@@ -24486,7 +24486,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24486
24486
|
let e = o.get(a);
|
|
24487
24487
|
return r ? e.f32 : e.f64;
|
|
24488
24488
|
}
|
|
24489
|
-
let s =
|
|
24489
|
+
let s = Le(e, this.worldSize);
|
|
24490
24490
|
t.U(s, n ? this._alignedProjMatrix : this._viewProjMatrix, s);
|
|
24491
24491
|
let c = {
|
|
24492
24492
|
f64: s,
|
|
@@ -24497,7 +24497,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24497
24497
|
calculateFogMatrix(e) {
|
|
24498
24498
|
let n = e.key, r = this._fogMatrixCacheF32;
|
|
24499
24499
|
if (r.has(n)) return r.get(n);
|
|
24500
|
-
let i =
|
|
24500
|
+
let i = Le(e, this.worldSize);
|
|
24501
24501
|
return t.U(i, this._fogMatrix, i), r.set(n, new Float32Array(i)), r.get(n);
|
|
24502
24502
|
}
|
|
24503
24503
|
calculateCenterFromCameraLngLatAlt(e, t, n, r) {
|
|
@@ -24505,14 +24505,14 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24505
24505
|
}
|
|
24506
24506
|
_calculateNearFarZIfNeeded(e, n, r) {
|
|
24507
24507
|
if (!this._helper.autoCalculateNearFarZ) return;
|
|
24508
|
-
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 =
|
|
24508
|
+
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 = Ie(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);
|
|
24509
24509
|
this._helper._farZ = 1.01 * (Math.cos(Math.PI / 2 - n) * h + o), this._helper._nearZ = this._helper._height / 50;
|
|
24510
24510
|
}
|
|
24511
24511
|
_calcMatrices() {
|
|
24512
24512
|
if (!this._helper._height) return;
|
|
24513
|
-
let e = this.centerOffset, n =
|
|
24513
|
+
let e = this.centerOffset, n = Pe(this.worldSize, this.center), r = n.x, i = n.y;
|
|
24514
24514
|
this._helper._pixelPerMeter = t.aq(1, this.center.lat) * this.worldSize;
|
|
24515
|
-
let a = t.an(Math.min(this.pitch,
|
|
24515
|
+
let a = t.an(Math.min(this.pitch, Ne)), o = Math.max(this._helper.cameraToCenterDistance / 2, this._helper.cameraToCenterDistance + this._helper._elevation * this._helper._pixelPerMeter / Math.cos(a)), s;
|
|
24516
24516
|
var c, l;
|
|
24517
24517
|
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, [
|
|
24518
24518
|
1,
|
|
@@ -24599,7 +24599,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24599
24599
|
}
|
|
24600
24600
|
getCameraLngLat() {
|
|
24601
24601
|
let e = t.aq(1, this.center.lat) * this.worldSize;
|
|
24602
|
-
return
|
|
24602
|
+
return Re(this.center, this.elevation, this.pitch, this.bearing, this._helper.cameraToCenterDistance / e).toLngLat();
|
|
24603
24603
|
}
|
|
24604
24604
|
lngLatToCameraDepth(e, n) {
|
|
24605
24605
|
let r = t.a7.fromLngLat(e), i = [
|
|
@@ -24682,7 +24682,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24682
24682
|
let n = new t.a3(0, 0, 0, 0, 0), r = this.getProjectionData({
|
|
24683
24683
|
overscaledTileID: n,
|
|
24684
24684
|
applyGlobeMatrix: e
|
|
24685
|
-
}), i =
|
|
24685
|
+
}), i = Le(n, this.worldSize);
|
|
24686
24686
|
t.U(i, this._viewProjMatrix, i), r.tileMercatorCoords = [
|
|
24687
24687
|
0,
|
|
24688
24688
|
0,
|
|
@@ -24713,11 +24713,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24713
24713
|
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));
|
|
24714
24714
|
}
|
|
24715
24715
|
function rn(e, n, r, i, a) {
|
|
24716
|
-
let o = a.padding, s =
|
|
24716
|
+
let o = a.padding, s = Pe(a.worldSize, r.getNorthWest()), c = Pe(a.worldSize, r.getNorthEast()), l = Pe(a.worldSize, r.getSouthEast()), u = Pe(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;
|
|
24717
24717
|
if (b < 0 || y < 0) return void tn();
|
|
24718
24718
|
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));
|
|
24719
24719
|
return {
|
|
24720
|
-
center:
|
|
24720
|
+
center: Fe(a.worldSize, s.add(l).div(2).sub(w)),
|
|
24721
24721
|
zoom: x,
|
|
24722
24722
|
bearing: i
|
|
24723
24723
|
};
|
|
@@ -24727,7 +24727,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24727
24727
|
return !1;
|
|
24728
24728
|
}
|
|
24729
24729
|
handlePanInertia(e, t) {
|
|
24730
|
-
let n = e.mag(), r = Math.abs(
|
|
24730
|
+
let n = e.mag(), r = Math.abs(Ie(t));
|
|
24731
24731
|
return {
|
|
24732
24732
|
easingOffset: e.mult(Math.min(.75 * r / n, 1)),
|
|
24733
24733
|
easingCenter: t.center
|
|
@@ -24756,7 +24756,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24756
24756
|
bearing: n.bearing === void 0 ? e.bearing : n.bearing
|
|
24757
24757
|
}, 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);
|
|
24758
24758
|
Jt(e, p);
|
|
24759
|
-
let h =
|
|
24759
|
+
let h = Pe(e.worldSize, f), g = Pe(e.worldSize, p).sub(h), _ = t.ao(m - r);
|
|
24760
24760
|
return l = m !== r, {
|
|
24761
24761
|
easeFunc: (s) => {
|
|
24762
24762
|
if (l && e.setZoom(t.H.number(r, m, s)), t.bn(a, o) || nn({
|
|
@@ -24767,7 +24767,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24767
24767
|
useSlerp: a.roll != o.roll
|
|
24768
24768
|
}), c && (e.interpolatePadding(i, n.padding, s), d = e.centerPoint.add(n.offsetAsPoint)), n.around) e.setLocationAtPoint(n.around, n.aroundPoint);
|
|
24769
24769
|
else {
|
|
24770
|
-
let n = t.ao(e.zoom - r), i = (m > r ? Math.min(2, _) : Math.max(.5, _)) ** (1 - s), a =
|
|
24770
|
+
let n = t.ao(e.zoom - r), i = (m > r ? Math.min(2, _) : Math.max(.5, _)) ** (1 - s), a = Fe(e.worldSize, h.add(g.mult(s * i)).mult(n));
|
|
24771
24771
|
e.setLocationAtPoint(e.renderWorldCopies ? a.wrap() : a, d);
|
|
24772
24772
|
}
|
|
24773
24773
|
},
|
|
@@ -24778,7 +24778,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24778
24778
|
handleFlyTo(e, n) {
|
|
24779
24779
|
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;
|
|
24780
24780
|
Jt(e, o);
|
|
24781
|
-
let c =
|
|
24781
|
+
let c = Pe(e.worldSize, n.locationAtOffset), l = Pe(e.worldSize, o).sub(c), u = l.mag(), d = t.ao(s - i), f;
|
|
24782
24782
|
if (n.minZoom !== void 0) {
|
|
24783
24783
|
let r = Math.min(+n.minZoom, i, s), a = e.applyConstrain(o, r).zoom;
|
|
24784
24784
|
f = t.ao(a - i);
|
|
@@ -24786,7 +24786,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
24786
24786
|
return {
|
|
24787
24787
|
easeFunc: (n, r, a, u) => {
|
|
24788
24788
|
e.setZoom(n === 1 ? s : i + t.ar(r));
|
|
24789
|
-
let d = n === 1 ? o :
|
|
24789
|
+
let d = n === 1 ? o : Fe(e.worldSize, c.add(l.mult(a)).mult(r));
|
|
24790
24790
|
e.setLocationAtPoint(e.renderWorldCopies ? d.wrap() : d, u);
|
|
24791
24791
|
},
|
|
24792
24792
|
scaleOfZoom: d,
|
|
@@ -25847,7 +25847,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
25847
25847
|
0,
|
|
25848
25848
|
-1,
|
|
25849
25849
|
0
|
|
25850
|
-
]) && (u[1] = -90, u[0] = -180, u[2] = 180), new
|
|
25850
|
+
]) && (u[1] = -90, u[0] = -180, u[2] = 180), new le(u);
|
|
25851
25851
|
}
|
|
25852
25852
|
calculateCenterFromCameraLngLatAlt(e, t, n, r) {
|
|
25853
25853
|
return this._helper.calculateCenterFromCameraLngLatAlt(e, t, n, r);
|
|
@@ -26522,9 +26522,9 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
26522
26522
|
let t = this.tileManagers[e].getSource().type;
|
|
26523
26523
|
t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
|
|
26524
26524
|
}
|
|
26525
|
-
}, this.map = e, this.dispatcher = new
|
|
26525
|
+
}, this.map = e, this.dispatcher = new ne(N(), 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);
|
|
26526
26526
|
let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
|
|
26527
|
-
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()),
|
|
26527
|
+
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()), Oe().on(Te, this._rtlPluginLoaded), this.on("data", ((e) => {
|
|
26528
26528
|
if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
|
|
26529
26529
|
let t = this.tileManagers[e.sourceId];
|
|
26530
26530
|
if (!t) return;
|
|
@@ -27095,11 +27095,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
27095
27095
|
layers: s,
|
|
27096
27096
|
globalState: this._globalState
|
|
27097
27097
|
});
|
|
27098
|
-
for (let t in this.tileManagers) n.layers && !i[t] || a.push(
|
|
27098
|
+
for (let t in this.tileManagers) n.layers && !i[t] || a.push(ae(this.tileManagers[t], this._layers, o, e, c, r, this.map.terrain ? (e, t, n) => this.map.terrain.getElevation(e, t, n) : void 0));
|
|
27099
27099
|
return this.placement && a.push(function(e, t, n, r, i, a, o) {
|
|
27100
27100
|
let s = {}, c = a.queryRenderedSymbols(r), l = [];
|
|
27101
27101
|
for (let e of Object.keys(c).map(Number)) l.push(o[e]);
|
|
27102
|
-
l.sort(
|
|
27102
|
+
l.sort(oe);
|
|
27103
27103
|
for (let n of l) {
|
|
27104
27104
|
let r = n.featureIndex.lookupSymbolFeatures(c[n.bucketInstanceId], t, n.bucketIndex, n.sourceLayerIndex, {
|
|
27105
27105
|
filterSpec: i.filter,
|
|
@@ -27120,7 +27120,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
27120
27120
|
}
|
|
27121
27121
|
}
|
|
27122
27122
|
return function(e, t, n) {
|
|
27123
|
-
for (let r in e) for (let i of e[r])
|
|
27123
|
+
for (let r in e) for (let i of e[r]) se(i, n[t[r].source]);
|
|
27124
27124
|
return e;
|
|
27125
27125
|
}(s, e, n);
|
|
27126
27126
|
}(this._layers, o, this.tileManagers, e, c, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(a);
|
|
@@ -27251,7 +27251,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
27251
27251
|
}, i)));
|
|
27252
27252
|
}
|
|
27253
27253
|
_remove(e = !0) {
|
|
27254
|
-
this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null),
|
|
27254
|
+
this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), Oe().off(Te, this._rtlPluginLoaded);
|
|
27255
27255
|
for (let e in this._layers) this._layers[e].setEventedParent(null);
|
|
27256
27256
|
for (let e in this.tileManagers) {
|
|
27257
27257
|
let t = this.tileManagers[e];
|
|
@@ -28685,36 +28685,36 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
28685
28685
|
if (!l) continue;
|
|
28686
28686
|
let d = a ? l.text : l.icon;
|
|
28687
28687
|
if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
|
|
28688
|
-
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,
|
|
28689
|
-
if (a)
|
|
28688
|
+
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, ee, te, N, ne = [0, 0], re = null;
|
|
28689
|
+
if (a) ee = i.glyphAtlasTexture, te = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, N = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
|
|
28690
28690
|
else {
|
|
28691
28691
|
let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
|
|
28692
|
-
|
|
28692
|
+
ee = i.imageAtlasTexture, te = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
|
|
28693
28693
|
}
|
|
28694
|
-
let
|
|
28694
|
+
let ie = t.aK(i, 1, e.transform.zoom), ae = $e(y, e.transform, ie), oe = et(b, y, e.transform, ie), se = t.aL(v, i, o, s), ce = v.getProjectionData({
|
|
28695
28695
|
overscaledTileID: c,
|
|
28696
28696
|
applyGlobeMatrix: !p,
|
|
28697
28697
|
applyTerrainMatrix: !0
|
|
28698
|
-
}),
|
|
28698
|
+
}), le = E && l.hasTextData(), ue = r.layout.get("icon-text-fit") !== "none" && le && l.hasIconData();
|
|
28699
28699
|
if (x) {
|
|
28700
28700
|
let n = t.O();
|
|
28701
|
-
H(n,
|
|
28701
|
+
H(n, ae);
|
|
28702
28702
|
let i = e.style.map.terrain ? (t, n) => e.style.map.terrain.getElevation(c, t, n) : null;
|
|
28703
|
-
it(l, e, a,
|
|
28703
|
+
it(l, e, a, ae, n, b, u, r.layout.get("text-rotation-alignment") === "map", c.toUnwrapped(), v.width, v.height, se, i);
|
|
28704
28704
|
}
|
|
28705
|
-
let
|
|
28706
|
-
|
|
28707
|
-
let
|
|
28705
|
+
let P = a && E || ue, de = x || P ? pi : b ? ae : e.transform.clipSpaceToPixelsMatrix, fe = h && r.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, pe;
|
|
28706
|
+
pe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, P, e, de, oe, se, M, ne, O) : vr(g.kind, A, S, b, x, P, e, de, oe, se, a, M, fe, O) : _r(g.kind, A, S, b, x, P, e, de, oe, se, a, M, O);
|
|
28707
|
+
let me = {
|
|
28708
28708
|
program: k,
|
|
28709
28709
|
buffers: d,
|
|
28710
|
-
uniformValues:
|
|
28711
|
-
projectionData:
|
|
28712
|
-
atlasTexture:
|
|
28713
|
-
atlasTextureIcon:
|
|
28714
|
-
atlasInterpolation:
|
|
28715
|
-
atlasInterpolationIcon:
|
|
28710
|
+
uniformValues: pe,
|
|
28711
|
+
projectionData: ce,
|
|
28712
|
+
atlasTexture: ee,
|
|
28713
|
+
atlasTextureIcon: re,
|
|
28714
|
+
atlasInterpolation: te,
|
|
28715
|
+
atlasInterpolationIcon: N,
|
|
28716
28716
|
isSDF: h,
|
|
28717
|
-
hasHalo:
|
|
28717
|
+
hasHalo: fe
|
|
28718
28718
|
};
|
|
28719
28719
|
if (C && l.canOverlap) {
|
|
28720
28720
|
w = !0;
|
|
@@ -28722,13 +28722,13 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
28722
28722
|
for (let n of e) D.push({
|
|
28723
28723
|
segments: new t.aV([n]),
|
|
28724
28724
|
sortKey: n.sortKey,
|
|
28725
|
-
state:
|
|
28725
|
+
state: me,
|
|
28726
28726
|
terrainData: j
|
|
28727
28727
|
});
|
|
28728
28728
|
} else D.push({
|
|
28729
28729
|
segments: d.segments,
|
|
28730
28730
|
sortKey: 0,
|
|
28731
|
-
state:
|
|
28731
|
+
state: me,
|
|
28732
28732
|
terrainData: j
|
|
28733
28733
|
});
|
|
28734
28734
|
}
|
|
@@ -28967,7 +28967,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
28967
28967
|
parentScaleBy: o,
|
|
28968
28968
|
parentTopLeft: [e.tileID.canonical.x * o % 1, e.tileID.canonical.y * o % 1],
|
|
28969
28969
|
fadeValues: function(e, n, r) {
|
|
28970
|
-
let i = l(), a = (i - n.timeAdded) / r, o = e.fadingDirection ===
|
|
28970
|
+
let i = l(), a = (i - n.timeAdded) / r, o = e.fadingDirection === Ae.Incoming, s = t.al((i - e.timeAdded) / r, 0, 1), c = t.al(1 - a, 0, 1), u = o ? s : c;
|
|
28971
28971
|
return {
|
|
28972
28972
|
tileOpacity: u,
|
|
28973
28973
|
parentTileOpacity: o ? c : s,
|
|
@@ -29274,7 +29274,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
29274
29274
|
raster: function(e, t, n, r, i) {
|
|
29275
29275
|
if (e.renderPass !== "translucent" || n.paint.get("raster-opacity") === 0 || !r.length) return;
|
|
29276
29276
|
let { isRenderingToTexture: a } = i, o = t.getSource(), s = e.style.projection.useSubdivision;
|
|
29277
|
-
if (o instanceof
|
|
29277
|
+
if (o instanceof be) Ii(e, t, n, r, null, !1, !1, o.tileCoords, o.flippedWindingOrder, a);
|
|
29278
29278
|
else if (s) {
|
|
29279
29279
|
let [i, o, s] = e.stencilConfigForOverlapTwoPass(r);
|
|
29280
29280
|
Ii(e, t, n, s, i, !1, !0, Fi, !1, a), Ii(e, t, n, s, o, !0, !0, Fi, !1, a);
|
|
@@ -29311,7 +29311,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
29311
29311
|
},
|
|
29312
29312
|
sky: function(e, t) {
|
|
29313
29313
|
let n = e.context, r = n.gl, i = ((e, t, n) => {
|
|
29314
|
-
let r = Math.cos(t.rollInRadians), i = Math.sin(t.rollInRadians), a =
|
|
29314
|
+
let r = Math.cos(t.rollInRadians), i = Math.sin(t.rollInRadians), a = Ie(t), o = t.getProjectionData({
|
|
29315
29315
|
overscaledTileID: null,
|
|
29316
29316
|
applyGlobeMatrix: !0,
|
|
29317
29317
|
applyTerrainMatrix: !0
|
|
@@ -31343,7 +31343,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
31343
31343
|
return this.jumpTo({ roll: e }, t), this;
|
|
31344
31344
|
}
|
|
31345
31345
|
cameraForBounds(e, t) {
|
|
31346
|
-
e =
|
|
31346
|
+
e = le.convert(e).adjustAntiMeridian();
|
|
31347
31347
|
let n = (t == null ? void 0 : t.bearing) || 0;
|
|
31348
31348
|
return this._cameraForBoxAndBearing(e.getNorthWest(), e.getSouthEast(), n, t);
|
|
31349
31349
|
}
|
|
@@ -31369,7 +31369,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
31369
31369
|
}
|
|
31370
31370
|
let o = t.e(a, i.padding);
|
|
31371
31371
|
i.padding = o;
|
|
31372
|
-
let s = this.transform, c = new
|
|
31372
|
+
let s = this.transform, c = new le(e, n), l = this.cameraHelper.cameraForBoxAndBearing(i, o, c, r, s);
|
|
31373
31373
|
return l && this._zoomSnap && (l.zoom = t.cw(l.zoom, this._zoomSnap, -1)), l;
|
|
31374
31374
|
}
|
|
31375
31375
|
fitBounds(e, t, n) {
|
|
@@ -31708,7 +31708,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
31708
31708
|
reparseOverscaled: !1,
|
|
31709
31709
|
terrain: n,
|
|
31710
31710
|
calculateTileZoom: this.tileManager._source.calculateTileZoom
|
|
31711
|
-
})) 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
|
|
31711
|
+
})) 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 je(i, this.tileSize), this._lastTilesetChange = l());
|
|
31712
31712
|
for (let e in this._tiles) r[e] || delete this._tiles[e];
|
|
31713
31713
|
}
|
|
31714
31714
|
freeRtt(e) {
|
|
@@ -32045,7 +32045,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
32045
32045
|
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 = {};
|
|
32046
32046
|
for (let t in e.tileManagers) {
|
|
32047
32047
|
this._coordsAscending[t] = {};
|
|
32048
|
-
let n = e.tileManagers[t].getVisibleCoordinates(), r = e.tileManagers[t].getSource(), a = r instanceof
|
|
32048
|
+
let n = e.tileManagers[t].getVisibleCoordinates(), r = e.tileManagers[t].getSource(), a = r instanceof be ? r.terrainTileRanges : null;
|
|
32049
32049
|
for (let e of n) {
|
|
32050
32050
|
let n = this.terrain.tileManager.getTerrainCoords(e, a);
|
|
32051
32051
|
for (let e in n) (i = this._coordsAscending[t])[e] || (i[e] = []), this._coordsAscending[t][e].push(n[e]);
|
|
@@ -32316,7 +32316,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
32316
32316
|
return this.transform.getMaxBounds();
|
|
32317
32317
|
}
|
|
32318
32318
|
setMaxBounds(e) {
|
|
32319
|
-
return this.transform.setMaxBounds(
|
|
32319
|
+
return this.transform.setMaxBounds(le.convert(e)), this._update();
|
|
32320
32320
|
}
|
|
32321
32321
|
setMinZoom(e) {
|
|
32322
32322
|
if ((e = e == null ? -2 : e) >= -2 && e <= this.transform.maxZoom) {
|
|
@@ -32610,8 +32610,8 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
32610
32610
|
if (n) {
|
|
32611
32611
|
let r = this.getSource(n);
|
|
32612
32612
|
if (!r) throw Error(`There is no source with ID "${n}", cannot set LOD parameters`);
|
|
32613
|
-
r.calculateTileZoom =
|
|
32614
|
-
} else for (let n in this.style.tileManagers) this.style.tileManagers[n].getSource().calculateTileZoom =
|
|
32613
|
+
r.calculateTileZoom = I(Math.max(1, e), Math.max(1, t));
|
|
32614
|
+
} else for (let n in this.style.tileManagers) this.style.tileManagers[n].getSource().calculateTileZoom = I(Math.max(1, e), Math.max(1, t));
|
|
32615
32615
|
return this._update(!0), this;
|
|
32616
32616
|
}
|
|
32617
32617
|
refreshTiles(e, n) {
|
|
@@ -33336,7 +33336,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33336
33336
|
return wo(new t.P(0, 0));
|
|
33337
33337
|
}
|
|
33338
33338
|
let To = n;
|
|
33339
|
-
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 =
|
|
33339
|
+
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 = Se, e.CooperativeGesturesHandler = Wa, e.DoubleClickZoomHandler = Ra, e.DragPanHandler = Va, e.DragRotateHandler = Ha, e.EdgeInsets = qt, e.FullscreenControl = class extends t.E {
|
|
33340
33340
|
constructor(e = {}) {
|
|
33341
33341
|
var n;
|
|
33342
33342
|
super(), this._onFullscreenChange = () => {
|
|
@@ -33380,7 +33380,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33380
33380
|
_togglePseudoFullScreen() {
|
|
33381
33381
|
this._container.classList.toggle("maplibregl-pseudo-fullscreen"), this._handleFullscreenChange(), this._map.resize();
|
|
33382
33382
|
}
|
|
33383
|
-
}, e.GeoJSONSource =
|
|
33383
|
+
}, e.GeoJSONSource = ye, e.GeolocateControl = class extends t.E {
|
|
33384
33384
|
constructor(e) {
|
|
33385
33385
|
super(), this._onSuccess = (e) => {
|
|
33386
33386
|
if (this._map) {
|
|
@@ -33400,7 +33400,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33400
33400
|
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();
|
|
33401
33401
|
}
|
|
33402
33402
|
}, this._updateCamera = (e) => {
|
|
33403
|
-
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 =
|
|
33403
|
+
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 = le.fromLngLat(n, r);
|
|
33404
33404
|
this._map.fitBounds(o, a, { geolocateSource: !0 });
|
|
33405
33405
|
}, this._updateMarker = (e) => {
|
|
33406
33406
|
if (e) {
|
|
@@ -33552,7 +33552,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33552
33552
|
onRemove() {
|
|
33553
33553
|
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;
|
|
33554
33554
|
}
|
|
33555
|
-
}, e.Hash = Qi, e.ImageSource =
|
|
33555
|
+
}, e.Hash = Qi, e.ImageSource = be, e.KeyboardHandler = Pa, e.LngLatBounds = le, e.LogoControl = Xa, e.Map = so, e.MapLibreMap = so, e.MapMouseEvent = ca, e.MapTouchEvent = la, e.MapWheelEvent = ua, e.Marker = ho, e.NavigationControl = class {
|
|
33556
33556
|
constructor(e) {
|
|
33557
33557
|
this._updateZoomButtons = () => {
|
|
33558
33558
|
let e = this._map.getZoom(), t = e === this._map.getMaxZoom(), n = e === this._map.getMinZoom();
|
|
@@ -33678,7 +33678,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33678
33678
|
let e = this._container.querySelector(Co);
|
|
33679
33679
|
e && e.focus();
|
|
33680
33680
|
}
|
|
33681
|
-
}, e.RasterDEMTileSource =
|
|
33681
|
+
}, e.RasterDEMTileSource = fe, e.RasterTileSource = de, e.ScaleControl = class {
|
|
33682
33682
|
constructor(e) {
|
|
33683
33683
|
this._onMove = () => {
|
|
33684
33684
|
bo(this._map, this._container, this.options);
|
|
@@ -33709,18 +33709,18 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33709
33709
|
onRemove() {
|
|
33710
33710
|
this._container.remove(), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
|
|
33711
33711
|
}
|
|
33712
|
-
}, e.TwoFingersTouchPitchHandler = Ma, e.TwoFingersTouchRotateHandler = Aa, e.TwoFingersTouchZoomHandler = Oa, e.TwoFingersTouchZoomRotateHandler = Ua, e.VectorTileSource =
|
|
33713
|
-
if (
|
|
33712
|
+
}, e.TwoFingersTouchPitchHandler = Ma, e.TwoFingersTouchRotateHandler = Aa, e.TwoFingersTouchZoomHandler = Oa, e.TwoFingersTouchZoomRotateHandler = Ua, e.VectorTileSource = P, e.VideoSource = xe, e.addSourceType = (e, n) => t._(void 0, void 0, void 0, (function* () {
|
|
33713
|
+
if (we(e)) throw Error(`A source type called "${e}" already exists.`);
|
|
33714
33714
|
((e, t) => {
|
|
33715
|
-
|
|
33715
|
+
Ce[e] = t;
|
|
33716
33716
|
})(e, n);
|
|
33717
33717
|
})), e.clearPrewarmedResources = function() {
|
|
33718
|
-
let e =
|
|
33719
|
-
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A),
|
|
33720
|
-
}, e.createTileMesh = fn, e.getGlobalDispatcher =
|
|
33718
|
+
let e = ee;
|
|
33719
|
+
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), ee = 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()"));
|
|
33720
|
+
}, e.createTileMesh = fn, e.getGlobalDispatcher = re, e.getMaxParallelImageRequests = function() {
|
|
33721
33721
|
return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
|
|
33722
33722
|
}, e.getRTLTextPluginStatus = function() {
|
|
33723
|
-
return
|
|
33723
|
+
return Oe().getRTLTextPluginStatus();
|
|
33724
33724
|
}, e.getVersion = function() {
|
|
33725
33725
|
return To;
|
|
33726
33726
|
}, e.getWorkerCount = function() {
|
|
@@ -33728,11 +33728,11 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33728
33728
|
}, e.getWorkerUrl = function() {
|
|
33729
33729
|
return t.c.WORKER_URL;
|
|
33730
33730
|
}, e.importScriptInWorkers = function(e) {
|
|
33731
|
-
return
|
|
33731
|
+
return re().broadcast("IS", e);
|
|
33732
33732
|
}, e.isTimeFrozen = function() {
|
|
33733
33733
|
return c.isFrozen();
|
|
33734
33734
|
}, e.now = l, e.prewarm = function() {
|
|
33735
|
-
|
|
33735
|
+
N().acquire(A);
|
|
33736
33736
|
}, e.restoreNow = function() {
|
|
33737
33737
|
c.restoreNow();
|
|
33738
33738
|
}, e.setMaxParallelImageRequests = function(e) {
|
|
@@ -33740,7 +33740,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33740
33740
|
}, e.setNow = function(e) {
|
|
33741
33741
|
c.setNow(e);
|
|
33742
33742
|
}, e.setRTLTextPlugin = function(e, t) {
|
|
33743
|
-
return
|
|
33743
|
+
return Oe().setRTLTextPlugin(e, t);
|
|
33744
33744
|
}, e.setWorkerCount = function(e) {
|
|
33745
33745
|
j.workerCount = e;
|
|
33746
33746
|
}, e.setWorkerUrl = function(e) {
|
|
@@ -33748,7 +33748,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33748
33748
|
};
|
|
33749
33749
|
})), e;
|
|
33750
33750
|
}));
|
|
33751
|
-
})))(),
|
|
33751
|
+
})))(), pe = Uint8Array, me = Uint16Array, he = Int32Array, ge = new pe([
|
|
33752
33752
|
0,
|
|
33753
33753
|
0,
|
|
33754
33754
|
0,
|
|
@@ -33781,7 +33781,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33781
33781
|
0,
|
|
33782
33782
|
0,
|
|
33783
33783
|
0
|
|
33784
|
-
]),
|
|
33784
|
+
]), _e = new pe([
|
|
33785
33785
|
0,
|
|
33786
33786
|
0,
|
|
33787
33787
|
0,
|
|
@@ -33814,7 +33814,7 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33814
33814
|
13,
|
|
33815
33815
|
0,
|
|
33816
33816
|
0
|
|
33817
|
-
]),
|
|
33817
|
+
]), ve = new pe([
|
|
33818
33818
|
16,
|
|
33819
33819
|
17,
|
|
33820
33820
|
18,
|
|
@@ -33834,51 +33834,51 @@ var F = /* @__PURE__ */ e(o(), 1), ue = /* @__PURE__ */ e(M(), 1), de = (/* @__P
|
|
|
33834
33834
|
14,
|
|
33835
33835
|
1,
|
|
33836
33836
|
15
|
|
33837
|
-
]),
|
|
33838
|
-
for (var n = new
|
|
33839
|
-
for (var i = new
|
|
33837
|
+
]), ye = function(e, t) {
|
|
33838
|
+
for (var n = new me(31), r = 0; r < 31; ++r) n[r] = t += 1 << e[r - 1];
|
|
33839
|
+
for (var i = new he(n[30]), r = 1; r < 30; ++r) for (var a = n[r]; a < n[r + 1]; ++a) i[a] = a - n[r] << 5 | r;
|
|
33840
33840
|
return {
|
|
33841
33841
|
b: n,
|
|
33842
33842
|
r: i
|
|
33843
33843
|
};
|
|
33844
|
-
},
|
|
33845
|
-
|
|
33846
|
-
var
|
|
33847
|
-
|
|
33848
|
-
for (var
|
|
33849
|
-
var
|
|
33850
|
-
|
|
33844
|
+
}, be = ye(ge, 2), xe = be.b, Se = be.r;
|
|
33845
|
+
xe[28] = 258, Se[258] = 28;
|
|
33846
|
+
var Ce = ye(_e, 0), we = Ce.b;
|
|
33847
|
+
Ce.r;
|
|
33848
|
+
for (var Te = new me(32768), Ee = 0; Ee < 32768; ++Ee) {
|
|
33849
|
+
var De = (Ee & 43690) >> 1 | (Ee & 21845) << 1;
|
|
33850
|
+
De = (De & 52428) >> 2 | (De & 13107) << 2, De = (De & 61680) >> 4 | (De & 3855) << 4, Te[Ee] = ((De & 65280) >> 8 | (De & 255) << 8) >> 1;
|
|
33851
33851
|
}
|
|
33852
|
-
for (var
|
|
33853
|
-
for (var r = e.length, i = 0, a = new
|
|
33854
|
-
var o = new
|
|
33852
|
+
for (var Oe = (function(e, t, n) {
|
|
33853
|
+
for (var r = e.length, i = 0, a = new me(t); i < r; ++i) e[i] && ++a[e[i] - 1];
|
|
33854
|
+
var o = new me(t);
|
|
33855
33855
|
for (i = 1; i < t; ++i) o[i] = o[i - 1] + a[i - 1] << 1;
|
|
33856
33856
|
var s;
|
|
33857
33857
|
if (n) {
|
|
33858
|
-
s = new
|
|
33858
|
+
s = new me(1 << t);
|
|
33859
33859
|
var c = 15 - t;
|
|
33860
|
-
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[
|
|
33861
|
-
} else for (s = new
|
|
33860
|
+
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[Te[d] >> c] = l;
|
|
33861
|
+
} else for (s = new me(r), i = 0; i < r; ++i) e[i] && (s[i] = Te[o[e[i] - 1]++] >> 15 - e[i]);
|
|
33862
33862
|
return s;
|
|
33863
|
-
}),
|
|
33864
|
-
for (var
|
|
33865
|
-
for (var
|
|
33866
|
-
for (var
|
|
33867
|
-
for (var
|
|
33868
|
-
var
|
|
33863
|
+
}), ke = new pe(288), Ee = 0; Ee < 144; ++Ee) ke[Ee] = 8;
|
|
33864
|
+
for (var Ee = 144; Ee < 256; ++Ee) ke[Ee] = 9;
|
|
33865
|
+
for (var Ee = 256; Ee < 280; ++Ee) ke[Ee] = 7;
|
|
33866
|
+
for (var Ee = 280; Ee < 288; ++Ee) ke[Ee] = 8;
|
|
33867
|
+
for (var Ae = new pe(32), Ee = 0; Ee < 32; ++Ee) Ae[Ee] = 5;
|
|
33868
|
+
var je = /*#__PURE__*/ Oe(ke, 9, 1), Me = /*#__PURE__*/ Oe(Ae, 5, 1), Ne = function(e) {
|
|
33869
33869
|
for (var t = e[0], n = 1; n < e.length; ++n) e[n] > t && (t = e[n]);
|
|
33870
33870
|
return t;
|
|
33871
|
-
},
|
|
33871
|
+
}, Pe = function(e, t, n) {
|
|
33872
33872
|
var r = t / 8 | 0;
|
|
33873
33873
|
return (e[r] | e[r + 1] << 8) >> (t & 7) & n;
|
|
33874
|
-
},
|
|
33874
|
+
}, Fe = function(e, t) {
|
|
33875
33875
|
var n = t / 8 | 0;
|
|
33876
33876
|
return (e[n] | e[n + 1] << 8 | e[n + 2] << 16) >> (t & 7);
|
|
33877
|
-
},
|
|
33877
|
+
}, Ie = function(e) {
|
|
33878
33878
|
return (e + 7) / 8 | 0;
|
|
33879
|
-
},
|
|
33880
|
-
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new
|
|
33881
|
-
},
|
|
33879
|
+
}, Le = function(e, t, n) {
|
|
33880
|
+
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new pe(e.subarray(t, n));
|
|
33881
|
+
}, Re = [
|
|
33882
33882
|
"unexpected EOF",
|
|
33883
33883
|
"invalid block type",
|
|
33884
33884
|
"invalid length/literal",
|
|
@@ -33893,100 +33893,100 @@ var Ae = /*#__PURE__*/ De(Oe, 9, 1), je = /*#__PURE__*/ De(ke, 5, 1), Me = funct
|
|
|
33893
33893
|
"filename too long",
|
|
33894
33894
|
"stream finishing",
|
|
33895
33895
|
"invalid zip data"
|
|
33896
|
-
],
|
|
33897
|
-
var r = Error(t ||
|
|
33898
|
-
if (r.code = e, Error.captureStackTrace && Error.captureStackTrace(r,
|
|
33896
|
+
], F = function(e, t, n) {
|
|
33897
|
+
var r = Error(t || Re[e]);
|
|
33898
|
+
if (r.code = e, Error.captureStackTrace && Error.captureStackTrace(r, F), !n) throw r;
|
|
33899
33899
|
return r;
|
|
33900
|
-
},
|
|
33900
|
+
}, ze = function(e, t, n, r) {
|
|
33901
33901
|
var i = e.length, a = r ? r.length : 0;
|
|
33902
|
-
if (!i || t.f && !t.l) return n || new
|
|
33902
|
+
if (!i || t.f && !t.l) return n || new pe(0);
|
|
33903
33903
|
var o = !n, s = o || t.i != 2, c = t.i;
|
|
33904
|
-
o && (n = new
|
|
33904
|
+
o && (n = new pe(i * 3));
|
|
33905
33905
|
var l = function(e) {
|
|
33906
33906
|
var t = n.length;
|
|
33907
33907
|
if (e > t) {
|
|
33908
|
-
var r = new
|
|
33908
|
+
var r = new pe(Math.max(t * 2, e));
|
|
33909
33909
|
r.set(n), n = r;
|
|
33910
33910
|
}
|
|
33911
33911
|
}, 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;
|
|
33912
33912
|
do {
|
|
33913
33913
|
if (!p) {
|
|
33914
|
-
u =
|
|
33915
|
-
var v =
|
|
33914
|
+
u = Pe(e, d, 1);
|
|
33915
|
+
var v = Pe(e, d + 1, 3);
|
|
33916
33916
|
if (d += 3, !v) {
|
|
33917
|
-
var y =
|
|
33917
|
+
var y = Ie(d) + 4, b = e[y - 4] | e[y - 3] << 8, x = y + b;
|
|
33918
33918
|
if (x > i) {
|
|
33919
|
-
c &&
|
|
33919
|
+
c && F(0);
|
|
33920
33920
|
break;
|
|
33921
33921
|
}
|
|
33922
33922
|
s && l(f + b), n.set(e.subarray(y, x), f), t.b = f += b, t.p = d = x * 8, t.f = u;
|
|
33923
33923
|
continue;
|
|
33924
|
-
} else if (v == 1) p =
|
|
33924
|
+
} else if (v == 1) p = je, m = Me, h = 9, g = 5;
|
|
33925
33925
|
else if (v == 2) {
|
|
33926
|
-
var S =
|
|
33926
|
+
var S = Pe(e, d, 31) + 257, C = Pe(e, d + 10, 15) + 4, w = S + Pe(e, d + 5, 31) + 1;
|
|
33927
33927
|
d += 14;
|
|
33928
|
-
for (var T = new
|
|
33928
|
+
for (var T = new pe(w), E = new pe(19), D = 0; D < C; ++D) E[ve[D]] = Pe(e, d + D * 3, 7);
|
|
33929
33929
|
d += C * 3;
|
|
33930
|
-
for (var O =
|
|
33931
|
-
var j = A[
|
|
33930
|
+
for (var O = Ne(E), k = (1 << O) - 1, A = Oe(E, O, 1), D = 0; D < w;) {
|
|
33931
|
+
var j = A[Pe(e, d, k)];
|
|
33932
33932
|
d += j & 15;
|
|
33933
33933
|
var y = j >> 4;
|
|
33934
33934
|
if (y < 16) T[D++] = y;
|
|
33935
33935
|
else {
|
|
33936
|
-
var M = 0,
|
|
33937
|
-
for (y == 16 ? (
|
|
33936
|
+
var M = 0, ee = 0;
|
|
33937
|
+
for (y == 16 ? (ee = 3 + Pe(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (ee = 3 + Pe(e, d, 7), d += 3) : y == 18 && (ee = 11 + Pe(e, d, 127), d += 7); ee--;) T[D++] = M;
|
|
33938
33938
|
}
|
|
33939
33939
|
}
|
|
33940
|
-
var
|
|
33941
|
-
h =
|
|
33942
|
-
} else
|
|
33940
|
+
var te = T.subarray(0, S), N = T.subarray(S);
|
|
33941
|
+
h = Ne(te), g = Ne(N), p = Oe(te, h, 1), m = Oe(N, g, 1);
|
|
33942
|
+
} else F(1);
|
|
33943
33943
|
if (d > _) {
|
|
33944
|
-
c &&
|
|
33944
|
+
c && F(0);
|
|
33945
33945
|
break;
|
|
33946
33946
|
}
|
|
33947
33947
|
}
|
|
33948
33948
|
s && l(f + 131072);
|
|
33949
|
-
for (var
|
|
33950
|
-
var M = p[
|
|
33949
|
+
for (var ne = (1 << h) - 1, re = (1 << g) - 1, ie = d;; ie = d) {
|
|
33950
|
+
var M = p[Fe(e, d) & ne], ae = M >> 4;
|
|
33951
33951
|
if (d += M & 15, d > _) {
|
|
33952
|
-
c &&
|
|
33952
|
+
c && F(0);
|
|
33953
33953
|
break;
|
|
33954
33954
|
}
|
|
33955
|
-
if (M ||
|
|
33956
|
-
else if (
|
|
33957
|
-
|
|
33955
|
+
if (M || F(2), ae < 256) n[f++] = ae;
|
|
33956
|
+
else if (ae == 256) {
|
|
33957
|
+
ie = d, p = null;
|
|
33958
33958
|
break;
|
|
33959
33959
|
} else {
|
|
33960
|
-
var
|
|
33961
|
-
if (
|
|
33962
|
-
var D =
|
|
33963
|
-
|
|
33964
|
-
}
|
|
33965
|
-
var
|
|
33966
|
-
|
|
33967
|
-
var
|
|
33968
|
-
if (
|
|
33969
|
-
var
|
|
33970
|
-
|
|
33960
|
+
var oe = ae - 254;
|
|
33961
|
+
if (ae > 264) {
|
|
33962
|
+
var D = ae - 257, se = ge[D];
|
|
33963
|
+
oe = Pe(e, d, (1 << se) - 1) + xe[D], d += se;
|
|
33964
|
+
}
|
|
33965
|
+
var ce = m[Fe(e, d) & re], le = ce >> 4;
|
|
33966
|
+
ce || F(3), d += ce & 15;
|
|
33967
|
+
var N = we[le];
|
|
33968
|
+
if (le > 3) {
|
|
33969
|
+
var se = _e[le];
|
|
33970
|
+
N += Fe(e, d) & (1 << se) - 1, d += se;
|
|
33971
33971
|
}
|
|
33972
33972
|
if (d > _) {
|
|
33973
|
-
c &&
|
|
33973
|
+
c && F(0);
|
|
33974
33974
|
break;
|
|
33975
33975
|
}
|
|
33976
33976
|
s && l(f + 131072);
|
|
33977
|
-
var
|
|
33978
|
-
if (f <
|
|
33979
|
-
var
|
|
33980
|
-
for (
|
|
33977
|
+
var ue = f + oe;
|
|
33978
|
+
if (f < N) {
|
|
33979
|
+
var P = a - N, de = Math.min(N, ue);
|
|
33980
|
+
for (P + f < 0 && F(3); f < de; ++f) n[f] = r[P + f];
|
|
33981
33981
|
}
|
|
33982
|
-
for (; f <
|
|
33982
|
+
for (; f < ue; ++f) n[f] = n[f - N];
|
|
33983
33983
|
}
|
|
33984
33984
|
}
|
|
33985
|
-
t.l = p, t.p =
|
|
33985
|
+
t.l = p, t.p = ie, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
|
|
33986
33986
|
} while (!u);
|
|
33987
|
-
return f != n.length && o ?
|
|
33988
|
-
},
|
|
33989
|
-
(e[0] != 31 || e[1] != 139 || e[2] != 8) &&
|
|
33987
|
+
return f != n.length && o ? Le(n, 0, f) : n.subarray(0, f);
|
|
33988
|
+
}, Be = /*#__PURE__*/ new pe(0), I = function(e) {
|
|
33989
|
+
(e[0] != 31 || e[1] != 139 || e[2] != 8) && F(6, "invalid gzip data");
|
|
33990
33990
|
var t = e[3], n = 10;
|
|
33991
33991
|
t & 4 && (n += (e[10] | e[11] << 8) + 2);
|
|
33992
33992
|
for (var r = (t >> 3 & 1) + (t >> 4 & 1); r > 0; r -= !e[n++]);
|
|
@@ -33995,24 +33995,24 @@ var Ae = /*#__PURE__*/ De(Oe, 9, 1), je = /*#__PURE__*/ De(ke, 5, 1), Me = funct
|
|
|
33995
33995
|
var t = e.length;
|
|
33996
33996
|
return (e[t - 4] | e[t - 3] << 8 | e[t - 2] << 16 | e[t - 1] << 24) >>> 0;
|
|
33997
33997
|
}, He = function(e, t) {
|
|
33998
|
-
return ((e[0] & 15) != 8 || e[0] >> 4 > 7 || (e[0] << 8 | e[1]) % 31) &&
|
|
33998
|
+
return ((e[0] & 15) != 8 || e[0] >> 4 > 7 || (e[0] << 8 | e[1]) % 31) && F(6, "invalid zlib data"), (e[1] >> 5 & 1) == +!t && F(6, "invalid zlib data: " + (e[1] & 32 ? "need" : "unexpected") + " dictionary"), (e[1] >> 3 & 4) + 2;
|
|
33999
33999
|
};
|
|
34000
34000
|
function Ue(e, t) {
|
|
34001
|
-
return
|
|
34001
|
+
return ze(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
34002
34002
|
}
|
|
34003
34003
|
function We(e, t) {
|
|
34004
|
-
var n =
|
|
34005
|
-
return n + 8 > e.length &&
|
|
34004
|
+
var n = I(e);
|
|
34005
|
+
return n + 8 > e.length && F(6, "invalid gzip data"), ze(e.subarray(n, -8), { i: 2 }, t && t.out || new pe(Ve(e)), t && t.dictionary);
|
|
34006
34006
|
}
|
|
34007
34007
|
function Ge(e, t) {
|
|
34008
|
-
return
|
|
34008
|
+
return ze(e.subarray(He(e, t && t.dictionary), -4), { i: 2 }, t && t.out, t && t.dictionary);
|
|
34009
34009
|
}
|
|
34010
34010
|
function Ke(e, t) {
|
|
34011
34011
|
return e[0] == 31 && e[1] == 139 && e[2] == 8 ? We(e, t) : (e[0] & 15) != 8 || e[0] >> 4 > 7 || (e[0] << 8 | e[1]) % 31 ? Ue(e, t) : Ge(e, t);
|
|
34012
34012
|
}
|
|
34013
34013
|
var qe = typeof TextDecoder < "u" && /*#__PURE__*/ new TextDecoder();
|
|
34014
34014
|
try {
|
|
34015
|
-
qe.decode(
|
|
34015
|
+
qe.decode(Be, { stream: !0 });
|
|
34016
34016
|
} catch {}
|
|
34017
34017
|
//#endregion
|
|
34018
34018
|
//#region ../../node_modules/.pnpm/pmtiles@4.4.1/node_modules/pmtiles/dist/esm/index.js
|
|
@@ -34624,23 +34624,23 @@ function Pt() {
|
|
|
34624
34624
|
if (!Et) {
|
|
34625
34625
|
Et = new B();
|
|
34626
34626
|
try {
|
|
34627
|
-
(0,
|
|
34627
|
+
(0, fe.addProtocol)("pmtiles", Et.tile);
|
|
34628
34628
|
} catch (e) {
|
|
34629
34629
|
console.warn("Maplibre PMTiles protocol registration failed.", e);
|
|
34630
34630
|
}
|
|
34631
34631
|
}
|
|
34632
34632
|
}
|
|
34633
34633
|
function Ft({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOptions: i, onRendererReady: a, onMapDimLayerReady: o, onMapLoadError: s }) {
|
|
34634
|
-
let c = (0,
|
|
34634
|
+
let c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(a), f = (0, P.useRef)(o), m = (0, P.useRef)(s), h = (0, P.useRef)({
|
|
34635
34635
|
sceneDef: e,
|
|
34636
34636
|
geoConfig: t,
|
|
34637
34637
|
staticTransform: n,
|
|
34638
34638
|
tileSource: r,
|
|
34639
34639
|
mapOptions: i
|
|
34640
34640
|
});
|
|
34641
|
-
return (0,
|
|
34641
|
+
return (0, P.useEffect)(() => {
|
|
34642
34642
|
d.current = a, f.current = o, m.current = s;
|
|
34643
|
-
}), (0,
|
|
34643
|
+
}), (0, P.useEffect)(() => {
|
|
34644
34644
|
var e, t;
|
|
34645
34645
|
if (!c.current) return;
|
|
34646
34646
|
let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } = h.current, s = !1, g = { ...n };
|
|
@@ -34659,7 +34659,7 @@ function Ft({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34659
34659
|
} : {
|
|
34660
34660
|
center: r.center,
|
|
34661
34661
|
zoom: r.zoom
|
|
34662
|
-
}, y = xt(a.style), b = new
|
|
34662
|
+
}, y = xt(a.style), b = new fe.Map({
|
|
34663
34663
|
container: c.current,
|
|
34664
34664
|
...v,
|
|
34665
34665
|
bearing: r.bearing,
|
|
@@ -34759,32 +34759,32 @@ function Ht(e, t, n) {
|
|
|
34759
34759
|
}
|
|
34760
34760
|
function Ut(e, t) {
|
|
34761
34761
|
let n = [
|
|
34762
|
-
|
|
34763
|
-
|
|
34764
|
-
|
|
34765
|
-
|
|
34762
|
+
l(e.min.x, e.min.y, t),
|
|
34763
|
+
l(e.max.x, e.min.y, t),
|
|
34764
|
+
l(e.max.x, e.max.y, t),
|
|
34765
|
+
l(e.min.x, e.max.y, t)
|
|
34766
34766
|
], r = n.map(([e]) => e), i = n.map(([, e]) => e);
|
|
34767
34767
|
return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
|
|
34768
34768
|
}
|
|
34769
34769
|
var Wt = 512;
|
|
34770
34770
|
function Gt(e, t, n, r, i) {
|
|
34771
34771
|
let a = [
|
|
34772
|
-
|
|
34773
|
-
|
|
34774
|
-
|
|
34775
|
-
|
|
34776
|
-
].map(([e, t]) =>
|
|
34772
|
+
l(e.min.x, e.min.y, t),
|
|
34773
|
+
l(e.max.x, e.min.y, t),
|
|
34774
|
+
l(e.max.x, e.max.y, t),
|
|
34775
|
+
l(e.min.x, e.max.y, t)
|
|
34776
|
+
].map(([e, t]) => fe.MercatorCoordinate.fromLngLat({
|
|
34777
34777
|
lng: e,
|
|
34778
34778
|
lat: t
|
|
34779
34779
|
}));
|
|
34780
34780
|
if (!a.every(({ x: e, y: t }) => Number.isFinite(e) && Number.isFinite(t))) return null;
|
|
34781
|
-
let o = -n * Math.PI / 180, s = Math.cos(o), c = Math.sin(o),
|
|
34781
|
+
let o = -n * Math.PI / 180, s = Math.cos(o), c = Math.sin(o), u = a.map(({ x: e, y: t }) => e * s - t * c), d = a.map(({ x: e, y: t }) => e * c + t * s), f = Math.max(...u) - Math.min(...u), p = Math.max(...d) - Math.min(...d);
|
|
34782
34782
|
if (f <= 0 || p <= 0) return null;
|
|
34783
34783
|
let m = r.width - i.left - i.right, h = r.height - i.top - i.bottom;
|
|
34784
34784
|
if (m <= 0 || h <= 0) return null;
|
|
34785
34785
|
let g = Math.min(m / (f * Wt), h / (p * Wt));
|
|
34786
34786
|
if (!(g > 0)) return null;
|
|
34787
|
-
let _ = Wt * g, v = (Math.min(...
|
|
34787
|
+
let _ = Wt * g, v = (Math.min(...u) + Math.max(...u)) / 2 - (i.left - i.right) / 2 / _, y = (Math.min(...d) + Math.max(...d)) / 2 - (i.top - i.bottom) / 2 / _, { lng: b, lat: x } = new fe.MercatorCoordinate(v * s + y * c, -v * c + y * s).toLngLat();
|
|
34788
34788
|
return {
|
|
34789
34789
|
center: [b, x],
|
|
34790
34790
|
zoom: Math.log2(g)
|
|
@@ -34799,7 +34799,7 @@ function Kt(e, t) {
|
|
|
34799
34799
|
};
|
|
34800
34800
|
}
|
|
34801
34801
|
function qt(e = 0) {
|
|
34802
|
-
let t =
|
|
34802
|
+
let t = E.canvasVisibleRectPx, n = E.screenSize;
|
|
34803
34803
|
return !t || !n ? {
|
|
34804
34804
|
top: e,
|
|
34805
34805
|
bottom: e,
|
|
@@ -34818,8 +34818,8 @@ function Jt(e, t, n) {
|
|
|
34818
34818
|
}
|
|
34819
34819
|
function Yt() {
|
|
34820
34820
|
var e, t;
|
|
34821
|
-
if (!(!(
|
|
34822
|
-
let n =
|
|
34821
|
+
if (!(!(h == null || (e = h.properties) == null) && e.config)) return null;
|
|
34822
|
+
let n = h.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = f(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
|
|
34823
34823
|
return {
|
|
34824
34824
|
center: [r, i],
|
|
34825
34825
|
bearing: o,
|
|
@@ -34858,7 +34858,7 @@ function Xt(e, t, n, r = {}) {
|
|
|
34858
34858
|
e.easeTo(g);
|
|
34859
34859
|
return;
|
|
34860
34860
|
}
|
|
34861
|
-
let _ = e.getBounds().extend(
|
|
34861
|
+
let _ = e.getBounds().extend(fe.LngLatBounds.convert(o)), v = e.cameraForBounds(_, {
|
|
34862
34862
|
padding: c,
|
|
34863
34863
|
bearing: n.bearing
|
|
34864
34864
|
});
|
|
@@ -34880,9 +34880,9 @@ function Xt(e, t, n, r = {}) {
|
|
|
34880
34880
|
}
|
|
34881
34881
|
//#endregion
|
|
34882
34882
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
34883
|
-
var Zt =
|
|
34883
|
+
var Zt = E, Qt = 15, $t = 24;
|
|
34884
34884
|
function en(e) {
|
|
34885
|
-
return
|
|
34885
|
+
return M(e, x(e, O));
|
|
34886
34886
|
}
|
|
34887
34887
|
function tn(e, t) {
|
|
34888
34888
|
return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
|
|
@@ -34890,9 +34890,9 @@ function tn(e, t) {
|
|
|
34890
34890
|
function nn(e, t, n) {
|
|
34891
34891
|
var r;
|
|
34892
34892
|
if (n.length !== 1) return !1;
|
|
34893
|
-
let i = (r = n[0]) == null ? void 0 : r.id, a =
|
|
34893
|
+
let i = (r = n[0]) == null ? void 0 : r.id, a = _.poiMarkerStore.markers.find((e) => e.boothId === i);
|
|
34894
34894
|
if (!a) return !1;
|
|
34895
|
-
let o =
|
|
34895
|
+
let o = l(a.center.x, a.center.y, t.gpsConfig);
|
|
34896
34896
|
return Jt(e, o, qt($t)) || e.easeTo({
|
|
34897
34897
|
center: o,
|
|
34898
34898
|
zoom: tn(e, Qt),
|
|
@@ -34902,7 +34902,7 @@ function nn(e, t, n) {
|
|
|
34902
34902
|
}), !0;
|
|
34903
34903
|
}
|
|
34904
34904
|
function rn(e, t, n) {
|
|
34905
|
-
|
|
34905
|
+
N(() => Zt.moveToBooths, (n) => {
|
|
34906
34906
|
let r = e.current;
|
|
34907
34907
|
if (!n || !r || !t) return;
|
|
34908
34908
|
let i = n.filter((e) => e.rect);
|
|
@@ -34911,48 +34911,48 @@ function rn(e, t, n) {
|
|
|
34911
34911
|
Zt.moveToBooths = null;
|
|
34912
34912
|
return;
|
|
34913
34913
|
}
|
|
34914
|
-
Xt(r, en(
|
|
34914
|
+
Xt(r, en(D.fromUnion(...i.map((e) => e.rect))), t), Zt.moveToBooths = null;
|
|
34915
34915
|
}
|
|
34916
|
-
}),
|
|
34916
|
+
}), N(() => Zt.moveToRect, (n) => {
|
|
34917
34917
|
let r = e.current;
|
|
34918
34918
|
!n || !r || !t || (Xt(r, n, t, { paddingPercent: Zt.moveToRectPaddingPercent }), Zt.moveToRect = null, Zt.moveToRectPaddingPercent = null);
|
|
34919
|
-
}),
|
|
34919
|
+
}), N(() => Zt.zoomBy, (t) => {
|
|
34920
34920
|
let n = e.current;
|
|
34921
34921
|
!t || !n || (n.flyTo({
|
|
34922
34922
|
zoom: n.getZoom() + (t > 1 ? .5 : -.5),
|
|
34923
34923
|
animate: !0,
|
|
34924
34924
|
duration: 500
|
|
34925
34925
|
}), Zt.zoomBy = null);
|
|
34926
|
-
}),
|
|
34927
|
-
let r = e.current, i =
|
|
34926
|
+
}), N(() => E.moveToLocation, (n) => {
|
|
34927
|
+
let r = e.current, i = _.routeStore.currentPosition;
|
|
34928
34928
|
if (!n || !r || !i) return;
|
|
34929
34929
|
let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o), c;
|
|
34930
34930
|
if (s) c = [a, o];
|
|
34931
34931
|
else {
|
|
34932
34932
|
if (!t) return;
|
|
34933
|
-
c =
|
|
34933
|
+
c = l(i.x, i.y, t.gpsConfig);
|
|
34934
34934
|
}
|
|
34935
34935
|
r.flyTo({
|
|
34936
34936
|
center: c,
|
|
34937
34937
|
animate: !0,
|
|
34938
34938
|
duration: 1e3
|
|
34939
34939
|
}), r.once("moveend", () => {
|
|
34940
|
-
|
|
34940
|
+
E.moveToLocation = !1;
|
|
34941
34941
|
});
|
|
34942
|
-
}),
|
|
34942
|
+
}), N(() => E.centerMap, (r) => {
|
|
34943
34943
|
let i = e.current;
|
|
34944
34944
|
if (!(!r || !i || !t)) {
|
|
34945
|
-
if (!(
|
|
34946
|
-
let { rect: e } =
|
|
34947
|
-
layerViewbox:
|
|
34948
|
-
explicitArea:
|
|
34949
|
-
layerRectangle:
|
|
34945
|
+
if (!(E.list.type === "search" && !E.list.text)) {
|
|
34946
|
+
let { rect: e } = k({
|
|
34947
|
+
layerViewbox: _.layerStore.viewboxRectangle,
|
|
34948
|
+
explicitArea: A ? O : null,
|
|
34949
|
+
layerRectangle: _.layerStore.rectangle,
|
|
34950
34950
|
sceneDef: n,
|
|
34951
|
-
svgArea:
|
|
34951
|
+
svgArea: O
|
|
34952
34952
|
});
|
|
34953
34953
|
Xt(i, e, t);
|
|
34954
34954
|
}
|
|
34955
|
-
|
|
34955
|
+
E.centerMap = !1;
|
|
34956
34956
|
}
|
|
34957
34957
|
});
|
|
34958
34958
|
}
|
|
@@ -34965,7 +34965,7 @@ function on(e) {
|
|
|
34965
34965
|
function sn(e) {
|
|
34966
34966
|
if (!e || e === "none") return "light";
|
|
34967
34967
|
try {
|
|
34968
|
-
return (0,
|
|
34968
|
+
return (0, de.default)(e).lightness() < an ? "dark" : "light";
|
|
34969
34969
|
} catch {
|
|
34970
34970
|
return "light";
|
|
34971
34971
|
}
|
|
@@ -35002,47 +35002,47 @@ function pn(e, t, n = !1) {
|
|
|
35002
35002
|
}
|
|
35003
35003
|
function mn() {
|
|
35004
35004
|
var e, t, n;
|
|
35005
|
-
let r = (e = (t =
|
|
35006
|
-
return r != null && r.style ? { style: r.style } : r != null && r.styleUrl ? { style: r.styleUrl } : K(
|
|
35005
|
+
let r = (e = (t = _.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
|
|
35006
|
+
return r != null && r.style ? { style: r.style } : r != null && r.styleUrl ? { style: r.styleUrl } : K(h == null || (n = h.properties) == null || (n = n.config) == null ? void 0 : n.style, v.backgroundColor) === "dark" ? cn : q;
|
|
35007
35007
|
}
|
|
35008
35008
|
//#endregion
|
|
35009
35009
|
//#region src/components/Maplibre/useDimming.ts
|
|
35010
35010
|
function hn() {
|
|
35011
|
-
return
|
|
35011
|
+
return E.dimmed && !_.poiMarkerStore.dimSuppressed;
|
|
35012
35012
|
}
|
|
35013
35013
|
function gn(e, t) {
|
|
35014
|
-
let n = (0,
|
|
35015
|
-
(0,
|
|
35014
|
+
let n = (0, P.useRef)(t);
|
|
35015
|
+
(0, P.useEffect)(() => {
|
|
35016
35016
|
n.current = t;
|
|
35017
35017
|
}, [t]);
|
|
35018
|
-
let r = (0,
|
|
35018
|
+
let r = (0, P.useRef)(null), i = (0, P.useRef)(null), a = (0, P.useCallback)((e) => {
|
|
35019
35019
|
var t, n;
|
|
35020
35020
|
let a = hn();
|
|
35021
35021
|
(t = r.current) == null || t.setTarget(a, e), (n = i.current) == null || n.setTarget(a, e);
|
|
35022
35022
|
}, []);
|
|
35023
|
-
return (0,
|
|
35024
|
-
let t =
|
|
35025
|
-
dn(e.current, t *
|
|
35026
|
-
}), a =
|
|
35027
|
-
|
|
35023
|
+
return (0, P.useEffect)(() => {
|
|
35024
|
+
let t = ie((t) => {
|
|
35025
|
+
dn(e.current, t * oe);
|
|
35026
|
+
}), a = ie((e) => {
|
|
35027
|
+
ce(n.current, e * 1);
|
|
35028
35028
|
});
|
|
35029
35029
|
return r.current = t, i.current = a, () => {
|
|
35030
35030
|
t.stop(), a.stop(), r.current = null, i.current = null;
|
|
35031
35031
|
};
|
|
35032
|
-
}, [e]),
|
|
35032
|
+
}, [e]), N(() => hn(), () => a()), {
|
|
35033
35033
|
mapDimAnimatorRef: r,
|
|
35034
35034
|
venueDimAnimatorRef: i,
|
|
35035
35035
|
applyDimmingTarget: a,
|
|
35036
|
-
handleMapDimLayerReady: (0,
|
|
35036
|
+
handleMapDimLayerReady: (0, P.useCallback)((e) => {
|
|
35037
35037
|
var t, n;
|
|
35038
|
-
dn(e, ((t = (n = r.current) == null ? void 0 : n.getValue()) == null ? +!!hn() : t) *
|
|
35038
|
+
dn(e, ((t = (n = r.current) == null ? void 0 : n.getValue()) == null ? +!!hn() : t) * oe);
|
|
35039
35039
|
}, [])
|
|
35040
35040
|
};
|
|
35041
35041
|
}
|
|
35042
35042
|
//#endregion
|
|
35043
35043
|
//#region src/components/Maplibre/useKioskIdleEvents.ts
|
|
35044
35044
|
function _n(e, t) {
|
|
35045
|
-
(0,
|
|
35045
|
+
(0, P.useEffect)(() => {
|
|
35046
35046
|
let n = t.current;
|
|
35047
35047
|
if (!e || !n) return;
|
|
35048
35048
|
let r = !1, i = (e) => {
|
|
@@ -35070,7 +35070,7 @@ function vn(e, t = /* @__PURE__ */ new Map()) {
|
|
|
35070
35070
|
return t;
|
|
35071
35071
|
}
|
|
35072
35072
|
function yn(e) {
|
|
35073
|
-
return e != null && e.shape ?
|
|
35073
|
+
return e != null && e.shape ? j.booths.find((t) => {
|
|
35074
35074
|
var n;
|
|
35075
35075
|
return (n = t.shapes) == null ? void 0 : n.some((t) => t.shape === e.shape);
|
|
35076
35076
|
}) : null;
|
|
@@ -35078,8 +35078,8 @@ function yn(e) {
|
|
|
35078
35078
|
//#endregion
|
|
35079
35079
|
//#region src/components/Maplibre/useLayerVisibilitySync.ts
|
|
35080
35080
|
function bn(e, t, n) {
|
|
35081
|
-
let r = (0,
|
|
35082
|
-
|
|
35081
|
+
let r = (0, P.useRef)(null), i = (0, P.useRef)(null);
|
|
35082
|
+
N(() => _.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
|
|
35083
35083
|
var a, o;
|
|
35084
35084
|
let s = e.scene;
|
|
35085
35085
|
if (!s) return;
|
|
@@ -35088,7 +35088,7 @@ function bn(e, t, n) {
|
|
|
35088
35088
|
defsByName: vn(s.rootLayer)
|
|
35089
35089
|
});
|
|
35090
35090
|
let c = r.current.defsByName, l = [];
|
|
35091
|
-
for (let e of
|
|
35091
|
+
for (let e of _.layerStore.layers) {
|
|
35092
35092
|
let t = c.get(e.name);
|
|
35093
35093
|
if (t != null && t.length) for (let n of t) {
|
|
35094
35094
|
let t = !e.visible;
|
|
@@ -35096,7 +35096,7 @@ function bn(e, t, n) {
|
|
|
35096
35096
|
}
|
|
35097
35097
|
}
|
|
35098
35098
|
l.length && e.update(...l);
|
|
35099
|
-
let u =
|
|
35099
|
+
let u = _.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
|
|
35100
35100
|
if (!u || i.current === u.name) return;
|
|
35101
35101
|
i.current = u.name;
|
|
35102
35102
|
let d = (o = u.viewbox) == null ? u.rect : o;
|
|
@@ -35119,24 +35119,24 @@ var xn = null, Sn = {
|
|
|
35119
35119
|
Dn
|
|
35120
35120
|
], An = kn.filter((e) => e !== Tn), jn = (e) => `expofp-poi-icon-${e}`;
|
|
35121
35121
|
function Mn(e, t, a) {
|
|
35122
|
-
(0,
|
|
35122
|
+
(0, P.useEffect)(() => {
|
|
35123
35123
|
var o;
|
|
35124
35124
|
if (!w()) return;
|
|
35125
35125
|
let s = t.current;
|
|
35126
35126
|
if (!e || !s || !a) return;
|
|
35127
|
-
let { gpsConfig: c } = a,
|
|
35128
|
-
s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio:
|
|
35127
|
+
let { gpsConfig: c } = a, u = /* @__PURE__ */ new Set(), d = window.devicePixelRatio || 1, f = m(36, d, ((o = v.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), p = (e) => l(e.center.x, e.center.y, c), h = (e, t) => {
|
|
35128
|
+
s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: d }), u.add(e);
|
|
35129
35129
|
}, g = (e) => {
|
|
35130
|
-
let t =
|
|
35130
|
+
let t = _.poiMarkerStore.markers, n = new Set(t.map((e) => jn(e.boothId)));
|
|
35131
35131
|
n.add(On);
|
|
35132
|
-
for (let e of [...
|
|
35132
|
+
for (let e of [...u]) n.has(e) || (s.hasImage(e) && s.removeImage(e), u.delete(e));
|
|
35133
35133
|
for (let n of t) {
|
|
35134
35134
|
let t = jn(n.boothId);
|
|
35135
|
-
(e || !
|
|
35135
|
+
(e || !u.has(t)) && h(t, n.icon);
|
|
35136
35136
|
}
|
|
35137
|
-
|
|
35138
|
-
},
|
|
35139
|
-
let e =
|
|
35137
|
+
u.has(On) || h(On, f);
|
|
35138
|
+
}, y = () => {
|
|
35139
|
+
let e = _.poiMarkerStore.selectedMarkerId, t = _.poiMarkerStore.outdoorFilter, n = !t.active, r = _.poiMarkerStore.markers;
|
|
35140
35140
|
return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
|
|
35141
35141
|
cluster: n,
|
|
35142
35142
|
data: {
|
|
@@ -35145,7 +35145,7 @@ function Mn(e, t, a) {
|
|
|
35145
35145
|
type: "Feature",
|
|
35146
35146
|
geometry: {
|
|
35147
35147
|
type: "Point",
|
|
35148
|
-
coordinates:
|
|
35148
|
+
coordinates: p(t)
|
|
35149
35149
|
},
|
|
35150
35150
|
properties: {
|
|
35151
35151
|
boothId: t.boothId,
|
|
@@ -35155,7 +35155,7 @@ function Mn(e, t, a) {
|
|
|
35155
35155
|
}))
|
|
35156
35156
|
}
|
|
35157
35157
|
};
|
|
35158
|
-
},
|
|
35158
|
+
}, b = () => {
|
|
35159
35159
|
var e, t, n;
|
|
35160
35160
|
let r = null;
|
|
35161
35161
|
for (let n of (e = (t = s.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
|
|
@@ -35168,17 +35168,17 @@ function Mn(e, t, a) {
|
|
|
35168
35168
|
}
|
|
35169
35169
|
}
|
|
35170
35170
|
return (n = r) == null ? ["Noto Sans Regular"] : n;
|
|
35171
|
-
},
|
|
35171
|
+
}, x = null, S = () => {
|
|
35172
35172
|
for (let e of kn) s.getLayer(e) && s.removeLayer(e);
|
|
35173
|
-
s.getSource(Cn) && s.removeSource(Cn),
|
|
35174
|
-
},
|
|
35175
|
-
if (
|
|
35173
|
+
s.getSource(Cn) && s.removeSource(Cn), x = null;
|
|
35174
|
+
}, C = (e, t) => {
|
|
35175
|
+
if (x !== null && x !== t && S(), s.getSource(Cn) || (s.addSource(Cn, {
|
|
35176
35176
|
type: "geojson",
|
|
35177
35177
|
data: e,
|
|
35178
35178
|
cluster: t,
|
|
35179
35179
|
clusterRadius: 50,
|
|
35180
35180
|
clusterMinPoints: 3
|
|
35181
|
-
}),
|
|
35181
|
+
}), x = t), s.getLayer(wn)) return;
|
|
35182
35182
|
let i = ["!", ["has", "point_count"]], a = [
|
|
35183
35183
|
"==",
|
|
35184
35184
|
[
|
|
@@ -35207,7 +35207,7 @@ function Mn(e, t, a) {
|
|
|
35207
35207
|
filter: ["has", "point_count"],
|
|
35208
35208
|
layout: {
|
|
35209
35209
|
"text-field": ["get", "point_count_abbreviated"],
|
|
35210
|
-
"text-font":
|
|
35210
|
+
"text-font": b(),
|
|
35211
35211
|
"text-size": 14,
|
|
35212
35212
|
"text-allow-overlap": !0,
|
|
35213
35213
|
"text-ignore-placement": !0
|
|
@@ -35244,20 +35244,20 @@ function Mn(e, t, a) {
|
|
|
35244
35244
|
"icon-ignore-placement": !0
|
|
35245
35245
|
}
|
|
35246
35246
|
});
|
|
35247
|
-
},
|
|
35247
|
+
}, T = () => {
|
|
35248
35248
|
if (!s.getLayer(wn)) return;
|
|
35249
|
-
let e = hn() ? 1 -
|
|
35249
|
+
let e = hn() ? 1 - oe : 1;
|
|
35250
35250
|
s.setPaintProperty(wn, "circle-opacity", e), s.setPaintProperty(wn, "circle-stroke-opacity", e), s.setPaintProperty(Tn, "text-opacity", e), s.setPaintProperty(En, "icon-opacity", e), s.setPaintProperty(Dn, "icon-opacity", e);
|
|
35251
|
-
},
|
|
35251
|
+
}, E = (e = !1) => {
|
|
35252
35252
|
var t;
|
|
35253
35253
|
g(e);
|
|
35254
|
-
let { cluster: n, data: r } =
|
|
35255
|
-
|
|
35256
|
-
},
|
|
35254
|
+
let { cluster: n, data: r } = y();
|
|
35255
|
+
C(r, n), (t = s.getSource(Cn)) == null || t.setData(r), T();
|
|
35256
|
+
}, O = (e) => {
|
|
35257
35257
|
if (!e.length) return;
|
|
35258
35258
|
let t = qt(50);
|
|
35259
|
-
if (e.every((e) => Jt(s,
|
|
35260
|
-
let n = Ut(
|
|
35259
|
+
if (e.every((e) => Jt(s, p(e), t))) return;
|
|
35260
|
+
let n = Ut(D.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
|
|
35261
35261
|
padding: t,
|
|
35262
35262
|
bearing: a.bearing
|
|
35263
35263
|
});
|
|
@@ -35268,12 +35268,12 @@ function Mn(e, t, a) {
|
|
|
35268
35268
|
duration: 500,
|
|
35269
35269
|
essential: !0
|
|
35270
35270
|
});
|
|
35271
|
-
},
|
|
35271
|
+
}, k = (e) => {
|
|
35272
35272
|
var t;
|
|
35273
35273
|
let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
|
|
35274
35274
|
if (typeof n != "number") return;
|
|
35275
|
-
let r =
|
|
35276
|
-
r &&
|
|
35275
|
+
let r = _.boothStore.boothById.get(n);
|
|
35276
|
+
r && _.clickBooth(r);
|
|
35277
35277
|
}, A = (e) => {
|
|
35278
35278
|
var t, n, r;
|
|
35279
35279
|
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(Cn);
|
|
@@ -35287,24 +35287,24 @@ function Mn(e, t, a) {
|
|
|
35287
35287
|
});
|
|
35288
35288
|
});
|
|
35289
35289
|
};
|
|
35290
|
-
s.on("click", En,
|
|
35290
|
+
s.on("click", En, k), s.on("click", Dn, k), s.on("click", wn, A), Sn.set((e, t) => {
|
|
35291
35291
|
let n = An.filter((e) => !!s.getLayer(e));
|
|
35292
35292
|
if (!n.length) return !1;
|
|
35293
|
-
let r = s.project(
|
|
35293
|
+
let r = s.project(l(e, t, c));
|
|
35294
35294
|
return s.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
|
|
35295
35295
|
});
|
|
35296
35296
|
let j = () => {
|
|
35297
|
-
|
|
35297
|
+
u.clear(), E(!0);
|
|
35298
35298
|
};
|
|
35299
35299
|
s.on("style.load", j);
|
|
35300
|
-
let M = i(() =>
|
|
35301
|
-
|
|
35302
|
-
}),
|
|
35303
|
-
return
|
|
35304
|
-
M(),
|
|
35300
|
+
let M = i(() => _.poiMarkerStore.markers, () => E(!0)), ee = i(() => _.poiMarkerStore.selectedMarkerId, () => E()), te = i(() => _.poiMarkerStore.outdoorFilter.key, () => {
|
|
35301
|
+
E(), O(_.poiMarkerStore.outdoorFilter.matchingMarkers);
|
|
35302
|
+
}), N = i(() => hn(), () => T());
|
|
35303
|
+
return E(!0), () => {
|
|
35304
|
+
M(), ee(), te(), N(), Sn.set(null), s.off("style.load", j), s.off("click", En, k), s.off("click", Dn, k), s.off("click", wn, A);
|
|
35305
35305
|
try {
|
|
35306
|
-
|
|
35307
|
-
for (let e of
|
|
35306
|
+
S();
|
|
35307
|
+
for (let e of u) s.hasImage(e) && s.removeImage(e);
|
|
35308
35308
|
} catch {}
|
|
35309
35309
|
};
|
|
35310
35310
|
}, [
|
|
@@ -35315,36 +35315,36 @@ function Mn(e, t, a) {
|
|
|
35315
35315
|
}
|
|
35316
35316
|
//#endregion
|
|
35317
35317
|
//#region src/components/Maplibre/useRendererEvents.ts
|
|
35318
|
-
var Nn =
|
|
35318
|
+
var Nn = E;
|
|
35319
35319
|
function Pn(e, t) {
|
|
35320
|
-
(0,
|
|
35320
|
+
(0, P.useEffect)(() => {
|
|
35321
35321
|
if (!e) return;
|
|
35322
35322
|
let n = ({ data: e }) => {
|
|
35323
|
-
if (
|
|
35324
|
-
let { point: t, defs: n } =
|
|
35323
|
+
if (E.setKioskModeEnabled) return;
|
|
35324
|
+
let { point: t, defs: n } = u(e), r = ue(t.x, t.y), i = yn(n[0]);
|
|
35325
35325
|
Nn.hoveredBooth = r || i || null;
|
|
35326
35326
|
}, r = () => {
|
|
35327
|
-
|
|
35327
|
+
E.setKioskModeEnabled || (Nn.hoveredBooth = null);
|
|
35328
35328
|
}, i = ({ data: e }) => {
|
|
35329
35329
|
var n, r;
|
|
35330
|
-
if (!(
|
|
35331
|
-
(n = (r = window).__resett) == null || n.call(r),
|
|
35332
|
-
let { point: i, defs: a } =
|
|
35333
|
-
if (
|
|
35334
|
-
let e =
|
|
35335
|
-
|
|
35330
|
+
if (!(E != null && E.rootElement)) return;
|
|
35331
|
+
(n = (r = window).__resett) == null || n.call(r), E.overlayPosition === "bottom" && E.overlaySize === "full" && _.showMap();
|
|
35332
|
+
let { point: i, defs: a } = u(e), { x: o, y: s } = i;
|
|
35333
|
+
if (E.onGetCoordsClick) {
|
|
35334
|
+
let e = _.layerStore.layers.find((e) => e.visible && (e.mode === S.TurnedOn || e.mode === S.TurnedOff));
|
|
35335
|
+
E.onGetCoordsClick({
|
|
35336
35336
|
x: o,
|
|
35337
35337
|
y: s,
|
|
35338
35338
|
z: (e == null ? void 0 : e.name) || null
|
|
35339
35339
|
});
|
|
35340
35340
|
}
|
|
35341
|
-
if (
|
|
35342
|
-
let c =
|
|
35343
|
-
if (
|
|
35344
|
-
let e =
|
|
35345
|
-
|
|
35341
|
+
if (E.setKioskModeEnabled || Sn.test(o, s)) return;
|
|
35342
|
+
let c = ue(i.x, i.y) || yn(a[0]);
|
|
35343
|
+
if (E.onMarkerClick) {
|
|
35344
|
+
let e = ae(o, s, t.scale);
|
|
35345
|
+
E.onMarkerClick(e);
|
|
35346
35346
|
}
|
|
35347
|
-
|
|
35347
|
+
_.clickBooth(c || null);
|
|
35348
35348
|
}, a = () => {
|
|
35349
35349
|
var e, t;
|
|
35350
35350
|
return (e = (t = window).__resett) == null ? void 0 : e.call(t);
|
|
@@ -35357,9 +35357,9 @@ function Pn(e, t) {
|
|
|
35357
35357
|
//#endregion
|
|
35358
35358
|
//#region src/components/Maplibre/useWayfindingAndMarkers.ts
|
|
35359
35359
|
function Fn(e, t) {
|
|
35360
|
-
(0,
|
|
35360
|
+
(0, P.useEffect)(() => {
|
|
35361
35361
|
if (!e) return;
|
|
35362
|
-
let n =
|
|
35362
|
+
let n = c(t, _), r = re(t);
|
|
35363
35363
|
return () => {
|
|
35364
35364
|
n == null || n(), r == null || r();
|
|
35365
35365
|
};
|
|
@@ -35389,7 +35389,7 @@ function Vn(e, t) {
|
|
|
35389
35389
|
], s = [], c = [], l = [];
|
|
35390
35390
|
for (let e of o) {
|
|
35391
35391
|
Kn(e), c.push([e.x, e.y]);
|
|
35392
|
-
let t =
|
|
35392
|
+
let t = fe.MercatorCoordinate.fromLngLat([e.lng, e.lat], 0), n = t.meterInMercatorCoordinateUnits();
|
|
35393
35393
|
qn(t.x), qn(t.y), qn(n), s.push(n), l.push([t.x, t.y]);
|
|
35394
35394
|
}
|
|
35395
35395
|
let u = [], d = [];
|
|
@@ -35543,10 +35543,10 @@ function nr(e, t, n) {
|
|
|
35543
35543
|
};
|
|
35544
35544
|
}
|
|
35545
35545
|
function rr() {
|
|
35546
|
-
|
|
35547
|
-
|
|
35546
|
+
_.poiMarkerStore.clear(), a(() => {
|
|
35547
|
+
_.layerStore.layers.forEach((e) => {
|
|
35548
35548
|
e.configured = !1, e.children = [], e.loaded = !1;
|
|
35549
|
-
}),
|
|
35549
|
+
}), _.layerStore.layersLoaded = !1;
|
|
35550
35550
|
});
|
|
35551
35551
|
}
|
|
35552
35552
|
function ir(e, t) {
|
|
@@ -35559,21 +35559,21 @@ function ar(e) {
|
|
|
35559
35559
|
let i = Math.abs((t = e[0]) == null ? 0 : t), a = Math.hypot((n = e[0]) == null ? 0 : n, (r = e[1]) == null ? 0 : r);
|
|
35560
35560
|
return i <= 0 || a <= 0 ? 1 : i / a;
|
|
35561
35561
|
}
|
|
35562
|
-
var or =
|
|
35562
|
+
var or = te(function({ viewMode: e }) {
|
|
35563
35563
|
var t;
|
|
35564
|
-
let [n, r] = (0,
|
|
35565
|
-
layerViewbox:
|
|
35566
|
-
explicitArea:
|
|
35567
|
-
layerRectangle:
|
|
35564
|
+
let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o = _.rendererService, s = (0, P.useRef)(null), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useMemo)(() => Yt(), []), h = (0, P.useMemo)(() => k({
|
|
35565
|
+
layerViewbox: _.layerStore.viewboxRectangle,
|
|
35566
|
+
explicitArea: A ? O : null,
|
|
35567
|
+
layerRectangle: _.layerStore.rectangle,
|
|
35568
35568
|
sceneDef: n,
|
|
35569
|
-
svgArea:
|
|
35570
|
-
}), [n]),
|
|
35569
|
+
svgArea: O
|
|
35570
|
+
}), [n]), b = h.rect, S = (0, P.useMemo)(() => {
|
|
35571
35571
|
if (!m) return null;
|
|
35572
|
-
let e =
|
|
35573
|
-
e &&
|
|
35574
|
-
let n =
|
|
35575
|
-
width:
|
|
35576
|
-
height:
|
|
35572
|
+
let e = y(h.source) ? 0 : x(b, O), t = qt(0);
|
|
35573
|
+
e && E.screenSize && (t.left += E.screenSize.width * e, t.right += E.screenSize.width * e, t.top += E.screenSize.height * e, t.bottom += E.screenSize.height * e);
|
|
35574
|
+
let n = E.screenSize ? Gt(b, m.gpsConfig, m.bearing, {
|
|
35575
|
+
width: E.screenSize.width,
|
|
35576
|
+
height: E.screenSize.height
|
|
35577
35577
|
}, t) : null;
|
|
35578
35578
|
return n ? {
|
|
35579
35579
|
center: n.center,
|
|
@@ -35583,97 +35583,97 @@ var or = ee(function({ viewMode: e }) {
|
|
|
35583
35583
|
center: m.center,
|
|
35584
35584
|
bearing: m.bearing,
|
|
35585
35585
|
zoom: m.zoom,
|
|
35586
|
-
bounds: Ut(
|
|
35586
|
+
bounds: Ut(b, m.gpsConfig),
|
|
35587
35587
|
fitPadding: t,
|
|
35588
35588
|
zoomAdjustment: It
|
|
35589
35589
|
};
|
|
35590
35590
|
}, [
|
|
35591
35591
|
m,
|
|
35592
35592
|
h,
|
|
35593
|
-
|
|
35594
|
-
]), w = (0,
|
|
35593
|
+
b
|
|
35594
|
+
]), w = (0, P.useMemo)(() => {
|
|
35595
35595
|
var e;
|
|
35596
|
-
return m ? Vn(m.gpsConfig, (e =
|
|
35597
|
-
}, [m]),
|
|
35598
|
-
(0,
|
|
35596
|
+
return m ? Vn(m.gpsConfig, (e = T()) == null ? void 0 : e.getAttribute("units")) : null;
|
|
35597
|
+
}, [m]), D = (0, P.useMemo)(() => ({ ...e === "map2d" ? un : ln }), [e]), j = (0, P.useRef)(D), M = (0, P.useMemo)(() => mn(), []), { mapDimAnimatorRef: te, venueDimAnimatorRef: N, applyDimmingTarget: re, handleMapDimLayerReady: ie } = gn(c, o);
|
|
35598
|
+
(0, P.useEffect)(() => {
|
|
35599
35599
|
if (!m) return;
|
|
35600
35600
|
let e = !1;
|
|
35601
35601
|
rr();
|
|
35602
|
-
let t =
|
|
35602
|
+
let t = le(o).then(({ layers: t, cleanup: n }) => {
|
|
35603
35603
|
if (e) {
|
|
35604
35604
|
n();
|
|
35605
35605
|
return;
|
|
35606
35606
|
}
|
|
35607
|
-
|
|
35608
|
-
let i =
|
|
35607
|
+
u.current = n;
|
|
35608
|
+
let i = d(t, O, (0, de.default)(v.backgroundColor === "none" ? "#ebebeb" : v.backgroundColor).string());
|
|
35609
35609
|
r(i);
|
|
35610
35610
|
}).catch((t) => {
|
|
35611
35611
|
e || console.warn("Maplibre scene configuration failed.", t);
|
|
35612
|
-
}), n =
|
|
35612
|
+
}), n = te.current, i = N.current;
|
|
35613
35613
|
return () => {
|
|
35614
|
-
var r,
|
|
35614
|
+
var r, d;
|
|
35615
35615
|
e = !0, rr();
|
|
35616
35616
|
let m = s.current;
|
|
35617
|
-
t.finally(() => o.disposeIfCurrent(m)), (r =
|
|
35617
|
+
t.finally(() => o.disposeIfCurrent(m)), (r = l.current) == null || r.call(l), l.current = null, (d = u.current) == null || d.call(u), u.current = null, p.current && (_.maplibreStore.clearCameraPortIfCurrent(p.current), p.current = null), s.current = null, c.current = null, f.current = null, a(null), n == null || n.stop(), i == null || i.stop(), E.sceneDefReady = !1;
|
|
35618
35618
|
};
|
|
35619
35619
|
}, [
|
|
35620
35620
|
m,
|
|
35621
|
-
|
|
35621
|
+
te,
|
|
35622
35622
|
o,
|
|
35623
|
-
|
|
35623
|
+
N
|
|
35624
35624
|
]);
|
|
35625
|
-
let
|
|
35626
|
-
var i,
|
|
35627
|
-
s.current = e, c.current = t, f.current = r, a(e), o.attach(e, n, r, w ? ar(w) : 1), pn(t,
|
|
35625
|
+
let ae = (0, P.useCallback)((e, t, n, r) => {
|
|
35626
|
+
var i, u, d;
|
|
35627
|
+
s.current = e, c.current = t, f.current = r, a(e), o.attach(e, n, r, w ? ar(w) : 1), pn(t, j.current);
|
|
35628
35628
|
let h = nr(t, (i = m == null ? void 0 : m.bearing) == null ? t.getBearing() : i, () => {
|
|
35629
35629
|
var e;
|
|
35630
|
-
return (e =
|
|
35630
|
+
return (e = j.current.pitch) == null ? 0 : e;
|
|
35631
35631
|
});
|
|
35632
|
-
p.current = h,
|
|
35633
|
-
let
|
|
35632
|
+
p.current = h, _.maplibreStore.setCameraPort(h), re({ immediate: !0 }), (u = l.current) == null || u.call(l);
|
|
35633
|
+
let v = () => {
|
|
35634
35634
|
var e;
|
|
35635
35635
|
let n = t.getBearing() - ((e = m == null ? void 0 : m.bearing) == null ? 0 : e);
|
|
35636
|
-
ir(o,
|
|
35636
|
+
ir(o, g(n));
|
|
35637
35637
|
};
|
|
35638
|
-
t.on("rotate",
|
|
35639
|
-
t.off("rotate",
|
|
35640
|
-
},
|
|
35641
|
-
let
|
|
35642
|
-
|
|
35638
|
+
t.on("rotate", v), t.on("rotateend", v), l.current = () => {
|
|
35639
|
+
t.off("rotate", v), t.off("rotateend", v);
|
|
35640
|
+
}, C(o);
|
|
35641
|
+
let y = o.ptScaleRegistry.invoke(o.scale || 1);
|
|
35642
|
+
y.length && o.update(...y), ir(o, g(t.getBearing() - ((d = m == null ? void 0 : m.bearing) == null ? 0 : d))), _.layerStore.layersLoaded = !0, _.fp.onFpConfigured && _.fp.onFpConfigured(), E.sceneDefReady = !0, r();
|
|
35643
35643
|
}, [
|
|
35644
35644
|
o,
|
|
35645
|
-
|
|
35645
|
+
re,
|
|
35646
35646
|
w,
|
|
35647
35647
|
m
|
|
35648
35648
|
]);
|
|
35649
|
-
(0,
|
|
35650
|
-
|
|
35651
|
-
}, [
|
|
35652
|
-
enabled:
|
|
35649
|
+
(0, P.useEffect)(() => {
|
|
35650
|
+
j.current = D, pn(c.current, D, !0);
|
|
35651
|
+
}, [D]), Pn(i, o), _n(i, c), Fn(i, o), Mn(i, c, m), bn(o, c, m), rn(c, m, n), se({
|
|
35652
|
+
enabled: _.layerStore.layersLoaded && E.buildRoute,
|
|
35653
35653
|
rendererService: o
|
|
35654
35654
|
});
|
|
35655
|
-
let
|
|
35656
|
-
|
|
35657
|
-
permission:
|
|
35655
|
+
let oe = (t = ee.busRoutes) != null && t;
|
|
35656
|
+
ne({
|
|
35657
|
+
permission: _.layerStore.layersLoaded && oe,
|
|
35658
35658
|
rendererService: o,
|
|
35659
|
-
dataJsonUrl: `https://${er}/v1/routes?expo=${
|
|
35660
|
-
websocketUrl: `wss://${er}/locations?expo=${
|
|
35659
|
+
dataJsonUrl: `https://${er}/v1/routes?expo=${v.EXPO}`,
|
|
35660
|
+
websocketUrl: `wss://${er}/locations?expo=${v.EXPO}`
|
|
35661
35661
|
});
|
|
35662
|
-
let
|
|
35663
|
-
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e),
|
|
35662
|
+
let ce = (0, P.useCallback)((e) => {
|
|
35663
|
+
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), _.maplibreStore.deactivateMaplibre();
|
|
35664
35664
|
}, []);
|
|
35665
35665
|
if (!m || !S || !w || !n) return null;
|
|
35666
|
-
let
|
|
35666
|
+
let ue = `${S.center.join(",")}:${S.bearing}:${S.zoom}`;
|
|
35667
35667
|
return /* @__PURE__ */ (0, St.jsx)(Ft, {
|
|
35668
35668
|
sceneDef: n,
|
|
35669
35669
|
geoConfig: S,
|
|
35670
35670
|
staticTransform: w,
|
|
35671
35671
|
tileSource: M,
|
|
35672
|
-
mapOptions:
|
|
35673
|
-
onRendererReady:
|
|
35674
|
-
onMapDimLayerReady:
|
|
35675
|
-
onMapLoadError:
|
|
35676
|
-
},
|
|
35672
|
+
mapOptions: D,
|
|
35673
|
+
onRendererReady: ae,
|
|
35674
|
+
onMapDimLayerReady: ie,
|
|
35675
|
+
onMapLoadError: ce
|
|
35676
|
+
}, ue);
|
|
35677
35677
|
});
|
|
35678
35678
|
//#endregion
|
|
35679
35679
|
export { or as default };
|