@expofp/floorplan 3.42.1 → 3.43.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-CFOilpWS.js → Button-ChvBlyDe.js} +6 -6
- package/dist/browser/{CookieConsent-7xtFQUAC.js → CookieConsent-B79szHaS.js} +8 -8
- package/dist/browser/{Debug-Ccq8j5HJ.js → Debug-BmtrxpLX.js} +10 -10
- package/dist/browser/{DebugTools-dIItZaUb.js → DebugTools-D4NbQEtd.js} +7 -7
- package/dist/browser/{Demo-waaMiBvy.js → Demo-C1jGPlTZ.js} +13 -13
- package/dist/browser/{Free-DdCaOZ8Q.js → Free-CrPKA8NB.js} +16 -15
- package/dist/browser/{GalleryContainer-DlucEORI.js → GalleryContainer-Byk_AjCO.js} +470 -469
- package/dist/browser/{GpsLoader-cqPoX_Zr.js → GpsLoader-xcrMJQ3k.js} +40 -37
- package/dist/browser/{KioskStore-BJwAcVii.js → KioskStore-CCqEIeOE.js} +52 -48
- package/dist/browser/{store-DKVnQzpY.js → LayerStore-CfhO9JTt.js} +21374 -31265
- package/dist/browser/{MaplibreAdapter-BZD4cOe-.js → MaplibreAdapter-BkdCl4p0.js} +290 -285
- package/dist/browser/{ModalContainer-BSvSFPr9.js → ModalContainer-CdqhG7DC.js} +11 -11
- package/dist/browser/{PermissionNotice-DXt-j2f7.js → PermissionNotice-271evNUE.js} +7 -7
- package/dist/browser/RouteStore-DYDocOLg.js +1203 -0
- package/dist/browser/SetKioskMode-DWceqgEp.js +50 -0
- package/dist/browser/{ShowKiosk-BhS74u62.js → ShowKiosk-D5DyThTi.js} +18 -17
- package/dist/browser/UIState-Saj7Kjjr.js +2026 -0
- package/dist/browser/{ViewerMenuPanel-BYTeVxTR.js → ViewerMenuPanel--NAIzyGt.js} +25 -24
- package/dist/browser/{add-debug-secret-listener-B3Oo6_V2.js → add-debug-secret-listener-BqwoAVWZ.js} +1 -1
- package/dist/browser/{adopt-global-settings-Yr-a_0F-.js → adopt-global-settings-DvAJraFg.js} +10 -10
- package/dist/browser/{boolean-editor-BA7H18pG.js → boolean-editor-Co1Ily6N.js} +10 -10
- package/dist/browser/{bootIntercom-BEZV9AQ2.js → bootIntercom-BxKpklX4.js} +3 -3
- package/dist/browser/bundle.json +110 -71
- package/dist/browser/{camera-events-CJhSKz2q.js → camera-events-BnYGheBl.js} +1 -1
- package/dist/browser/{classnames-D4c_D7C1.js → classnames-NaSmbmqt.js} +2 -2
- package/dist/browser/{client-DGjMk9A1.js → client-CvZjZ5MY.js} +6 -6
- package/dist/browser/{components-MaSv6j2M.js → components-BC_4Rrtm.js} +1491 -1457
- package/dist/browser/create-live-plan-DdDxRVpo.js +3650 -0
- package/dist/browser/{debug-context-C2PWyEVT.js → debug-context-rb_t7BzM.js} +6 -6
- package/dist/browser/{debug-overlay-BXHh1LRW.js → debug-overlay-DX9d63U6.js} +11 -11
- package/dist/browser/{debug-ui-CO-3GLEU.js → debug-ui-1zRSn-Pt.js} +7 -7
- package/dist/browser/{dimming-kPNlXUew.js → dimming-D9erakE3.js} +277 -270
- package/dist/browser/{dist-DEm0E-fN.js → dist-BupLuz7e.js} +6 -6
- package/dist/browser/{dist-3gOjtf_f.js → dist-Dy3X0upa.js} +3 -3
- package/dist/browser/{dist-B3PLpTVy.js → dist-Dy4ATR13.js} +7 -7
- package/dist/browser/{efp-debug-init-DkOOpU1g.js → efp-debug-init-DTmBNC1u.js} +4 -4
- package/dist/browser/{enum-editor-DPAX_cAI.js → enum-editor-DS9Mi20y.js} +5 -5
- package/dist/browser/{es5-CpN6LQeU.js → es5-TGy8TG8S.js} +2 -2
- package/dist/browser/{event-head-oYEDbvk3.js → event-head-ccloCQPA.js} +1 -1
- package/dist/browser/{event-not-found-C7GLCJX7.js → event-not-found-B4UzwYx9.js} +4 -4
- package/dist/browser/event-scoped-cache-Bo8Pi1bU.js +22 -0
- package/dist/browser/{exports-3uPTDFG9.js → exports-DkrDN44T.js} +1 -1
- package/dist/browser/{favicon-CQpg641Z.js → favicon-BO6r3JQD.js} +1 -1
- package/dist/browser/{fetch-retry.umd-Chmlkexp.js → fetch-retry.umd-CBKWHeDp.js} +2 -2
- package/dist/browser/{flex--99NWgQk.js → flex-DK-UWQj-.js} +6 -6
- package/dist/browser/{floorplan.loader-Ci226yql.js → floorplan.loader-C3iy3aV0.js} +658 -707
- package/dist/browser/{floorplan.ready-y0hYLknK.js → floorplan.ready-Dfo1nWhu.js} +373 -359
- package/dist/browser/freeBanner-C7xKlqKw.js +31 -0
- package/dist/browser/{fuse-BuFi3LTO.js → fuse-BQcpTy7r.js} +2 -2
- package/dist/browser/{i18n-BAQekIFF.js → i18n-D6Lq_Buf.js} +1821 -3872
- package/dist/browser/index.js +131 -47
- package/dist/browser/{index.module-CXN9GK4C.js → index.module-BSoufRTU.js} +17 -17
- package/dist/browser/init-ui-1FfbXJGw.js +286 -0
- package/dist/browser/integrateKiosk-D9Q6DLBE.js +35 -0
- package/dist/browser/{loadImage-xbueiJmr.js → is-debug-COmQqgiL.js} +30 -14
- package/dist/browser/{is-own-domain-DPJZoBiw.js → is-own-domain-DJo0J_LD.js} +1 -1
- package/dist/browser/{is-webview-Bs8mxX94.js → is-webview-BBchBwKM.js} +1 -1
- package/dist/browser/{jsx-runtime-BXbSNrYY.js → jsx-runtime-DL-d6MrM.js} +2 -2
- package/dist/browser/kiosk-mode-_np8_B-l.js +33 -0
- package/dist/browser/{kiosk-record-CaWjqNGY.js → kiosk-record-BmaguqBS.js} +1 -1
- package/dist/browser/kioskApi-C07lc5Lj.js +440 -0
- package/dist/browser/{lib-jJ4yMeEA.js → lib-DrLsicOU.js} +3 -3
- package/dist/browser/loadImage-gvajvqmr.js +17 -0
- package/dist/browser/{logDeviceInfo-DSmmt_FU.js → logDeviceInfo-Dp6nkPPj.js} +9 -9
- package/dist/browser/{mobx-BQA2EJH7.js → mobx-Dfa_Tj0c.js} +11 -11
- package/dist/browser/mobx.module-ionKiiCb.js +2064 -0
- package/dist/browser/{optional-boolean-editor-Y_exy4JL.js → optional-boolean-editor-IDS6OcC1.js} +4 -4
- package/dist/browser/{optional-enum-editor-CKfj0OB9.js → optional-enum-editor-CmHeQhFh.js} +5 -5
- package/dist/browser/{optional-string-editor-DeavwcWv.js → optional-string-editor-5lm4OVVA.js} +5 -5
- package/dist/browser/{particles.min-BJkirBpN.js → particles.min-Djywwk9n.js} +2 -2
- package/dist/browser/{react-CV1gH7Zp.js → react-DATIS1Wg.js} +2 -2
- package/dist/browser/{react-dom-BEwgcqEB.js → react-dom-CZoP3ON8.js} +3 -3
- package/dist/browser/{rolldown-runtime-BiAnyumg.js → rolldown-runtime-C54u_qRI.js} +1 -1
- package/dist/browser/scene-CR4jNFce.js +108 -0
- package/dist/browser/{scheduler-CcNpP8xn.js → scheduler-B2SwSUg3.js} +2 -2
- package/dist/browser/{select-B13QBWfy.js → select-BXuAa5Mm.js} +11 -11
- package/dist/browser/{settings-DJUw3GyU.js → settings-DWSfrYuK.js} +2 -2
- package/dist/browser/{settings-item-VzMuDMX6.js → settings-item-Bg1kzAE-.js} +7 -7
- package/dist/browser/store-DKFByqxw.js +58 -0
- package/dist/browser/{string-editor-B6mio7nq.js → string-editor-CHJTsfW0.js} +5 -5
- package/dist/browser/{text-field-7dZmg829.js → text-field-Daedvncr.js} +6 -6
- package/dist/browser/{theme-BotlxmwW.js → theme-hSwmbdBg.js} +9 -9
- package/dist/browser/{ui-Dn5rbA7O.js → ui-BIFt_vYU.js} +9 -9
- package/dist/browser/{useRenderTarget-Rz0x5k4l.js → useRenderTarget-Cf0eV2dg.js} +5 -5
- package/dist/browser/{viewport-DOIlU3cR.js → viewport-Dvo8x5tc.js} +4 -3
- package/dist/browser/wayfinding-UIwKgl3o.js +2322 -0
- package/dist/esm/components/GalleryContainer.js +1 -1
- package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Map/MapCamera.js +1 -1
- package/dist/esm/components/Map/booth-by-xy.d.ts +8 -10
- package/dist/esm/components/Map/booth-by-xy.js +1 -1
- package/dist/esm/components/Map/drawing/config/BoothShape.d.ts +0 -1
- package/dist/esm/components/Map/drawing/config/BoothShape.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
- package/dist/esm/components/Map/drawing/config/layer-images.d.ts +7 -2
- package/dist/esm/components/Map/drawing/config/layer-images.js +1 -1
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
- package/dist/esm/components/Maplibre/useCameraReactions.js +1 -1
- package/dist/esm/components/Maplibre/utils/geo-config.js +1 -1
- package/dist/esm/components/Maplibre/utils/map-helpers.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/data/fpGeo.d.ts +6 -1
- package/dist/esm/data/fpGeo.js +1 -1
- package/dist/esm/data/index.d.ts +9 -4
- package/dist/esm/data/index.js +1 -1
- package/dist/esm/data/svg.d.ts +15 -13
- package/dist/esm/data/svg.js +1 -1
- package/dist/esm/floorplan.loader.d.ts +6 -1
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.d.ts +8 -2
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/load.js +11 -11
- package/dist/esm/plan-lifecycle.d.ts +65 -0
- package/dist/esm/plan-lifecycle.js +1 -0
- package/dist/esm/services/URLFilterManager.js +1 -1
- package/dist/esm/services/url-dispatch.js +1 -1
- package/dist/esm/services/url-sync.d.ts +5 -1
- package/dist/esm/services/url-sync.js +1 -1
- package/dist/esm/store/MaplibreStore.js +1 -1
- package/dist/esm/store/OverlayStore.d.ts +15 -2
- package/dist/esm/store/OverlayStore.js +1 -1
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/create-live-plan.d.ts +13 -0
- package/dist/esm/store/create-live-plan.js +1 -0
- package/dist/esm/store/index.d.ts +2 -13
- package/dist/esm/store/index.js +1 -1
- package/dist/esm/store/init/init-booths.js +1 -1
- package/dist/esm/store/init/init-events.js +1 -1
- package/dist/esm/store/init/init-exhibitors.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/store/init/init-speakers.js +1 -1
- package/dist/esm/store/init/init-ui.d.ts +4 -6
- package/dist/esm/store/init/init-ui.js +1 -1
- package/dist/esm/store/live-store.d.ts +19 -0
- package/dist/esm/store/live-store.js +1 -0
- package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
- package/dist/esm/tools/event-scoped-cache.d.ts +13 -0
- package/dist/esm/tools/event-scoped-cache.js +1 -0
- package/dist/esm/tools/gtag.d.ts +15 -1
- package/dist/esm/tools/gtag.js +1 -1
- package/dist/esm/tools/reset.js +1 -1
- package/dist/esm/tools/settings.d.ts +7 -2
- package/dist/esm/tools/settings.js +1 -1
- package/dist/esm/tools/slug.js +1 -1
- package/dist/esm/tools/style-registry.d.ts +28 -0
- package/dist/esm/tools/style-registry.js +1 -0
- package/dist/esm/tools/track-event.js +1 -1
- package/dist/esm/types.d.ts +7 -1
- package/dist/esm/utils/entity-storage.js +1 -1
- package/dist/esm/utils/gps.js +1 -1
- package/dist/esm/utils/plan-reactions.d.ts +20 -0
- package/dist/esm/utils/plan-reactions.js +1 -0
- package/dist/esm/utils/preview-exhibitor.d.ts +9 -2
- package/dist/esm/utils/preview-exhibitor.js +1 -1
- package/dist/esm/utils/swappable-proxy.d.ts +28 -0
- package/dist/esm/utils/swappable-proxy.js +1 -0
- package/dist/esm/wayfinding/createWayfinding.js +1 -1
- package/package.json +32 -10
- package/dist/browser/SetKioskMode-CCZNdKum.js +0 -48
- package/dist/browser/integrateKiosk-DjIKsfAy.js +0 -34
|
@@ -2,24 +2,28 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.43.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] = "ab01aead-da13-4bb6-b64d-f80a57d812ef", e._sentryDebugIdIdentifier = "sentry-dbid-ab01aead-da13-4bb6-b64d-f80a57d812ef");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-C54u_qRI.js";
|
|
11
|
+
import { F as n, I as r } from "./i18n-D6Lq_Buf.js";
|
|
12
|
+
import { t as i } from "./react-DATIS1Wg.js";
|
|
13
|
+
import { t as a } from "./jsx-runtime-DL-d6MrM.js";
|
|
14
|
+
import { t as o } from "./is-debug-COmQqgiL.js";
|
|
15
|
+
import { l as s, u as c } from "./mobx.module-ionKiiCb.js";
|
|
16
|
+
import { t as l } from "./index.module-BSoufRTU.js";
|
|
17
|
+
import { l as u, u as d } from "./store-DKFByqxw.js";
|
|
18
|
+
import { i as f } from "./mobx-Dfa_Tj0c.js";
|
|
19
|
+
import { At as p, Ct as m, Dt as h, Ft as g, H as _, Tt as v, a as y, ct as b, ft as x, lt as S, m as C, nt as w, o as T, st as E, tt as D, vt as O, wt as k, y as A } from "./LayerStore-CfhO9JTt.js";
|
|
20
|
+
import { g as j, h as M, n as N, p as ee } from "./wayfinding-UIwKgl3o.js";
|
|
21
|
+
import { t as P } from "./camera-events-BnYGheBl.js";
|
|
22
|
+
import { t as te } from "./viewport-Dvo8x5tc.js";
|
|
23
|
+
import { a as ne, i as re, n as ie, o as ae, s as oe } from "./scene-CR4jNFce.js";
|
|
24
|
+
import { a as se, c as ce, i as le, l as ue, n as de, o as fe, r as pe, s as me, t as he } from "./dimming-D9erakE3.js";
|
|
21
25
|
//#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
22
|
-
var F = /* @__PURE__ */ e(
|
|
26
|
+
var F = /* @__PURE__ */ e(i(), 1), ge = /* @__PURE__ */ e(x(), 1), _e = (/* @__PURE__ */ t(((e, t) => {
|
|
23
27
|
(function(n, r) {
|
|
24
28
|
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());
|
|
25
29
|
})(e, (function() {
|
|
@@ -328,11 +332,11 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
328
332
|
let i = new o(e, t, n, r);
|
|
329
333
|
return (e) => i.solve(e);
|
|
330
334
|
}
|
|
331
|
-
let
|
|
332
|
-
function
|
|
335
|
+
let P = ee(.25, .1, .25, 1);
|
|
336
|
+
function te(e, t, n) {
|
|
333
337
|
return Math.min(n, Math.max(t, e));
|
|
334
338
|
}
|
|
335
|
-
function
|
|
339
|
+
function ne(e, t, n) {
|
|
336
340
|
let r = n - t, i = ((e - t) % r + r) % r + t;
|
|
337
341
|
return i === t ? n : i;
|
|
338
342
|
}
|
|
@@ -9416,7 +9420,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
9416
9420
|
}
|
|
9417
9421
|
}
|
|
9418
9422
|
function cs(e, t) {
|
|
9419
|
-
return 256 * (e =
|
|
9423
|
+
return 256 * (e = te(Math.floor(e), 0, 255)) + te(Math.floor(t), 0, 255);
|
|
9420
9424
|
}
|
|
9421
9425
|
ss.MAX_VERTEX_ARRAY_LENGTH = 2 ** 16 - 1, X("SegmentVector", ss);
|
|
9422
9426
|
let ls = oo([
|
|
@@ -9676,7 +9680,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
9676
9680
|
this.paintVertexBuffer && this.paintVertexBuffer.destroy();
|
|
9677
9681
|
}
|
|
9678
9682
|
setUniform(e, t) {
|
|
9679
|
-
let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r =
|
|
9683
|
+
let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r = te(this.expression.interpolationFactor(n, this.zoom, this.zoom + 1), 0, 1);
|
|
9680
9684
|
e.set(r);
|
|
9681
9685
|
}
|
|
9682
9686
|
getBinding(e, t, n) {
|
|
@@ -9970,7 +9974,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
9970
9974
|
let t = O / e.extent, n = e.loadGeometry();
|
|
9971
9975
|
for (let e of n) for (let n of e) {
|
|
9972
9976
|
let e = Math.round(n.x * t), r = Math.round(n.y * t);
|
|
9973
|
-
n.x =
|
|
9977
|
+
n.x = te(e, Bs, zs), n.y = te(r, Bs, zs), (e < n.x || e > n.x + 1 || r < n.y || r > n.y + 1) && le("Geometry exceeds allowed extent, reduce your vector tile buffer size");
|
|
9974
9978
|
}
|
|
9975
9979
|
return n;
|
|
9976
9980
|
}
|
|
@@ -14782,7 +14786,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
14782
14786
|
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");
|
|
14783
14787
|
}
|
|
14784
14788
|
wrap() {
|
|
14785
|
-
return new Nf(
|
|
14789
|
+
return new Nf(ne(this.lng, -180, 180), this.lat);
|
|
14786
14790
|
}
|
|
14787
14791
|
toArray() {
|
|
14788
14792
|
return [this.lng, this.lat];
|
|
@@ -17391,9 +17395,9 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
17391
17395
|
(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;
|
|
17392
17396
|
}
|
|
17393
17397
|
let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
|
|
17394
|
-
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), ee = new n(l, _),
|
|
17395
|
-
if (
|
|
17396
|
-
let e = Math.sin(
|
|
17398
|
+
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), ee = new n(l, _), P = new n(u / s, f / s), te = new n(g / s, A / s), ne = t * Math.PI / 180;
|
|
17399
|
+
if (ne) {
|
|
17400
|
+
let e = Math.sin(ne), t = Math.cos(ne), n = [
|
|
17397
17401
|
t,
|
|
17398
17402
|
-e,
|
|
17399
17403
|
e,
|
|
@@ -17416,8 +17420,8 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
17416
17420
|
writingMode: void 0,
|
|
17417
17421
|
glyphOffset: [0, 0],
|
|
17418
17422
|
sectionIndex: 0,
|
|
17419
|
-
pixelOffsetTL:
|
|
17420
|
-
pixelOffsetBR:
|
|
17423
|
+
pixelOffsetTL: P,
|
|
17424
|
+
pixelOffsetBR: te,
|
|
17421
17425
|
minFontScaleX: C / s / O,
|
|
17422
17426
|
minFontScaleY: T / s / k,
|
|
17423
17427
|
isSDF: r
|
|
@@ -17678,7 +17682,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
17678
17682
|
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, _)));
|
|
17679
17683
|
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
|
|
17680
17684
|
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) {
|
|
17681
|
-
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0,
|
|
17685
|
+
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, P = -1, te = -1, ne = {}, re = _s("");
|
|
17682
17686
|
if (t.allowVerticalPlacement && i.vertical) {
|
|
17683
17687
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
|
|
17684
17688
|
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));
|
|
@@ -17687,7 +17691,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
17687
17691
|
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;
|
|
17688
17692
|
O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
|
|
17689
17693
|
let m = t.iconSizeData, h = null;
|
|
17690
|
-
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && le(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && le(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w),
|
|
17694
|
+
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && le(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && le(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), P = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), te = t.icon.placedSymbolArray.length - 1);
|
|
17691
17695
|
}
|
|
17692
17696
|
let ie = Object.keys(i.horizontal);
|
|
17693
17697
|
for (let r of ie) {
|
|
@@ -17698,9 +17702,9 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
17698
17702
|
D = new yh(l, n, u, d, f, a, p, m, h, e);
|
|
17699
17703
|
}
|
|
17700
17704
|
let s = a.positionedLines.length === 1;
|
|
17701
|
-
if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ie : [r],
|
|
17705
|
+
if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ie : [r], ne, P, S, w), s) break;
|
|
17702
17706
|
}
|
|
17703
|
-
i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"],
|
|
17707
|
+
i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], ne, te, S, w));
|
|
17704
17708
|
let ae = D ? D.boxStartIndex : t.collisionBoxArray.length, oe = D ? D.boxEndIndex : t.collisionBoxArray.length, se = k ? k.boxStartIndex : t.collisionBoxArray.length, ce = k ? k.boxEndIndex : t.collisionBoxArray.length, ue = O ? O.boxStartIndex : t.collisionBoxArray.length, de = O ? O.boxEndIndex : t.collisionBoxArray.length, fe = A ? A.boxStartIndex : t.collisionBoxArray.length, pe = A ? A.boxEndIndex : t.collisionBoxArray.length, me = -1, he = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
|
|
17705
17709
|
me = he(D, me), me = he(k, me), me = he(O, me), me = he(A, me);
|
|
17706
17710
|
let F = +(me > -1);
|
|
@@ -17713,7 +17717,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
17713
17717
|
}
|
|
17714
17718
|
return [r, t.length];
|
|
17715
17719
|
}(t.textAnchorOffsets, ge);
|
|
17716
|
-
t.symbolInstances.emplaceBack(n.x, n.y,
|
|
17720
|
+
t.symbolInstances.emplaceBack(n.x, n.y, ne.right >= 0 ? ne.right : -1, ne.center >= 0 ? ne.center : -1, ne.left >= 0 ? ne.left : -1, ne.vertical || -1, P, te, re, ae, oe, se, ce, ue, de, fe, pe, u, N, ee, j, M, F, 0, p, me, _e, ve);
|
|
17717
17721
|
}(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
|
|
17718
17722
|
S,
|
|
17719
17723
|
S,
|
|
@@ -17926,7 +17930,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
17926
17930
|
let n = {};
|
|
17927
17931
|
for (let r of t) r in e && (n[r] = e[r]);
|
|
17928
17932
|
return n;
|
|
17929
|
-
}, e.W = Nf, e.X =
|
|
17933
|
+
}, e.W = Nf, e.X = ne, e.Y = Lf, e.Z = If, e._ = t, e.a = Ce, e.a$ = function(e) {
|
|
17930
17934
|
var t = new f(3);
|
|
17931
17935
|
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t;
|
|
17932
17936
|
}, 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) {
|
|
@@ -17981,7 +17985,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
17981
17985
|
isNaN(e) ? delete t["max-age"] : t["max-age"] = e;
|
|
17982
17986
|
}
|
|
17983
17987
|
return t;
|
|
17984
|
-
}, e.al =
|
|
17988
|
+
}, e.al = te, e.am = 85.051129, e.an = ve, e.ao = function(e) {
|
|
17985
17989
|
return 2 ** e;
|
|
17986
17990
|
}, e.ap = m, e.aq = Rf, e.ar = function(e) {
|
|
17987
17991
|
return Math.log(e) / Math.LN2;
|
|
@@ -18066,7 +18070,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
18066
18070
|
let n = 0, r = 0;
|
|
18067
18071
|
if (e.kind === "constant") r = e.layoutSize;
|
|
18068
18072
|
else if (e.kind !== "source") {
|
|
18069
|
-
let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ?
|
|
18073
|
+
let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ? te(yn.interpolationFactor(i, t, a, o), 0, 1) : 0;
|
|
18070
18074
|
e.kind === "camera" ? r = xn.number(e.minSize, e.maxSize, s) : n = s;
|
|
18071
18075
|
}
|
|
18072
18076
|
return {
|
|
@@ -18375,7 +18379,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
18375
18379
|
let t = /* @__PURE__ */ new Float64Array(9);
|
|
18376
18380
|
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);
|
|
18377
18381
|
(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;
|
|
18378
|
-
let b = ye(-Math.asin(
|
|
18382
|
+
let b = ye(-Math.asin(te(t[2], -1, 1))), x, S;
|
|
18379
18383
|
return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -ye(Math.atan2(t[3], t[4]))) : (x = ye(t[5] === 0 && t[8] === 0 ? 0 : Math.atan2(t[5], t[8])), S = ye(t[1] === 0 && t[0] === 0 ? 0 : Math.atan2(t[1], t[0]))), {
|
|
18380
18384
|
roll: x,
|
|
18381
18385
|
pitch: b + 90,
|
|
@@ -18384,7 +18388,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
18384
18388
|
}, e.bn = function(e, t) {
|
|
18385
18389
|
return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
|
|
18386
18390
|
}, e.bo = W, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = N, e.bv = Jt, e.bw = function(e, t, n, r, i) {
|
|
18387
|
-
return M(r, i,
|
|
18391
|
+
return M(r, i, te((e - t) / (n - t), 0, 1));
|
|
18388
18392
|
}, e.bx = function(e, t, n, r) {
|
|
18389
18393
|
return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
|
|
18390
18394
|
}, e.by = j, e.bz = function() {
|
|
@@ -18600,7 +18604,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
18600
18604
|
let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
|
|
18601
18605
|
var a, o;
|
|
18602
18606
|
return ye(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
|
|
18603
|
-
}, e.cy =
|
|
18607
|
+
}, e.cy = P, e.cz = function(e, t) {
|
|
18604
18608
|
var n;
|
|
18605
18609
|
if (!xe[t]) return !1;
|
|
18606
18610
|
let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
@@ -20262,11 +20266,11 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
20262
20266
|
}
|
|
20263
20267
|
}
|
|
20264
20268
|
let M = Math.floor(s.hardwareConcurrency / 2), N, ee;
|
|
20265
|
-
function
|
|
20269
|
+
function P() {
|
|
20266
20270
|
return N || (N = new j()), N;
|
|
20267
20271
|
}
|
|
20268
20272
|
j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
|
|
20269
|
-
class
|
|
20273
|
+
class te {
|
|
20270
20274
|
constructor(e, n) {
|
|
20271
20275
|
this.workerPool = e, this.actors = [], this.currentActor = 0, this.id = n;
|
|
20272
20276
|
let r = this.workerPool.acquire(n);
|
|
@@ -20298,8 +20302,8 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
20298
20302
|
for (let t of this.actors) t.unregisterMessageHandler(e);
|
|
20299
20303
|
}
|
|
20300
20304
|
}
|
|
20301
|
-
function
|
|
20302
|
-
return ee || (ee = new
|
|
20305
|
+
function ne() {
|
|
20306
|
+
return ee || (ee = new te(P(), t.M), ee.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), ee;
|
|
20303
20307
|
}
|
|
20304
20308
|
function re(e, n) {
|
|
20305
20309
|
let r = t.O();
|
|
@@ -21352,7 +21356,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
21352
21356
|
}, we = "RTLPluginLoaded";
|
|
21353
21357
|
class Te extends t.E {
|
|
21354
21358
|
constructor() {
|
|
21355
|
-
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher =
|
|
21359
|
+
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = ne();
|
|
21356
21360
|
}
|
|
21357
21361
|
_syncState(e) {
|
|
21358
21362
|
return this.status = e, this.dispatcher.broadcast("SRPS", {
|
|
@@ -23036,12 +23040,12 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
23036
23040
|
var w, A;
|
|
23037
23041
|
if (n[e.crossTileID]) return;
|
|
23038
23042
|
if (d) return void (this.placements[e.crossTileID] = new St(!1, !1, !1));
|
|
23039
|
-
let j = !1, M = !1, N = !0, ee = null,
|
|
23043
|
+
let j = !1, M = !1, N = !0, ee = null, P = {
|
|
23040
23044
|
box: null,
|
|
23041
23045
|
placeable: !1,
|
|
23042
23046
|
offscreen: null,
|
|
23043
23047
|
occluded: !1
|
|
23044
|
-
},
|
|
23048
|
+
}, te = { placeable: !1 }, ne = null, re = null, ie = null, ae = 0, oe = 0, se = 0;
|
|
23045
23049
|
f.textFeatureIndex ? ae = f.textFeatureIndex : e.useRuntimeCollisionCircles && (ae = e.featureIndex), f.verticalTextFeatureIndex && (oe = f.verticalTextFeatureIndex);
|
|
23046
23050
|
let ce = f.textBox;
|
|
23047
23051
|
if (ce) {
|
|
@@ -23054,8 +23058,8 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
23054
23058
|
return r;
|
|
23055
23059
|
}, a = (n, r) => {
|
|
23056
23060
|
if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
|
|
23057
|
-
for (let e of i.writingModes) if (e === t.ax.vertical ? (
|
|
23058
|
-
} else
|
|
23061
|
+
for (let e of i.writingModes) if (e === t.ax.vertical ? (P = r(), te = P) : P = n(), P != null && P.placeable) break;
|
|
23062
|
+
} else P = n();
|
|
23059
23063
|
}, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
|
|
23060
23064
|
if (d === l) {
|
|
23061
23065
|
let r = (t, n) => {
|
|
@@ -23068,7 +23072,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
23068
23072
|
box: null,
|
|
23069
23073
|
offscreen: null
|
|
23070
23074
|
};
|
|
23071
|
-
})), n(
|
|
23075
|
+
})), n(P == null ? void 0 : P.placeable);
|
|
23072
23076
|
} else {
|
|
23073
23077
|
let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
|
|
23074
23078
|
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";
|
|
@@ -23091,33 +23095,33 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
23091
23095
|
};
|
|
23092
23096
|
a((() => h(ce, f.iconBox, t.ax.horizontal)), (() => {
|
|
23093
23097
|
let n = f.verticalTextBox;
|
|
23094
|
-
return i.allowVerticalPlacement && !(
|
|
23098
|
+
return i.allowVerticalPlacement && !(P != null && P.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
|
|
23095
23099
|
box: null,
|
|
23096
23100
|
occluded: !0,
|
|
23097
23101
|
offscreen: null
|
|
23098
23102
|
};
|
|
23099
|
-
})),
|
|
23100
|
-
let g = n(
|
|
23103
|
+
})), P && (j = P.placeable, N = P.offscreen);
|
|
23104
|
+
let g = n(P == null ? void 0 : P.placeable);
|
|
23101
23105
|
if (!j && this.prevPlacement) {
|
|
23102
23106
|
let t = this.prevPlacement.variableOffsets[e.crossTileID];
|
|
23103
23107
|
t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
|
|
23104
23108
|
}
|
|
23105
23109
|
}
|
|
23106
23110
|
}
|
|
23107
|
-
if (
|
|
23111
|
+
if (ne = P, j = ne == null ? void 0 : ne.placeable, N = ne == null ? void 0 : ne.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
|
|
23108
23112
|
let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
|
|
23109
23113
|
re = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), re.circles.length && re.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || re.circles.length > 0 && !re.collisionDetected, N && (N = re.offscreen);
|
|
23110
23114
|
}
|
|
23111
23115
|
if (f.iconFeatureIndex && (se = f.iconFeatureIndex), f.iconBox) {
|
|
23112
23116
|
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && ee ? ee : void 0, k);
|
|
23113
|
-
|
|
23117
|
+
te && te.placeable && f.verticalIconBox ? (ie = e(f.verticalIconBox), M = ie.placeable) : (ie = e(f.iconBox), M = ie.placeable), N && (N = ie.offscreen);
|
|
23114
23118
|
}
|
|
23115
23119
|
let le = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, ue = g || e.numIconVertices === 0;
|
|
23116
23120
|
le || ue ? ue ? le || M && (M = j) : j = M && j : M = j = M && j;
|
|
23117
23121
|
let de = M && ie.placeable;
|
|
23118
|
-
if (j &&
|
|
23122
|
+
if (j && ne.placeable && this.collisionIndex.insertCollisionBox(ne.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, te && te.placeable && oe ? oe : ae, m.ID), de && this.collisionIndex.insertCollisionBox(ie.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, se, m.ID), re && j && this.collisionIndex.insertCollisionCircles(re.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, ae, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, ne, ie, re), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
|
|
23119
23123
|
if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
|
|
23120
|
-
this.placements[e.crossTileID] = new St((j || T) && !(
|
|
23124
|
+
this.placements[e.crossTileID] = new St((j || T) && !(ne != null && ne.occluded), (M || E) && !(ie != null && ie.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
|
|
23121
23125
|
};
|
|
23122
23126
|
if (w) {
|
|
23123
23127
|
if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
|
|
@@ -26525,7 +26529,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
26525
26529
|
let t = this.tileManagers[e].getSource().type;
|
|
26526
26530
|
t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
|
|
26527
26531
|
}
|
|
26528
|
-
}, this.map = e, this.dispatcher = new
|
|
26532
|
+
}, this.map = e, this.dispatcher = new te(P(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
|
|
26529
26533
|
let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
|
|
26530
26534
|
this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new zt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), De().on(we, this._rtlPluginLoaded), this.on("data", ((e) => {
|
|
26531
26535
|
if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
|
|
@@ -28688,8 +28692,8 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
28688
28692
|
if (!l) continue;
|
|
28689
28693
|
let d = a ? l.text : l.icon;
|
|
28690
28694
|
if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
|
|
28691
|
-
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, ee,
|
|
28692
|
-
if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (
|
|
28695
|
+
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, ee, P, te = [0, 0], ne = null;
|
|
28696
|
+
if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (te = i.imageAtlasTexture.size, ne = i.imageAtlasTexture, P = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
|
|
28693
28697
|
else {
|
|
28694
28698
|
let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
|
|
28695
28699
|
N = i.imageAtlasTexture, ee = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
|
|
@@ -28706,16 +28710,16 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
28706
28710
|
it(l, e, a, ie, n, b, u, r.layout.get("text-rotation-alignment") === "map", c.toUnwrapped(), v.width, v.height, oe, i);
|
|
28707
28711
|
}
|
|
28708
28712
|
let ue = a && E || le, de = x || ue ? pi : b ? ie : e.transform.clipSpaceToPixelsMatrix, fe = h && r.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, pe;
|
|
28709
|
-
pe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, ue, e, de, ae, oe, M,
|
|
28713
|
+
pe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, ue, e, de, ae, oe, M, te, O) : vr(g.kind, A, S, b, x, ue, e, de, ae, oe, a, M, fe, O) : _r(g.kind, A, S, b, x, ue, e, de, ae, oe, a, M, O);
|
|
28710
28714
|
let me = {
|
|
28711
28715
|
program: k,
|
|
28712
28716
|
buffers: d,
|
|
28713
28717
|
uniformValues: pe,
|
|
28714
28718
|
projectionData: se,
|
|
28715
28719
|
atlasTexture: N,
|
|
28716
|
-
atlasTextureIcon:
|
|
28720
|
+
atlasTextureIcon: ne,
|
|
28717
28721
|
atlasInterpolation: ee,
|
|
28718
|
-
atlasInterpolationIcon:
|
|
28722
|
+
atlasInterpolationIcon: P,
|
|
28719
28723
|
isSDF: h,
|
|
28720
28724
|
hasHalo: fe
|
|
28721
28725
|
};
|
|
@@ -33720,7 +33724,7 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
33720
33724
|
})), e.clearPrewarmedResources = function() {
|
|
33721
33725
|
let e = N;
|
|
33722
33726
|
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), N = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"));
|
|
33723
|
-
}, e.createTileMesh = fn, e.getGlobalDispatcher =
|
|
33727
|
+
}, e.createTileMesh = fn, e.getGlobalDispatcher = ne, e.getMaxParallelImageRequests = function() {
|
|
33724
33728
|
return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
|
|
33725
33729
|
}, e.getRTLTextPluginStatus = function() {
|
|
33726
33730
|
return De().getRTLTextPluginStatus();
|
|
@@ -33731,11 +33735,11 @@ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__P
|
|
|
33731
33735
|
}, e.getWorkerUrl = function() {
|
|
33732
33736
|
return t.c.WORKER_URL;
|
|
33733
33737
|
}, e.importScriptInWorkers = function(e) {
|
|
33734
|
-
return
|
|
33738
|
+
return ne().broadcast("IS", e);
|
|
33735
33739
|
}, e.isTimeFrozen = function() {
|
|
33736
33740
|
return c.isFrozen();
|
|
33737
33741
|
}, e.now = l, e.prewarm = function() {
|
|
33738
|
-
|
|
33742
|
+
P().acquire(A);
|
|
33739
33743
|
}, e.restoreNow = function() {
|
|
33740
33744
|
c.restoreNow();
|
|
33741
33745
|
}, e.setMaxParallelImageRequests = function(e) {
|
|
@@ -33940,8 +33944,8 @@ var Ie = /*#__PURE__*/ Ne(Pe, 9, 1), Le = /*#__PURE__*/ Ne(Fe, 5, 1), I = functi
|
|
|
33940
33944
|
for (y == 16 ? (N = 3 + Re(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + Re(e, d, 7), d += 3) : y == 18 && (N = 11 + Re(e, d, 127), d += 7); N--;) T[D++] = M;
|
|
33941
33945
|
}
|
|
33942
33946
|
}
|
|
33943
|
-
var ee = T.subarray(0, S),
|
|
33944
|
-
h = I(ee), g = I(
|
|
33947
|
+
var ee = T.subarray(0, S), P = T.subarray(S);
|
|
33948
|
+
h = I(ee), g = I(P), p = Ne(ee, h, 1), m = Ne(P, g, 1);
|
|
33945
33949
|
} else He(1);
|
|
33946
33950
|
if (d > _) {
|
|
33947
33951
|
c && He(0);
|
|
@@ -33949,8 +33953,8 @@ var Ie = /*#__PURE__*/ Ne(Pe, 9, 1), Le = /*#__PURE__*/ Ne(Fe, 5, 1), I = functi
|
|
|
33949
33953
|
}
|
|
33950
33954
|
}
|
|
33951
33955
|
s && l(f + 131072);
|
|
33952
|
-
for (var
|
|
33953
|
-
var M = p[ze(e, d) &
|
|
33956
|
+
for (var te = (1 << h) - 1, ne = (1 << g) - 1, re = d;; re = d) {
|
|
33957
|
+
var M = p[ze(e, d) & te], ie = M >> 4;
|
|
33954
33958
|
if (d += M & 15, d > _) {
|
|
33955
33959
|
c && He(0);
|
|
33956
33960
|
break;
|
|
@@ -33965,12 +33969,12 @@ var Ie = /*#__PURE__*/ Ne(Pe, 9, 1), Le = /*#__PURE__*/ Ne(Fe, 5, 1), I = functi
|
|
|
33965
33969
|
var D = ie - 257, oe = xe[D];
|
|
33966
33970
|
ae = Re(e, d, (1 << oe) - 1) + Ee[D], d += oe;
|
|
33967
33971
|
}
|
|
33968
|
-
var se = m[ze(e, d) &
|
|
33972
|
+
var se = m[ze(e, d) & ne], ce = se >> 4;
|
|
33969
33973
|
se || He(3), d += se & 15;
|
|
33970
|
-
var
|
|
33974
|
+
var P = ke[ce];
|
|
33971
33975
|
if (ce > 3) {
|
|
33972
33976
|
var oe = Se[ce];
|
|
33973
|
-
|
|
33977
|
+
P += ze(e, d) & (1 << oe) - 1, d += oe;
|
|
33974
33978
|
}
|
|
33975
33979
|
if (d > _) {
|
|
33976
33980
|
c && He(0);
|
|
@@ -33978,11 +33982,11 @@ var Ie = /*#__PURE__*/ Ne(Pe, 9, 1), Le = /*#__PURE__*/ Ne(Fe, 5, 1), I = functi
|
|
|
33978
33982
|
}
|
|
33979
33983
|
s && l(f + 131072);
|
|
33980
33984
|
var le = f + ae;
|
|
33981
|
-
if (f <
|
|
33982
|
-
var ue = a -
|
|
33985
|
+
if (f < P) {
|
|
33986
|
+
var ue = a - P, de = Math.min(P, le);
|
|
33983
33987
|
for (ue + f < 0 && He(3); f < de; ++f) n[f] = r[ue + f];
|
|
33984
33988
|
}
|
|
33985
|
-
for (; f < le; ++f) n[f] = n[f -
|
|
33989
|
+
for (; f < le; ++f) n[f] = n[f - P];
|
|
33986
33990
|
}
|
|
33987
33991
|
}
|
|
33988
33992
|
t.l = p, t.p = re, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
|
|
@@ -34619,7 +34623,7 @@ function Mt(e, t) {
|
|
|
34619
34623
|
}
|
|
34620
34624
|
//#endregion
|
|
34621
34625
|
//#region src/components/Maplibre/MaplibreWrapper.tsx
|
|
34622
|
-
var Nt =
|
|
34626
|
+
var Nt = a(), Pt = ["<a href=\"https://expofp.com\" target=\"_blank\">ExpoFP</a>", "<a href=\"https://maplibre.org/\" target=\"_blank\">MapLibre</a>"], Ft = "expofp-map-dim", It = "expofp-map-dim-source", Lt = "3d-expofp", W = null, Rt = [
|
|
34623
34627
|
"coalesce",
|
|
34624
34628
|
["get", "name:en"],
|
|
34625
34629
|
["get", "name_en"],
|
|
@@ -34675,18 +34679,18 @@ function Wt() {
|
|
|
34675
34679
|
return e;
|
|
34676
34680
|
}
|
|
34677
34681
|
function Gt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i, onMapReady: a, onMapDimLayerReady: o, onMapLoadError: s, onPointerMissed: c, children: l }) {
|
|
34678
|
-
let u = (0, F.useRef)(null), [
|
|
34682
|
+
let u = (0, F.useRef)(null), [f, p] = (0, F.useState)(), m = (0, F.useRef)(a), h = (0, F.useRef)(o), g = (0, F.useRef)(s), _ = (0, F.useRef)({
|
|
34679
34683
|
geoConfig: t,
|
|
34680
34684
|
tileSource: n,
|
|
34681
34685
|
mapOptions: r,
|
|
34682
34686
|
debug: i
|
|
34683
34687
|
});
|
|
34684
34688
|
return (0, F.useEffect)(() => {
|
|
34685
|
-
|
|
34689
|
+
m.current = a, h.current = o, g.current = s;
|
|
34686
34690
|
}), (0, F.useEffect)(() => {
|
|
34687
34691
|
let e = u.current;
|
|
34688
34692
|
if (!e) return;
|
|
34689
|
-
let { geoConfig: t, tileSource: n, mapOptions: r, debug: i } =
|
|
34693
|
+
let { geoConfig: t, tileSource: n, mapOptions: r, debug: i } = _.current, a = !1, o, s = () => {
|
|
34690
34694
|
let s = Wt(), c = t.bounds ? {
|
|
34691
34695
|
bounds: t.bounds,
|
|
34692
34696
|
fitBoundsOptions: {
|
|
@@ -34710,15 +34714,15 @@ function Gt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34710
34714
|
},
|
|
34711
34715
|
bearingSnap: 0,
|
|
34712
34716
|
aroundCenter: !1,
|
|
34713
|
-
pitchWithRotate:
|
|
34714
|
-
touchPitch:
|
|
34717
|
+
pitchWithRotate: d.pitchEnabled,
|
|
34718
|
+
touchPitch: d.pitchEnabled,
|
|
34715
34719
|
canvasContextAttributes: { antialias: !0 }
|
|
34716
34720
|
});
|
|
34717
34721
|
t.zoomAdjustment && u.jumpTo({ zoom: u.getZoom() + t.zoomAdjustment }), u.once("error", (e) => {
|
|
34718
34722
|
var t, n;
|
|
34719
|
-
u.isStyleLoaded() || (t =
|
|
34723
|
+
u.isStyleLoaded() || (t = g.current) == null || t.call(g, (n = e == null ? void 0 : e.error) == null ? e : n);
|
|
34720
34724
|
});
|
|
34721
|
-
let
|
|
34725
|
+
let f = (e) => {
|
|
34722
34726
|
let t = e == null ? void 0 : e.id;
|
|
34723
34727
|
!t || u.hasImage(t) || u.addImage(t, {
|
|
34724
34728
|
width: 1,
|
|
@@ -34726,26 +34730,26 @@ function Gt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34726
34730
|
data: /* @__PURE__ */ new Uint8Array(4)
|
|
34727
34731
|
});
|
|
34728
34732
|
};
|
|
34729
|
-
u.on("styleimagemissing",
|
|
34730
|
-
let
|
|
34733
|
+
u.on("styleimagemissing", f);
|
|
34734
|
+
let _, v = () => u.triggerRepaint(), y = {
|
|
34731
34735
|
id: Lt,
|
|
34732
34736
|
type: "custom",
|
|
34733
34737
|
renderingMode: "3d",
|
|
34734
34738
|
onAdd(e, t) {
|
|
34735
34739
|
var n;
|
|
34736
|
-
a || (
|
|
34740
|
+
a || (p({
|
|
34737
34741
|
gl: t,
|
|
34738
|
-
requestFrame:
|
|
34739
|
-
onFrame: (e) => (
|
|
34740
|
-
|
|
34742
|
+
requestFrame: v,
|
|
34743
|
+
onFrame: (e) => (_ = e, v(), () => {
|
|
34744
|
+
_ === e && (_ = void 0);
|
|
34741
34745
|
})
|
|
34742
|
-
}), (n =
|
|
34746
|
+
}), (n = m.current) == null || n.call(m, u, v));
|
|
34743
34747
|
},
|
|
34744
34748
|
render(e, t) {
|
|
34745
34749
|
let n = Vt(t == null ? e : t);
|
|
34746
|
-
n && (
|
|
34750
|
+
n && (_ == null || _(n)), i && v();
|
|
34747
34751
|
}
|
|
34748
|
-
},
|
|
34752
|
+
}, b = () => {
|
|
34749
34753
|
var e;
|
|
34750
34754
|
Ut(u), u.getSource(It) || u.addSource(It, {
|
|
34751
34755
|
type: "geojson",
|
|
@@ -34762,16 +34766,16 @@ function Gt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34762
34766
|
delay: 0
|
|
34763
34767
|
}
|
|
34764
34768
|
}
|
|
34765
|
-
}), (e =
|
|
34769
|
+
}), (e = h.current) == null || e.call(h, u), u.addLayer(y);
|
|
34766
34770
|
};
|
|
34767
|
-
u.on("style.load",
|
|
34768
|
-
u.off("style.load",
|
|
34771
|
+
u.on("style.load", b), u.setStyle(n.style, l ? { transformStyle: l } : void 0), o = () => {
|
|
34772
|
+
u.off("style.load", b), u.off("styleimagemissing", f), u.remove();
|
|
34769
34773
|
};
|
|
34770
34774
|
};
|
|
34771
|
-
return i ?
|
|
34775
|
+
return i ? w().then(() => {
|
|
34772
34776
|
a || s();
|
|
34773
34777
|
}) : s(), () => {
|
|
34774
|
-
a = !0, o == null || o(),
|
|
34778
|
+
a = !0, o == null || o(), p(void 0);
|
|
34775
34779
|
};
|
|
34776
34780
|
}, []), /* @__PURE__ */ (0, Nt.jsx)("div", {
|
|
34777
34781
|
ref: u,
|
|
@@ -34782,8 +34786,8 @@ function Gt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34782
34786
|
width: "100%",
|
|
34783
34787
|
height: "100%"
|
|
34784
34788
|
},
|
|
34785
|
-
children:
|
|
34786
|
-
...
|
|
34789
|
+
children: f && /* @__PURE__ */ (0, Nt.jsx)(D, {
|
|
34790
|
+
...f,
|
|
34787
34791
|
scene: e,
|
|
34788
34792
|
debug: i,
|
|
34789
34793
|
onPointerMissed: c,
|
|
@@ -34810,20 +34814,20 @@ function en(e, t, n) {
|
|
|
34810
34814
|
}
|
|
34811
34815
|
function tn(e, t) {
|
|
34812
34816
|
let n = [
|
|
34813
|
-
|
|
34814
|
-
|
|
34815
|
-
|
|
34816
|
-
|
|
34817
|
+
ee(e.min.x, e.min.y, t),
|
|
34818
|
+
ee(e.max.x, e.min.y, t),
|
|
34819
|
+
ee(e.max.x, e.max.y, t),
|
|
34820
|
+
ee(e.min.x, e.max.y, t)
|
|
34817
34821
|
], r = n.map(([e]) => e), i = n.map(([, e]) => e);
|
|
34818
34822
|
return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
|
|
34819
34823
|
}
|
|
34820
34824
|
var nn = 512;
|
|
34821
34825
|
function rn(e, t, n, r, i) {
|
|
34822
34826
|
let a = [
|
|
34823
|
-
|
|
34824
|
-
|
|
34825
|
-
|
|
34826
|
-
|
|
34827
|
+
ee(e.min.x, e.min.y, t),
|
|
34828
|
+
ee(e.max.x, e.min.y, t),
|
|
34829
|
+
ee(e.max.x, e.max.y, t),
|
|
34830
|
+
ee(e.min.x, e.max.y, t)
|
|
34827
34831
|
].map(([e, t]) => _e.MercatorCoordinate.fromLngLat({
|
|
34828
34832
|
lng: e,
|
|
34829
34833
|
lat: t
|
|
@@ -34835,9 +34839,9 @@ function rn(e, t, n, r, i) {
|
|
|
34835
34839
|
if (p <= 0 || m <= 0) return null;
|
|
34836
34840
|
let h = Math.min(p / (d * nn), m / (f * nn));
|
|
34837
34841
|
if (!(h > 0)) return null;
|
|
34838
|
-
let g = nn * h, _ = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / g, v = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / g, { lng: y, lat:
|
|
34842
|
+
let g = nn * h, _ = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / g, v = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / g, { lng: y, lat: b } = new _e.MercatorCoordinate(_ * s + v * c, -_ * c + v * s).toLngLat();
|
|
34839
34843
|
return {
|
|
34840
|
-
center: [y,
|
|
34844
|
+
center: [y, b],
|
|
34841
34845
|
zoom: Math.log2(h)
|
|
34842
34846
|
};
|
|
34843
34847
|
}
|
|
@@ -34850,7 +34854,7 @@ function an(e, t) {
|
|
|
34850
34854
|
};
|
|
34851
34855
|
}
|
|
34852
34856
|
function on(e = 0) {
|
|
34853
|
-
let t =
|
|
34857
|
+
let t = d.canvasVisibleRectPx, n = d.screenSize;
|
|
34854
34858
|
return t ? {
|
|
34855
34859
|
top: Math.max(0, t.min.y) + e,
|
|
34856
34860
|
bottom: Math.max(0, n.height - t.max.y) + e,
|
|
@@ -34869,8 +34873,9 @@ function sn(e, t, n) {
|
|
|
34869
34873
|
}
|
|
34870
34874
|
function K() {
|
|
34871
34875
|
var e, t;
|
|
34872
|
-
|
|
34873
|
-
|
|
34876
|
+
let n = (e = j()) == null || (e = e.properties) == null ? void 0 : e.config;
|
|
34877
|
+
if (!n) return null;
|
|
34878
|
+
let r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = M(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
|
|
34874
34879
|
return {
|
|
34875
34880
|
center: [r, i],
|
|
34876
34881
|
bearing: o,
|
|
@@ -34931,9 +34936,9 @@ function q(e, t, n, r = {}) {
|
|
|
34931
34936
|
}
|
|
34932
34937
|
//#endregion
|
|
34933
34938
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
34934
|
-
var cn =
|
|
34939
|
+
var cn = d, J = 15, ln = 24, un = 20;
|
|
34935
34940
|
function dn(e) {
|
|
34936
|
-
return
|
|
34941
|
+
return re(e, ae(e, v())).expand(un);
|
|
34937
34942
|
}
|
|
34938
34943
|
function fn(e, t) {
|
|
34939
34944
|
return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
|
|
@@ -34941,9 +34946,9 @@ function fn(e, t) {
|
|
|
34941
34946
|
function pn(e, t, n) {
|
|
34942
34947
|
var r;
|
|
34943
34948
|
if (n.length !== 1) return !1;
|
|
34944
|
-
let i = (r = n[0]) == null ? void 0 : r.id, a =
|
|
34949
|
+
let i = (r = n[0]) == null ? void 0 : r.id, a = u.poiMarkerStore.markers.find((e) => e.boothId === i);
|
|
34945
34950
|
if (!a) return !1;
|
|
34946
|
-
let o =
|
|
34951
|
+
let o = ee(a.center.x, a.center.y, t.gpsConfig);
|
|
34947
34952
|
return sn(e, o, on(ln)) || e.easeTo({
|
|
34948
34953
|
center: o,
|
|
34949
34954
|
zoom: fn(e, J),
|
|
@@ -34953,7 +34958,7 @@ function pn(e, t, n) {
|
|
|
34953
34958
|
}), !0;
|
|
34954
34959
|
}
|
|
34955
34960
|
function mn(e, t, n) {
|
|
34956
|
-
|
|
34961
|
+
f(() => cn.moveToBooths, (n) => {
|
|
34957
34962
|
let r = e.current;
|
|
34958
34963
|
if (!n || !r || !t) return;
|
|
34959
34964
|
let i = n.filter((e) => e.rect);
|
|
@@ -34962,57 +34967,57 @@ function mn(e, t, n) {
|
|
|
34962
34967
|
cn.moveToBooths = null;
|
|
34963
34968
|
return;
|
|
34964
34969
|
}
|
|
34965
|
-
q(r, dn(
|
|
34970
|
+
q(r, dn(g.fromUnion(...i.map((e) => e.rect))), t), cn.moveToBooths = null;
|
|
34966
34971
|
}
|
|
34967
|
-
}),
|
|
34972
|
+
}), f(() => cn.moveToRect, (n) => {
|
|
34968
34973
|
let r = e.current;
|
|
34969
34974
|
!n || !r || !t || (q(r, n, t, { paddingPercent: cn.moveToRectPaddingPercent }), cn.moveToRect = null, cn.moveToRectPaddingPercent = null);
|
|
34970
|
-
}),
|
|
34975
|
+
}), f(() => cn.zoomBy, (t) => {
|
|
34971
34976
|
let n = e.current;
|
|
34972
34977
|
!t || !n || (n.flyTo({
|
|
34973
34978
|
zoom: n.getZoom() + (t > 1 ? .5 : -.5),
|
|
34974
34979
|
animate: !0,
|
|
34975
34980
|
duration: 500
|
|
34976
34981
|
}), cn.zoomBy = null);
|
|
34977
|
-
}),
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34982
|
+
}), f(() => [
|
|
34983
|
+
d.moveToLocation,
|
|
34984
|
+
u.maplibreStore.cameraPort,
|
|
34985
|
+
u.routeStore.currentPosition
|
|
34981
34986
|
], ([n]) => {
|
|
34982
34987
|
if (!n) return;
|
|
34983
|
-
let r = e.current, i =
|
|
34988
|
+
let r = e.current, i = u.routeStore.currentPosition;
|
|
34984
34989
|
if (!i) {
|
|
34985
|
-
|
|
34990
|
+
d.moveToLocation = !1;
|
|
34986
34991
|
return;
|
|
34987
34992
|
}
|
|
34988
34993
|
if (!r) return;
|
|
34989
34994
|
let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o);
|
|
34990
|
-
|
|
34995
|
+
d.moveToLocation = !1;
|
|
34991
34996
|
let c;
|
|
34992
34997
|
if (s) c = [a, o];
|
|
34993
34998
|
else {
|
|
34994
34999
|
if (!t) return;
|
|
34995
|
-
c =
|
|
35000
|
+
c = ee(i.x, i.y, t.gpsConfig);
|
|
34996
35001
|
}
|
|
34997
35002
|
r.flyTo({
|
|
34998
35003
|
center: c,
|
|
34999
35004
|
animate: !0,
|
|
35000
35005
|
duration: 1e3
|
|
35001
35006
|
});
|
|
35002
|
-
}),
|
|
35007
|
+
}), f(() => d.centerMap, (r) => {
|
|
35003
35008
|
let i = e.current;
|
|
35004
35009
|
if (!(!r || !i || !t)) {
|
|
35005
|
-
if (!(
|
|
35006
|
-
let { rect: e } =
|
|
35007
|
-
layerViewbox:
|
|
35008
|
-
explicitArea:
|
|
35009
|
-
layerRectangle:
|
|
35010
|
+
if (!(d.list.type === "search" && !d.list.text)) {
|
|
35011
|
+
let { rect: e } = oe({
|
|
35012
|
+
layerViewbox: u.layerStore.viewboxRectangle,
|
|
35013
|
+
explicitArea: h() ? v() : null,
|
|
35014
|
+
layerRectangle: u.layerStore.rectangle,
|
|
35010
35015
|
sceneDef: n,
|
|
35011
|
-
svgArea:
|
|
35016
|
+
svgArea: v()
|
|
35012
35017
|
});
|
|
35013
35018
|
q(i, e, t);
|
|
35014
35019
|
}
|
|
35015
|
-
|
|
35020
|
+
d.centerMap = !1;
|
|
35016
35021
|
}
|
|
35017
35022
|
});
|
|
35018
35023
|
}
|
|
@@ -35046,27 +35051,27 @@ function Cn(e, t) {
|
|
|
35046
35051
|
var n, r, i;
|
|
35047
35052
|
if (!e) return;
|
|
35048
35053
|
e.setMinZoom((n = t.minZoom) == null ? null : n), e.setMaxZoom((r = t.maxZoom) == null ? null : r), e.setMaxBounds((i = t.maxBounds) == null ? null : i);
|
|
35049
|
-
let { pitch: a, maxPitch: o } = t, s =
|
|
35054
|
+
let { pitch: a, maxPitch: o } = t, s = d.animatePitch, c = e.getPitch(), l = !!(s && a != null && o != null && o < c);
|
|
35050
35055
|
l || e.setMaxPitch(o == null ? null : o), !(a == null || c === a) && (s ? (e.easeTo({
|
|
35051
35056
|
pitch: a,
|
|
35052
|
-
duration:
|
|
35057
|
+
duration: d.mapSettings.pitchtime
|
|
35053
35058
|
}), l && e.once("moveend", () => e.setMaxPitch(o))) : e.jumpTo({ pitch: a }));
|
|
35054
35059
|
}
|
|
35055
35060
|
function wn() {
|
|
35056
35061
|
var e, t, n;
|
|
35057
|
-
let r = (e = (t =
|
|
35062
|
+
let r = (e = (t = u.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
|
|
35058
35063
|
return r != null && r.style ? {
|
|
35059
35064
|
style: r.style,
|
|
35060
35065
|
offline: r.offline
|
|
35061
35066
|
} : r != null && r.styleUrl ? {
|
|
35062
35067
|
style: r.styleUrl,
|
|
35063
35068
|
offline: r.offline
|
|
35064
|
-
} : vn(
|
|
35069
|
+
} : vn((n = j()) == null || (n = n.properties) == null || (n = n.config) == null ? void 0 : n.style, m.backgroundColor) === "dark" ? bn : yn;
|
|
35065
35070
|
}
|
|
35066
35071
|
//#endregion
|
|
35067
35072
|
//#region src/components/Maplibre/useDimming.ts
|
|
35068
35073
|
function Tn() {
|
|
35069
|
-
return
|
|
35074
|
+
return d.dimmed && !u.poiMarkerStore.dimSuppressed;
|
|
35070
35075
|
}
|
|
35071
35076
|
function En(e, t) {
|
|
35072
35077
|
let n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useCallback)((e) => {
|
|
@@ -35079,12 +35084,12 @@ function En(e, t) {
|
|
|
35079
35084
|
xn(e.current, t * he);
|
|
35080
35085
|
}), a = pe((e) => {
|
|
35081
35086
|
let n = t.current;
|
|
35082
|
-
n && de(n, e * 1) &&
|
|
35087
|
+
n && de(n, e * 1) && E(n.rootLayer);
|
|
35083
35088
|
});
|
|
35084
35089
|
return n.current = i, r.current = a, () => {
|
|
35085
35090
|
i.stop(), a.stop(), n.current = null, r.current = null;
|
|
35086
35091
|
};
|
|
35087
|
-
}, [e, t]),
|
|
35092
|
+
}, [e, t]), f(() => Tn(), () => i()), {
|
|
35088
35093
|
mapDimAnimatorRef: n,
|
|
35089
35094
|
venueDimAnimatorRef: r,
|
|
35090
35095
|
applyDimmingTarget: i,
|
|
@@ -35105,7 +35110,7 @@ function Dn(e, t) {
|
|
|
35105
35110
|
e.originalEvent && (r = !0, (t = (n = window).__resett) == null || t.call(n));
|
|
35106
35111
|
}, a = () => {
|
|
35107
35112
|
var e, t;
|
|
35108
|
-
|
|
35113
|
+
P(), r && (r = !1, (e = (t = window).__resett) == null || e.call(t));
|
|
35109
35114
|
};
|
|
35110
35115
|
return n.on("movestart", i), n.on("moveend", a), () => {
|
|
35111
35116
|
n.off("movestart", i), n.off("moveend", a);
|
|
@@ -35121,14 +35126,14 @@ function On(e, t = /* @__PURE__ */ new Map()) {
|
|
|
35121
35126
|
let n = (r = t.get(e.name)) == null ? [] : r;
|
|
35122
35127
|
n.push(e), t.set(e.name, n);
|
|
35123
35128
|
}
|
|
35124
|
-
for (let r of (n = e.children) == null ? [] : n)
|
|
35129
|
+
for (let r of (n = e.children) == null ? [] : n) b(r) && On(r, t);
|
|
35125
35130
|
return t;
|
|
35126
35131
|
}
|
|
35127
35132
|
//#endregion
|
|
35128
35133
|
//#region src/components/Maplibre/useLayerVisibilitySync.ts
|
|
35129
35134
|
function kn(e, t, n) {
|
|
35130
35135
|
let r = (0, F.useRef)(null), i = (0, F.useRef)(null);
|
|
35131
|
-
|
|
35136
|
+
f(() => u.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
|
|
35132
35137
|
var a, o;
|
|
35133
35138
|
if (!e) return;
|
|
35134
35139
|
((a = r.current) == null ? void 0 : a.rootLayer) !== e.rootLayer && (r.current = {
|
|
@@ -35136,19 +35141,19 @@ function kn(e, t, n) {
|
|
|
35136
35141
|
defsByName: On(e.rootLayer)
|
|
35137
35142
|
});
|
|
35138
35143
|
let s = r.current.defsByName, c = [];
|
|
35139
|
-
for (let e of
|
|
35144
|
+
for (let e of u.layerStore.layers) {
|
|
35140
35145
|
let t = s.get(e.name);
|
|
35141
35146
|
if (t != null && t.length) for (let n of t) {
|
|
35142
35147
|
let t = !e.visible;
|
|
35143
35148
|
n.hidden !== t && (n.hidden = t, c.push(n));
|
|
35144
35149
|
}
|
|
35145
35150
|
}
|
|
35146
|
-
c.length &&
|
|
35147
|
-
let l =
|
|
35151
|
+
c.length && E(...c);
|
|
35152
|
+
let l = u.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
|
|
35148
35153
|
if (!l || i.current === l.name) return;
|
|
35149
35154
|
i.current = l.name;
|
|
35150
|
-
let
|
|
35151
|
-
q(t.current,
|
|
35155
|
+
let d = (o = l.viewbox) == null ? l.rect : o;
|
|
35156
|
+
q(t.current, d == null ? null : d, n);
|
|
35152
35157
|
}, void 0, [
|
|
35153
35158
|
e,
|
|
35154
35159
|
t,
|
|
@@ -35163,25 +35168,25 @@ var An = "expofp-poi", jn = "expofp-poi-clusters", Mn = "expofp-poi-cluster-coun
|
|
|
35163
35168
|
Nn,
|
|
35164
35169
|
Pn
|
|
35165
35170
|
], Ln = In.filter((e) => e !== Mn), Rn = (e) => `expofp-poi-icon-${e}`;
|
|
35166
|
-
function zn(e, t,
|
|
35171
|
+
function zn(e, t, i) {
|
|
35167
35172
|
(0, F.useEffect)(() => {
|
|
35168
|
-
var
|
|
35169
|
-
if (!
|
|
35170
|
-
let
|
|
35171
|
-
if (!e || !
|
|
35172
|
-
let { gpsConfig: c } =
|
|
35173
|
-
|
|
35174
|
-
},
|
|
35175
|
-
let t =
|
|
35173
|
+
var a;
|
|
35174
|
+
if (!y()) return;
|
|
35175
|
+
let o = t.current;
|
|
35176
|
+
if (!e || !o || !i) return;
|
|
35177
|
+
let { gpsConfig: c } = i, l = /* @__PURE__ */ new Set(), d = window.devicePixelRatio || 1, f = O(36, d, ((a = m.colors) == null || (a = a.booths) == null ? void 0 : a.selected) || "#3b6ef5"), p = (e) => ee(e.center.x, e.center.y, c), h = (e, t) => {
|
|
35178
|
+
o.hasImage(e) && o.removeImage(e), o.addImage(e, t, { pixelRatio: d }), l.add(e);
|
|
35179
|
+
}, _ = (e) => {
|
|
35180
|
+
let t = u.poiMarkerStore.markers, n = new Set(t.map((e) => Rn(e.boothId)));
|
|
35176
35181
|
n.add(Fn);
|
|
35177
|
-
for (let e of [...l]) n.has(e) || (
|
|
35182
|
+
for (let e of [...l]) n.has(e) || (o.hasImage(e) && o.removeImage(e), l.delete(e));
|
|
35178
35183
|
for (let n of t) {
|
|
35179
35184
|
let t = Rn(n.boothId);
|
|
35180
|
-
(e || !l.has(t)) &&
|
|
35185
|
+
(e || !l.has(t)) && h(t, n.icon);
|
|
35181
35186
|
}
|
|
35182
|
-
l.has(Fn) ||
|
|
35183
|
-
},
|
|
35184
|
-
let e =
|
|
35187
|
+
l.has(Fn) || h(Fn, f);
|
|
35188
|
+
}, v = () => {
|
|
35189
|
+
let e = u.poiMarkerStore.selectedMarkerId, t = u.poiMarkerStore.outdoorFilter, n = !t.active, r = u.poiMarkerStore.markers;
|
|
35185
35190
|
return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
|
|
35186
35191
|
cluster: n,
|
|
35187
35192
|
data: {
|
|
@@ -35190,7 +35195,7 @@ function zn(e, t, a) {
|
|
|
35190
35195
|
type: "Feature",
|
|
35191
35196
|
geometry: {
|
|
35192
35197
|
type: "Point",
|
|
35193
|
-
coordinates:
|
|
35198
|
+
coordinates: p(t)
|
|
35194
35199
|
},
|
|
35195
35200
|
properties: {
|
|
35196
35201
|
boothId: t.boothId,
|
|
@@ -35200,10 +35205,10 @@ function zn(e, t, a) {
|
|
|
35200
35205
|
}))
|
|
35201
35206
|
}
|
|
35202
35207
|
};
|
|
35203
|
-
},
|
|
35208
|
+
}, b = () => {
|
|
35204
35209
|
var e, t, n;
|
|
35205
35210
|
let r = null;
|
|
35206
|
-
for (let n of (e = (t =
|
|
35211
|
+
for (let n of (e = (t = o.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
|
|
35207
35212
|
var i;
|
|
35208
35213
|
if (n.type !== "symbol") continue;
|
|
35209
35214
|
let e = (i = n.layout) == null ? void 0 : i["text-font"];
|
|
@@ -35213,17 +35218,17 @@ function zn(e, t, a) {
|
|
|
35213
35218
|
}
|
|
35214
35219
|
}
|
|
35215
35220
|
return (n = r) == null ? ["Noto Sans Regular"] : n;
|
|
35216
|
-
},
|
|
35217
|
-
for (let e of In)
|
|
35218
|
-
|
|
35219
|
-
},
|
|
35220
|
-
if (
|
|
35221
|
+
}, x = null, S = () => {
|
|
35222
|
+
for (let e of In) o.getLayer(e) && o.removeLayer(e);
|
|
35223
|
+
o.getSource(An) && o.removeSource(An), x = null;
|
|
35224
|
+
}, C = (e, t) => {
|
|
35225
|
+
if (x !== null && x !== t && S(), o.getSource(An) || (o.addSource(An, {
|
|
35221
35226
|
type: "geojson",
|
|
35222
35227
|
data: e,
|
|
35223
35228
|
cluster: t,
|
|
35224
35229
|
clusterRadius: 50,
|
|
35225
35230
|
clusterMinPoints: 3
|
|
35226
|
-
}),
|
|
35231
|
+
}), x = t), o.getLayer(jn)) return;
|
|
35227
35232
|
let i = ["!", ["has", "point_count"]], a = [
|
|
35228
35233
|
"==",
|
|
35229
35234
|
[
|
|
@@ -35233,7 +35238,7 @@ function zn(e, t, a) {
|
|
|
35233
35238
|
],
|
|
35234
35239
|
!0
|
|
35235
35240
|
];
|
|
35236
|
-
|
|
35241
|
+
o.addLayer({
|
|
35237
35242
|
id: jn,
|
|
35238
35243
|
type: "circle",
|
|
35239
35244
|
source: An,
|
|
@@ -35245,20 +35250,20 @@ function zn(e, t, a) {
|
|
|
35245
35250
|
"circle-stroke-width": 2,
|
|
35246
35251
|
"circle-pitch-alignment": "viewport"
|
|
35247
35252
|
}
|
|
35248
|
-
}),
|
|
35253
|
+
}), o.addLayer({
|
|
35249
35254
|
id: Mn,
|
|
35250
35255
|
type: "symbol",
|
|
35251
35256
|
source: An,
|
|
35252
35257
|
filter: ["has", "point_count"],
|
|
35253
35258
|
layout: {
|
|
35254
35259
|
"text-field": ["get", "point_count_abbreviated"],
|
|
35255
|
-
"text-font":
|
|
35260
|
+
"text-font": b(),
|
|
35256
35261
|
"text-size": 14,
|
|
35257
35262
|
"text-allow-overlap": !0,
|
|
35258
35263
|
"text-ignore-placement": !0
|
|
35259
35264
|
},
|
|
35260
35265
|
paint: { "text-color": "#ffffff" }
|
|
35261
|
-
}),
|
|
35266
|
+
}), o.addLayer({
|
|
35262
35267
|
id: Nn,
|
|
35263
35268
|
type: "symbol",
|
|
35264
35269
|
source: An,
|
|
@@ -35273,7 +35278,7 @@ function zn(e, t, a) {
|
|
|
35273
35278
|
"icon-allow-overlap": !0,
|
|
35274
35279
|
"icon-ignore-placement": !0
|
|
35275
35280
|
}
|
|
35276
|
-
}),
|
|
35281
|
+
}), o.addLayer({
|
|
35277
35282
|
id: Pn,
|
|
35278
35283
|
type: "symbol",
|
|
35279
35284
|
source: An,
|
|
@@ -35290,72 +35295,72 @@ function zn(e, t, a) {
|
|
|
35290
35295
|
}
|
|
35291
35296
|
});
|
|
35292
35297
|
}, w = () => {
|
|
35293
|
-
if (!
|
|
35298
|
+
if (!o.getLayer(jn)) return;
|
|
35294
35299
|
let e = Tn() ? 1 - he : 1;
|
|
35295
|
-
|
|
35300
|
+
o.setPaintProperty(jn, "circle-opacity", e), o.setPaintProperty(jn, "circle-stroke-opacity", e), o.setPaintProperty(Mn, "text-opacity", e), o.setPaintProperty(Nn, "icon-opacity", e), o.setPaintProperty(Pn, "icon-opacity", e);
|
|
35296
35301
|
}, T = (e = !1) => {
|
|
35297
35302
|
var t;
|
|
35298
|
-
|
|
35299
|
-
let { cluster: n, data: r } =
|
|
35300
|
-
|
|
35301
|
-
},
|
|
35303
|
+
_(e);
|
|
35304
|
+
let { cluster: n, data: r } = v();
|
|
35305
|
+
C(r, n), (t = o.getSource(An)) == null || t.setData(r), w();
|
|
35306
|
+
}, E = (e) => {
|
|
35302
35307
|
if (!e.length) return;
|
|
35303
35308
|
let t = on(50);
|
|
35304
|
-
if (e.every((e) => sn(
|
|
35305
|
-
let n = tn(
|
|
35309
|
+
if (e.every((e) => sn(o, p(e), t))) return;
|
|
35310
|
+
let n = tn(g.fromPoints(e.map((e) => e.center)), c), r = o.cameraForBounds(n, {
|
|
35306
35311
|
padding: t,
|
|
35307
|
-
bearing:
|
|
35312
|
+
bearing: i.bearing
|
|
35308
35313
|
});
|
|
35309
|
-
!(r != null && r.center) || typeof r.zoom != "number" ||
|
|
35314
|
+
!(r != null && r.center) || typeof r.zoom != "number" || o.easeTo({
|
|
35310
35315
|
center: r.center,
|
|
35311
|
-
zoom: Math.min(
|
|
35312
|
-
bearing:
|
|
35316
|
+
zoom: Math.min(o.getZoom(), r.zoom),
|
|
35317
|
+
bearing: i.bearing,
|
|
35313
35318
|
duration: 500,
|
|
35314
35319
|
essential: !0
|
|
35315
35320
|
});
|
|
35316
|
-
},
|
|
35321
|
+
}, D = (e) => {
|
|
35317
35322
|
var t;
|
|
35318
35323
|
let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
|
|
35319
35324
|
if (typeof n != "number") return;
|
|
35320
|
-
let r =
|
|
35321
|
-
r &&
|
|
35322
|
-
},
|
|
35325
|
+
let r = u.boothStore.boothById.get(n);
|
|
35326
|
+
r && u.clickBooth(r);
|
|
35327
|
+
}, k = (e) => {
|
|
35323
35328
|
var t, n, r;
|
|
35324
|
-
let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id,
|
|
35325
|
-
if (typeof a != "number" || !
|
|
35329
|
+
let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, s = o.getSource(An);
|
|
35330
|
+
if (typeof a != "number" || !s || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
|
|
35326
35331
|
let [c = 0, l = 0] = i.geometry.coordinates;
|
|
35327
|
-
|
|
35328
|
-
|
|
35332
|
+
s.getClusterExpansionZoom(a).then((e) => {
|
|
35333
|
+
o.easeTo({
|
|
35329
35334
|
center: [c, l],
|
|
35330
|
-
zoom: Math.min(e,
|
|
35335
|
+
zoom: Math.min(e, o.getMaxZoom()),
|
|
35331
35336
|
duration: 500
|
|
35332
35337
|
});
|
|
35333
35338
|
});
|
|
35334
35339
|
};
|
|
35335
|
-
|
|
35336
|
-
let n = Ln.filter((e) => !!
|
|
35340
|
+
o.on("click", Nn, D), o.on("click", Pn, D), o.on("click", jn, k), A.set((e, t) => {
|
|
35341
|
+
let n = Ln.filter((e) => !!o.getLayer(e));
|
|
35337
35342
|
if (!n.length) return !1;
|
|
35338
|
-
let r =
|
|
35339
|
-
return
|
|
35343
|
+
let r = o.project(ee(e, t, c));
|
|
35344
|
+
return o.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
|
|
35340
35345
|
});
|
|
35341
35346
|
let j = () => {
|
|
35342
35347
|
l.clear(), T(!0);
|
|
35343
35348
|
};
|
|
35344
|
-
|
|
35345
|
-
let
|
|
35346
|
-
T(),
|
|
35347
|
-
}),
|
|
35349
|
+
o.on("style.load", j);
|
|
35350
|
+
let M = s(() => u.poiMarkerStore.markers, () => T(!0)), N = s(() => u.poiMarkerStore.selectedMarkerId, () => T()), P = s(() => u.poiMarkerStore.outdoorFilter.key, () => {
|
|
35351
|
+
T(), E(u.poiMarkerStore.outdoorFilter.matchingMarkers);
|
|
35352
|
+
}), te = s(() => Tn(), () => w());
|
|
35348
35353
|
return T(!0), () => {
|
|
35349
|
-
|
|
35354
|
+
M(), N(), P(), te(), A.set(null), o.off("style.load", j), o.off("click", Nn, D), o.off("click", Pn, D), o.off("click", jn, k);
|
|
35350
35355
|
try {
|
|
35351
|
-
|
|
35352
|
-
for (let e of l)
|
|
35356
|
+
S();
|
|
35357
|
+
for (let e of l) o.hasImage(e) && o.removeImage(e);
|
|
35353
35358
|
} catch {}
|
|
35354
35359
|
};
|
|
35355
35360
|
}, [
|
|
35356
35361
|
e,
|
|
35357
35362
|
t,
|
|
35358
|
-
|
|
35363
|
+
i
|
|
35359
35364
|
]);
|
|
35360
35365
|
}
|
|
35361
35366
|
//#endregion
|
|
@@ -35363,9 +35368,9 @@ function zn(e, t, a) {
|
|
|
35363
35368
|
function Bn(e, t) {
|
|
35364
35369
|
(0, F.useEffect)(() => {
|
|
35365
35370
|
if (!e) return;
|
|
35366
|
-
let n =
|
|
35371
|
+
let n = N({
|
|
35367
35372
|
scene: e,
|
|
35368
|
-
store:
|
|
35373
|
+
store: u,
|
|
35369
35374
|
canvas: t
|
|
35370
35375
|
}), r = ue({ scene: e });
|
|
35371
35376
|
return () => {
|
|
@@ -35551,61 +35556,61 @@ function sr(e, t, n) {
|
|
|
35551
35556
|
};
|
|
35552
35557
|
}
|
|
35553
35558
|
function cr() {
|
|
35554
|
-
|
|
35555
|
-
|
|
35559
|
+
u.poiMarkerStore.clear(), c(() => {
|
|
35560
|
+
u.layerStore.layers.forEach((e) => {
|
|
35556
35561
|
e.configured = !1, e.children = [], e.loaded = !1;
|
|
35557
|
-
}),
|
|
35562
|
+
}), u.layerStore.layersLoaded = !1;
|
|
35558
35563
|
});
|
|
35559
35564
|
}
|
|
35560
|
-
var lr =
|
|
35565
|
+
var lr = l(function({ viewMode: e }) {
|
|
35561
35566
|
var t;
|
|
35562
|
-
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(!1),
|
|
35563
|
-
layerViewbox:
|
|
35564
|
-
explicitArea:
|
|
35565
|
-
layerRectangle:
|
|
35567
|
+
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(!1), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null), f = (0, F.useRef)(null), g = (0, F.useRef)(null), y = (0, F.useMemo)(() => K(), []), b = (0, F.useMemo)(() => oe({
|
|
35568
|
+
layerViewbox: u.layerStore.viewboxRectangle,
|
|
35569
|
+
explicitArea: h() ? v() : null,
|
|
35570
|
+
layerRectangle: u.layerStore.rectangle,
|
|
35566
35571
|
sceneDef: n,
|
|
35567
|
-
svgArea:
|
|
35568
|
-
}), [n]),
|
|
35569
|
-
if (!
|
|
35570
|
-
let e =
|
|
35571
|
-
e &&
|
|
35572
|
-
let n =
|
|
35573
|
-
width:
|
|
35574
|
-
height:
|
|
35572
|
+
svgArea: v()
|
|
35573
|
+
}), [n]), x = b.rect, w = (0, F.useMemo)(() => {
|
|
35574
|
+
if (!y) return null;
|
|
35575
|
+
let e = ne(b.source) ? 0 : ae(x, v()), t = on(0);
|
|
35576
|
+
e && d.screenSize && (t.left += d.screenSize.width * e, t.right += d.screenSize.width * e, t.top += d.screenSize.height * e, t.bottom += d.screenSize.height * e);
|
|
35577
|
+
let n = d.screenSize ? rn(x, y.gpsConfig, y.bearing, {
|
|
35578
|
+
width: d.screenSize.width,
|
|
35579
|
+
height: d.screenSize.height
|
|
35575
35580
|
}, t) : null;
|
|
35576
35581
|
return n ? {
|
|
35577
35582
|
center: n.center,
|
|
35578
|
-
bearing:
|
|
35583
|
+
bearing: y.bearing,
|
|
35579
35584
|
zoom: n.zoom
|
|
35580
35585
|
} : {
|
|
35581
|
-
center:
|
|
35582
|
-
bearing:
|
|
35583
|
-
zoom:
|
|
35584
|
-
bounds: tn(
|
|
35586
|
+
center: y.center,
|
|
35587
|
+
bearing: y.bearing,
|
|
35588
|
+
zoom: y.zoom,
|
|
35589
|
+
bounds: tn(x, y.gpsConfig),
|
|
35585
35590
|
fitPadding: t,
|
|
35586
35591
|
zoomAdjustment: Kt
|
|
35587
35592
|
};
|
|
35588
35593
|
}, [
|
|
35589
|
-
|
|
35590
|
-
|
|
35591
|
-
|
|
35592
|
-
]),
|
|
35594
|
+
y,
|
|
35595
|
+
b,
|
|
35596
|
+
x
|
|
35597
|
+
]), E = (0, F.useMemo)(() => {
|
|
35593
35598
|
var e;
|
|
35594
|
-
return
|
|
35595
|
-
}, [
|
|
35599
|
+
return y ? Kn(y.gpsConfig, (e = k()) == null ? void 0 : e.getAttribute("units")) : null;
|
|
35600
|
+
}, [y]), D = d.mapSettings.pitchdegrees, O = d.maxPitch, A = (0, F.useMemo)(() => {
|
|
35596
35601
|
let t = e === "map2d";
|
|
35597
35602
|
return {
|
|
35598
|
-
pitch: t ? 0 :
|
|
35599
|
-
maxPitch: t ? 0 :
|
|
35603
|
+
pitch: t ? 0 : D,
|
|
35604
|
+
maxPitch: t ? 0 : O,
|
|
35600
35605
|
minZoom: 12
|
|
35601
35606
|
};
|
|
35602
35607
|
}, [
|
|
35603
35608
|
e,
|
|
35604
|
-
|
|
35605
|
-
|
|
35606
|
-
]),
|
|
35607
|
-
if (!n || !
|
|
35608
|
-
let e = n.rootLayer.children, t =
|
|
35609
|
+
D,
|
|
35610
|
+
O
|
|
35611
|
+
]), j = (0, F.useRef)(A), M = (0, F.useMemo)(() => wn(), []), N = (0, F.useMemo)(() => {
|
|
35612
|
+
if (!n || !E) return null;
|
|
35613
|
+
let e = n.rootLayer.children, t = S(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
|
|
35609
35614
|
return {
|
|
35610
35615
|
...n,
|
|
35611
35616
|
rootLayer: {
|
|
@@ -35613,77 +35618,77 @@ var lr = re(function({ viewMode: e }) {
|
|
|
35613
35618
|
children: t
|
|
35614
35619
|
},
|
|
35615
35620
|
background: void 0,
|
|
35616
|
-
staticTransform:
|
|
35621
|
+
staticTransform: E
|
|
35617
35622
|
};
|
|
35618
|
-
}, [n,
|
|
35623
|
+
}, [n, E]), ee = (0, F.useRef)(null);
|
|
35619
35624
|
(0, F.useEffect)(() => {
|
|
35620
|
-
|
|
35621
|
-
}, [
|
|
35622
|
-
if (
|
|
35623
|
-
}, [
|
|
35624
|
-
let { mapDimAnimatorRef:
|
|
35625
|
+
ee.current = N;
|
|
35626
|
+
}, [N]), (0, F.useEffect)(() => {
|
|
35627
|
+
if (N) return ie(N), () => ie(void 0);
|
|
35628
|
+
}, [N]);
|
|
35629
|
+
let { mapDimAnimatorRef: P, venueDimAnimatorRef: re, applyDimmingTarget: ue, handleMapDimLayerReady: de } = En(s, ee);
|
|
35625
35630
|
(0, F.useEffect)(() => {
|
|
35626
|
-
if (!
|
|
35631
|
+
if (!y) return;
|
|
35627
35632
|
let e = !1;
|
|
35628
35633
|
cr(), ce().then(({ layers: t, cleanup: n }) => {
|
|
35629
35634
|
if (e) {
|
|
35630
35635
|
n();
|
|
35631
35636
|
return;
|
|
35632
35637
|
}
|
|
35633
|
-
|
|
35634
|
-
let i = (0, ge.default)(
|
|
35635
|
-
r(
|
|
35638
|
+
l.current = n;
|
|
35639
|
+
let i = (0, ge.default)(m.backgroundColor === "none" ? "#ebebeb" : m.backgroundColor).string();
|
|
35640
|
+
r(_(t, v(), i));
|
|
35636
35641
|
}).catch((t) => {
|
|
35637
35642
|
e || console.warn("Maplibre scene configuration failed.", t);
|
|
35638
35643
|
});
|
|
35639
|
-
let t =
|
|
35644
|
+
let t = P.current, n = re.current;
|
|
35640
35645
|
return () => {
|
|
35641
35646
|
var r;
|
|
35642
|
-
e = !0, cr(), (r =
|
|
35647
|
+
e = !0, cr(), (r = l.current) == null || r.call(l), l.current = null, g.current && (u.maplibreStore.clearCameraPortIfCurrent(g.current), g.current = null), s.current = null, c.current = null, f.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), d.sceneDefReady = !1;
|
|
35643
35648
|
};
|
|
35644
35649
|
}, [
|
|
35645
|
-
|
|
35646
|
-
|
|
35647
|
-
|
|
35650
|
+
y,
|
|
35651
|
+
P,
|
|
35652
|
+
re
|
|
35648
35653
|
]);
|
|
35649
35654
|
let pe = (0, F.useCallback)((e, t) => {
|
|
35650
35655
|
var n;
|
|
35651
|
-
|
|
35652
|
-
let r = sr(e, (n =
|
|
35656
|
+
s.current = e, c.current = e.getCanvas(), f.current = t, a(!0), e.once("idle", () => Cn(e, j.current));
|
|
35657
|
+
let r = sr(e, (n = y == null ? void 0 : y.bearing) == null ? e.getBearing() : n, () => {
|
|
35653
35658
|
var e;
|
|
35654
|
-
return (e =
|
|
35659
|
+
return (e = j.current.pitch) == null ? 0 : e;
|
|
35655
35660
|
});
|
|
35656
|
-
|
|
35657
|
-
}, [ue,
|
|
35661
|
+
g.current = r, u.maplibreStore.setCameraPort(r), u.fp.getCenterCoordinates = () => te(c.current), ue({ immediate: !0 }), T(), u.layerStore.layersLoaded = !0, u.fp.onFpConfigured && u.fp.onFpConfigured(), d.sceneDefReady = !0, t();
|
|
35662
|
+
}, [ue, y]);
|
|
35658
35663
|
(0, F.useEffect)(() => {
|
|
35659
|
-
|
|
35660
|
-
}, [
|
|
35661
|
-
enabled:
|
|
35662
|
-
scene:
|
|
35664
|
+
j.current = A, Cn(s.current, A);
|
|
35665
|
+
}, [A]), Dn(i, s), Bn(N, c), zn(i, s, y), kn(N, s, y), mn(s, y, N), se({
|
|
35666
|
+
enabled: u.layerStore.layersLoaded && d.buildRoute,
|
|
35667
|
+
scene: N == null ? void 0 : N
|
|
35663
35668
|
});
|
|
35664
|
-
let he = (t =
|
|
35669
|
+
let he = (t = p.busRoutes) != null && t;
|
|
35665
35670
|
le({
|
|
35666
|
-
permission:
|
|
35667
|
-
scene:
|
|
35668
|
-
dataJsonUrl: `https://${ar}/v1/routes?expo=${
|
|
35669
|
-
websocketUrl: `wss://${ar}/locations?expo=${
|
|
35671
|
+
permission: u.layerStore.layersLoaded && he,
|
|
35672
|
+
scene: N == null ? void 0 : N,
|
|
35673
|
+
dataJsonUrl: `https://${ar}/v1/routes?expo=${m.EXPO}`,
|
|
35674
|
+
websocketUrl: `wss://${ar}/locations?expo=${m.EXPO}`
|
|
35670
35675
|
});
|
|
35671
35676
|
let _e = (0, F.useCallback)((e) => {
|
|
35672
|
-
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e),
|
|
35677
|
+
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), u.maplibreStore.deactivateMaplibre();
|
|
35673
35678
|
}, []);
|
|
35674
|
-
if (!
|
|
35675
|
-
let ve = `${
|
|
35679
|
+
if (!y || !w || !E || !N) return null;
|
|
35680
|
+
let ve = `${w.center.join(",")}:${w.bearing}:${w.zoom}`;
|
|
35676
35681
|
return /* @__PURE__ */ (0, Nt.jsxs)(Gt, {
|
|
35677
|
-
sceneDef:
|
|
35678
|
-
geoConfig:
|
|
35682
|
+
sceneDef: N,
|
|
35683
|
+
geoConfig: w,
|
|
35679
35684
|
tileSource: M,
|
|
35680
|
-
mapOptions:
|
|
35681
|
-
debug:
|
|
35685
|
+
mapOptions: A,
|
|
35686
|
+
debug: o,
|
|
35682
35687
|
onMapReady: pe,
|
|
35683
35688
|
onMapDimLayerReady: de,
|
|
35684
35689
|
onMapLoadError: _e,
|
|
35685
|
-
onPointerMissed:
|
|
35686
|
-
children: [/* @__PURE__ */ (0, Nt.jsx)(fe, {}),
|
|
35690
|
+
onPointerMissed: C,
|
|
35691
|
+
children: [/* @__PURE__ */ (0, Nt.jsx)(fe, {}), o && /* @__PURE__ */ (0, Nt.jsx)(me, { canvas: c })]
|
|
35687
35692
|
}, ve);
|
|
35688
35693
|
});
|
|
35689
35694
|
//#endregion
|