@geoql/v-maplibre 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,19 +1,23 @@
1
- import { inject as w, ref as M, shallowRef as H, watch as v, provide as O, onUnmounted as J, defineComponent as b, useSlots as X, onMounted as L, renderSlot as C, onBeforeUnmount as P, createBlock as K, openBlock as $, computed as z, toRaw as E, markRaw as R, createElementBlock as A, createCommentVNode as Q, withCtx as ee } from "vue";
2
- import te, { AttributionControl as oe, FullscreenControl as ae, GeolocateControl as ie, NavigationControl as re, ScaleControl as le, Map as ne, Popup as se, Marker as de } from "maplibre-gl";
3
- import { PMTiles as ce, Protocol as ue } from "pmtiles";
4
- import { ScatterplotLayer as ge, ArcLayer as ye, GeoJsonLayer as pe, PathLayer as fe, LineLayer as he, PolygonLayer as me, SolidPolygonLayer as ve, IconLayer as be, TextLayer as Le, ColumnLayer as Se, BitmapLayer as Ce, GridCellLayer as ke, PointCloudLayer as Pe } from "@deck.gl/layers";
5
- import { HeatmapLayer as xe, HexagonLayer as Ie, GridLayer as _e, ContourLayer as Me, ScreenGridLayer as Ee } from "@deck.gl/aggregation-layers";
6
- import { TripsLayer as Be, H3HexagonLayer as We, H3ClusterLayer as we, MVTLayer as Te, TileLayer as ze, Tile3DLayer as He, TerrainLayer as $e, GreatCircleLayer as Re, S2Layer as Oe, GeohashLayer as Ve, QuadkeyLayer as De, _WMSLayer as Ae } from "@deck.gl/geo-layers";
7
- import { SimpleMeshLayer as Ue, ScenegraphLayer as Fe } from "@deck.gl/mesh-layers";
8
- function k(g, a) {
9
- const e = w(g, a);
1
+ var ue = Object.defineProperty;
2
+ var ge = (n, a, e) => a in n ? ue(n, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[a] = e;
3
+ var N = (n, a, e) => ge(n, typeof a != "symbol" ? a + "" : a, e);
4
+ import { inject as W, ref as M, shallowRef as O, watch as v, provide as U, onUnmounted as ie, defineComponent as b, useSlots as re, onMounted as L, renderSlot as x, onBeforeUnmount as k, createBlock as le, openBlock as D, computed as R, toRaw as B, markRaw as V, createElementBlock as Z, createCommentVNode as ne, withCtx as pe } from "vue";
5
+ import fe, { AttributionControl as ye, FullscreenControl as he, GeolocateControl as me, NavigationControl as ve, ScaleControl as be, Map as Le, Popup as Se, Marker as xe } from "maplibre-gl";
6
+ import { PMTiles as Pe, Protocol as Ce } from "pmtiles";
7
+ import { ScatterplotLayer as ke, ArcLayer as Ie, GeoJsonLayer as _e, PathLayer as Me, LineLayer as q, PolygonLayer as we, SolidPolygonLayer as Ee, IconLayer as Be, TextLayer as Te, ColumnLayer as We, BitmapLayer as ze, GridCellLayer as Re, PointCloudLayer as He } from "@deck.gl/layers";
8
+ import { HeatmapLayer as Oe, HexagonLayer as De, GridLayer as Ae, ContourLayer as Ve, ScreenGridLayer as $e } from "@deck.gl/aggregation-layers";
9
+ import { TripsLayer as Fe, H3HexagonLayer as Ue, H3ClusterLayer as Ne, MVTLayer as je, TileLayer as Ge, Tile3DLayer as Ze, TerrainLayer as qe, GreatCircleLayer as Je, S2Layer as Xe, GeohashLayer as Ke, QuadkeyLayer as Qe, _WMSLayer as Ye } from "@deck.gl/geo-layers";
10
+ import { SimpleMeshLayer as et, ScenegraphLayer as tt } from "@deck.gl/mesh-layers";
11
+ import { BufferTransform as ot } from "@luma.gl/engine";
12
+ function P(n, a) {
13
+ const e = W(n, a);
10
14
  if (!e)
11
- throw new Error(`Could not resolve ${g.description}`);
15
+ throw new Error(`Could not resolve ${n.description}`);
12
16
  return e;
13
17
  }
14
- const V = /* @__PURE__ */ Symbol("DeckOverlay"), D = /* @__PURE__ */ Symbol("DeckLayers");
15
- function I(g, a = {}) {
16
- const { interleaved: e = !1 } = a, r = w(V, null), i = w(D, null);
18
+ const j = /* @__PURE__ */ Symbol("DeckOverlay"), G = /* @__PURE__ */ Symbol("DeckLayers");
19
+ function I(n, a = {}) {
20
+ const { interleaved: e = !1 } = a, r = W(j, null), i = W(G, null);
17
21
  if (r && i)
18
22
  return {
19
23
  overlay: r,
@@ -23,92 +27,92 @@ function I(g, a = {}) {
23
27
  getLayers: () => [],
24
28
  ...i
25
29
  };
26
- const u = H(null), l = M([]), n = M(!1);
27
- let s = null;
28
- const t = () => {
29
- const d = g.value;
30
- return !d || u.value ? Promise.resolve() : s || (s = import("@deck.gl/mapbox").then(({ MapboxOverlay: h }) => {
31
- u.value || (u.value = new h({
30
+ const u = O(null), l = M([]), s = M(!1);
31
+ let c = null;
32
+ const o = () => {
33
+ const d = n.value;
34
+ return !d || u.value ? Promise.resolve() : c || (c = import("@deck.gl/mapbox").then(({ MapboxOverlay: y }) => {
35
+ u.value || (u.value = new y({
32
36
  interleaved: e,
33
37
  layers: []
34
- }), d.addControl(u.value), n.value = !0);
35
- }).catch((h) => {
36
- console.error("[deck.gl] Error initializing overlay:", h), s = null;
37
- }), s);
38
- }, o = (d) => d.id, y = () => {
38
+ }), d.addControl(u.value), s.value = !0);
39
+ }).catch((y) => {
40
+ console.error("[deck.gl] Error initializing overlay:", y), c = null;
41
+ }), c);
42
+ }, t = (d) => d.id, p = () => {
39
43
  u.value && u.value.setProps({ layers: l.value });
40
- }, f = (d) => {
41
- const h = o(d), B = l.value.findIndex(
42
- (x) => o(x) === h
44
+ }, h = (d) => {
45
+ const y = t(d), w = l.value.findIndex(
46
+ (C) => t(C) === y
43
47
  );
44
- B >= 0 ? l.value = [
45
- ...l.value.slice(0, B),
48
+ w >= 0 ? l.value = [
49
+ ...l.value.slice(0, w),
46
50
  d,
47
- ...l.value.slice(B + 1)
48
- ] : l.value = [...l.value, d], u.value ? y() : t().then(y);
49
- }, c = (d) => {
50
- l.value = l.value.filter((h) => o(h) !== d), y();
51
- }, m = (d, h) => {
52
- const B = l.value.findIndex((x) => o(x) === d);
53
- B >= 0 ? (l.value = [
54
- ...l.value.slice(0, B),
55
- h,
56
- ...l.value.slice(B + 1)
57
- ], y()) : f(h);
58
- }, p = () => [...l.value];
51
+ ...l.value.slice(w + 1)
52
+ ] : l.value = [...l.value, d], u.value ? p() : o().then(p);
53
+ }, g = (d) => {
54
+ l.value = l.value.filter((y) => t(y) !== d), p();
55
+ }, m = (d, y) => {
56
+ const w = l.value.findIndex((C) => t(C) === d);
57
+ w >= 0 ? (l.value = [
58
+ ...l.value.slice(0, w),
59
+ y,
60
+ ...l.value.slice(w + 1)
61
+ ], p()) : h(y);
62
+ }, f = () => [...l.value];
59
63
  return v(
60
- g,
64
+ n,
61
65
  (d) => {
62
- d && !u.value && (d.isStyleLoaded() ? t() : d.once("style.load", () => {
63
- t();
66
+ d && !u.value && (d.isStyleLoaded() ? o() : d.once("style.load", () => {
67
+ o();
64
68
  }));
65
69
  },
66
70
  { immediate: !0 }
67
- ), O(V, u), O(D, {
68
- addLayer: f,
69
- removeLayer: c,
71
+ ), U(j, u), U(G, {
72
+ addLayer: h,
73
+ removeLayer: g,
70
74
  updateLayer: m
71
- }), J(() => {
72
- if (u.value && g.value)
75
+ }), ie(() => {
76
+ if (u.value && n.value)
73
77
  try {
74
- g.value.removeControl(u.value), u.value.finalize();
78
+ n.value.removeControl(u.value), u.value.finalize();
75
79
  } catch (d) {
76
80
  console.error("[deck.gl] Error cleaning up overlay:", d);
77
81
  }
78
- u.value = null, l.value = [], n.value = !1, s = null;
82
+ u.value = null, l.value = [], s.value = !1, c = null;
79
83
  }), {
80
84
  overlay: u,
81
85
  layers: l,
82
- isInitialized: n,
83
- initOverlay: t,
84
- addLayer: f,
85
- removeLayer: c,
86
+ isInitialized: s,
87
+ initOverlay: o,
88
+ addLayer: h,
89
+ removeLayer: g,
86
90
  updateLayer: m,
87
- getLayers: p
91
+ getLayers: f
88
92
  };
89
93
  }
90
- function it() {
91
- const g = w(D, null), a = w(V, null);
92
- if (!g)
94
+ function zt() {
95
+ const n = W(G, null), a = W(j, null);
96
+ if (!n)
93
97
  throw new Error(
94
98
  "[deck.gl] useDeckLayers must be used within a component that has initialized useDeckOverlay"
95
99
  );
96
100
  return {
97
- ...g,
101
+ ...n,
98
102
  overlay: a
99
103
  };
100
104
  }
101
- const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"), rt = /* @__PURE__ */ b({
105
+ const S = /* @__PURE__ */ Symbol("Map"), se = /* @__PURE__ */ Symbol("Protocol"), Rt = /* @__PURE__ */ b({
102
106
  __name: "VControlAttribution",
103
107
  props: {
104
108
  options: { default: void 0 },
105
109
  position: { default: "bottom-right" }
106
110
  },
107
- setup(g) {
111
+ setup(n) {
108
112
  const a = {
109
113
  compact: !1,
110
114
  customAttribution: void 0
111
- }, e = g, r = X(), i = k(S);
115
+ }, e = n, r = re(), i = P(S);
112
116
  L(() => {
113
117
  u();
114
118
  });
@@ -117,45 +121,45 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
117
121
  e.options && (l = {
118
122
  ...e.options
119
123
  }), r && r.default?.() && (l.customAttribution = r.default()[0].children);
120
- const n = new oe(l);
121
- i.value.addControl(n, e.position);
124
+ const s = new ye(l);
125
+ i.value.addControl(s, e.position);
122
126
  };
123
- return (l, n) => C(l.$slots, "default");
127
+ return (l, s) => x(l.$slots, "default");
124
128
  }
125
- }), lt = /* @__PURE__ */ b({
129
+ }), Ht = /* @__PURE__ */ b({
126
130
  __name: "VControlFullscreen",
127
131
  props: {
128
132
  options: { default: void 0 },
129
133
  position: { default: "top-left" }
130
134
  },
131
- setup(g) {
135
+ setup(n) {
132
136
  const a = {
133
137
  container: void 0
134
- }, e = g, r = k(S);
138
+ }, e = n, r = P(S);
135
139
  L(() => {
136
140
  i();
137
141
  });
138
142
  const i = () => {
139
- const u = new ae(e.options || a);
143
+ const u = new he(e.options || a);
140
144
  r.value.addControl(u, e.position);
141
145
  };
142
146
  return () => {
143
147
  };
144
148
  }
145
- }), U = [
149
+ }), J = [
146
150
  "geolocate",
147
151
  "error",
148
152
  "outofmaxbounds",
149
153
  "trackuserlocationstart",
150
154
  "trackuserlocationend"
151
- ], nt = /* @__PURE__ */ b({
155
+ ], Ot = /* @__PURE__ */ b({
152
156
  __name: "VControlGeolocate",
153
157
  props: {
154
158
  options: { default: void 0 },
155
159
  position: { default: "top-left" }
156
160
  },
157
- emits: U,
158
- setup(g, { emit: a }) {
161
+ emits: J,
162
+ setup(n, { emit: a }) {
159
163
  const e = {
160
164
  fitBoundsOptions: {
161
165
  linear: !1,
@@ -170,64 +174,64 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
170
174
  trackUserLocation: !0,
171
175
  showAccuracyCircle: !0,
172
176
  showUserLocation: !0
173
- }, r = g, i = a, u = k(S);
177
+ }, r = n, i = a, u = P(S);
174
178
  L(() => {
175
179
  l();
176
180
  });
177
181
  const l = () => {
178
- const n = new ie(r.options || e);
179
- u.value.addControl(n, r.position), U.forEach((s) => {
180
- n.on(s, () => {
181
- i(s);
182
+ const s = new me(r.options || e);
183
+ u.value.addControl(s, r.position), J.forEach((c) => {
184
+ s.on(c, () => {
185
+ i(c);
182
186
  });
183
187
  });
184
188
  };
185
189
  return () => {
186
190
  };
187
191
  }
188
- }), st = /* @__PURE__ */ b({
192
+ }), Dt = /* @__PURE__ */ b({
189
193
  __name: "VControlNavigation",
190
194
  props: {
191
195
  options: { default: void 0 },
192
196
  position: { default: "top-left" }
193
197
  },
194
- setup(g) {
198
+ setup(n) {
195
199
  const a = {
196
200
  showCompass: !0,
197
201
  showZoom: !0,
198
202
  visualizePitch: !0
199
- }, e = g, r = w(S);
203
+ }, e = n, r = W(S);
200
204
  L(() => {
201
205
  i();
202
206
  });
203
207
  const i = () => {
204
- const u = new re(e.options || a);
208
+ const u = new ve(e.options || a);
205
209
  r.value.addControl(u, e.position);
206
210
  };
207
211
  return () => {
208
212
  };
209
213
  }
210
- }), dt = /* @__PURE__ */ b({
214
+ }), At = /* @__PURE__ */ b({
211
215
  __name: "VControlScale",
212
216
  props: {
213
217
  options: { default: void 0 },
214
218
  position: { default: "bottom-left" }
215
219
  },
216
- setup(g) {
220
+ setup(n) {
217
221
  const a = {
218
222
  maxWidth: 100,
219
223
  unit: "metric"
220
- }, e = g, r = w(S);
224
+ }, e = n, r = W(S);
221
225
  L(() => {
222
226
  i();
223
227
  });
224
228
  const i = () => {
225
- const u = new le(e.options || a);
229
+ const u = new be(e.options || a);
226
230
  r?.value.addControl(u, e.position);
227
231
  };
228
- return (u, l) => C(u.$slots, "default");
232
+ return (u, l) => x(u.$slots, "default");
229
233
  }
230
- }), F = [
234
+ }), X = [
231
235
  "load",
232
236
  "loadstart",
233
237
  "loaderror",
@@ -240,65 +244,65 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
240
244
  "streamingstop",
241
245
  "streamingprogress",
242
246
  "budgetreached"
243
- ], ct = /* @__PURE__ */ b({
247
+ ], Vt = /* @__PURE__ */ b({
244
248
  __name: "VControlLidar",
245
249
  props: {
246
250
  options: { default: void 0 },
247
251
  position: { default: "top-right" },
248
252
  defaultUrl: { default: void 0 }
249
253
  },
250
- emits: F,
251
- setup(g, { expose: a, emit: e }) {
254
+ emits: X,
255
+ setup(n, { expose: a, emit: e }) {
252
256
  const r = {
253
257
  collapsed: !0,
254
258
  pointSize: 2,
255
259
  colorScheme: "elevation",
256
260
  pickable: !1,
257
261
  autoZoom: !0
258
- }, i = g, u = e, l = k(S), n = M(null);
262
+ }, i = n, u = e, l = P(S), s = M(null);
259
263
  L(async () => {
260
- await s();
261
- }), J(() => {
262
- n.value && l.value && (l.value.removeControl(n.value), n.value = null);
264
+ await c();
265
+ }), ie(() => {
266
+ s.value && l.value && (l.value.removeControl(s.value), s.value = null);
263
267
  });
264
- const s = async () => {
265
- const { LidarControl: t } = await import("maplibre-gl-lidar");
266
- n.value = new t(
268
+ const c = async () => {
269
+ const { LidarControl: o } = await import("maplibre-gl-lidar");
270
+ s.value = new o(
267
271
  i.options || r
268
272
  ), l.value.addControl(
269
- n.value,
273
+ s.value,
270
274
  i.position
271
- ), F.forEach((o) => {
272
- n.value.on(o, (y) => {
273
- u(o, y);
275
+ ), X.forEach((t) => {
276
+ s.value.on(t, (p) => {
277
+ u(t, p);
274
278
  });
275
- }), i.defaultUrl && n.value.loadPointCloud(i.defaultUrl);
279
+ }), i.defaultUrl && s.value.loadPointCloud(i.defaultUrl);
276
280
  };
277
281
  return a({
278
- loadPointCloud: (t) => n.value?.loadPointCloud(t),
279
- unloadPointCloud: (t) => n.value?.unloadPointCloud(t),
280
- flyToPointCloud: (t) => n.value?.flyToPointCloud(t),
281
- setPointSize: (t) => n.value?.setPointSize(t),
282
- setColorScheme: (t) => n.value?.setColorScheme(t),
283
- setOpacity: (t) => n.value?.setOpacity(t),
284
- setPickable: (t) => n.value?.setPickable(t),
285
- setUsePercentile: (t) => n.value?.setUsePercentile(t),
286
- setElevationRange: (t, o) => n.value?.setElevationRange(t, o),
287
- clearElevationRange: () => n.value?.clearElevationRange(),
288
- setZOffset: (t) => n.value?.setZOffset(t),
289
- setZOffsetEnabled: (t) => n.value?.setZOffsetEnabled(t),
290
- toggle: () => n.value?.toggle(),
291
- expand: () => n.value?.expand(),
292
- collapse: () => n.value?.collapse(),
293
- getState: () => n.value?.getState(),
294
- getPointClouds: () => n.value?.getPointClouds(),
295
- stopStreaming: (t) => n.value?.stopStreaming(t),
296
- isStreaming: (t) => n.value?.isStreaming(t),
297
- getControl: () => n.value
282
+ loadPointCloud: (o) => s.value?.loadPointCloud(o),
283
+ unloadPointCloud: (o) => s.value?.unloadPointCloud(o),
284
+ flyToPointCloud: (o) => s.value?.flyToPointCloud(o),
285
+ setPointSize: (o) => s.value?.setPointSize(o),
286
+ setColorScheme: (o) => s.value?.setColorScheme(o),
287
+ setOpacity: (o) => s.value?.setOpacity(o),
288
+ setPickable: (o) => s.value?.setPickable(o),
289
+ setUsePercentile: (o) => s.value?.setUsePercentile(o),
290
+ setElevationRange: (o, t) => s.value?.setElevationRange(o, t),
291
+ clearElevationRange: () => s.value?.clearElevationRange(),
292
+ setZOffset: (o) => s.value?.setZOffset(o),
293
+ setZOffsetEnabled: (o) => s.value?.setZOffsetEnabled(o),
294
+ toggle: () => s.value?.toggle(),
295
+ expand: () => s.value?.expand(),
296
+ collapse: () => s.value?.collapse(),
297
+ getState: () => s.value?.getState(),
298
+ getPointClouds: () => s.value?.getPointClouds(),
299
+ stopStreaming: (o) => s.value?.stopStreaming(o),
300
+ isStreaming: (o) => s.value?.isStreaming(o),
301
+ getControl: () => s.value
298
302
  }), () => {
299
303
  };
300
304
  }
301
- }), ut = /* @__PURE__ */ b({
305
+ }), $t = /* @__PURE__ */ b({
302
306
  __name: "VLayerMaplibreCanvas",
303
307
  props: {
304
308
  source: {},
@@ -307,77 +311,77 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
307
311
  layerId: { default: "maplibre.gl-canvas-layer" },
308
312
  before: { default: "" }
309
313
  },
310
- setup(g) {
311
- const a = g, e = k(S), r = M(!1), i = () => e.value || null, u = (t) => {
312
- t && t.on("style.load", () => {
313
- const o = () => {
314
- t.isStyleLoaded() ? r.value = !0 : (r.value = !1, setTimeout(o, 200));
314
+ setup(n) {
315
+ const a = n, e = P(S), r = M(!1), i = () => e.value || null, u = (o) => {
316
+ o && o.on("style.load", () => {
317
+ const t = () => {
318
+ o.isStyleLoaded() ? r.value = !0 : (r.value = !1, setTimeout(t, 200));
315
319
  };
316
- o();
320
+ t();
317
321
  });
318
322
  }, l = () => {
319
- const t = i();
320
- if (t)
323
+ const o = i();
324
+ if (o)
321
325
  try {
322
- if (t.getSource(a.sourceId) || t.addSource(a.sourceId, a.source), !t.getLayer(a.layerId)) {
323
- const o = {
326
+ if (o.getSource(a.sourceId) || o.addSource(a.sourceId, a.source), !o.getLayer(a.layerId)) {
327
+ const t = {
324
328
  ...a.layer,
325
329
  id: a.layerId,
326
330
  source: a.sourceId
327
331
  };
328
- t.addLayer(o, a.before);
332
+ o.addLayer(t, a.before);
329
333
  }
330
- } catch (o) {
331
- console.error("Error adding Canvas layer:", o);
334
+ } catch (t) {
335
+ console.error("Error adding Canvas layer:", t);
332
336
  }
333
- }, n = () => {
334
- const t = i();
335
- if (t)
337
+ }, s = () => {
338
+ const o = i();
339
+ if (o)
336
340
  try {
337
- t.getLayer(a.layerId) && t.removeLayer(a.layerId), t.getSource(a.sourceId) && t.removeSource(a.sourceId), t.addSource(a.sourceId, a.source);
338
- const o = {
341
+ o.getLayer(a.layerId) && o.removeLayer(a.layerId), o.getSource(a.sourceId) && o.removeSource(a.sourceId), o.addSource(a.sourceId, a.source);
342
+ const t = {
339
343
  ...a.layer,
340
344
  id: a.layerId,
341
345
  source: a.sourceId
342
346
  };
343
- t.addLayer(o, a.before);
344
- } catch (o) {
345
- console.error("Error updating Canvas source:", o);
347
+ o.addLayer(t, a.before);
348
+ } catch (t) {
349
+ console.error("Error updating Canvas source:", t);
346
350
  }
347
- }, s = () => {
348
- const t = i();
349
- if (t)
351
+ }, c = () => {
352
+ const o = i();
353
+ if (o)
350
354
  try {
351
- t.getLayer(a.layerId) && (Object.entries(a.layer.paint || {}).forEach(([o, y]) => {
352
- t.setPaintProperty(a.layerId, o, y);
353
- }), Object.entries(a.layer.layout || {}).forEach(([o, y]) => {
354
- t.setLayoutProperty(a.layerId, o, y);
355
+ o.getLayer(a.layerId) && (Object.entries(a.layer.paint || {}).forEach(([t, p]) => {
356
+ o.setPaintProperty(a.layerId, t, p);
357
+ }), Object.entries(a.layer.layout || {}).forEach(([t, p]) => {
358
+ o.setLayoutProperty(a.layerId, t, p);
355
359
  }));
356
- } catch (o) {
357
- console.error("Error updating Canvas layer:", o);
360
+ } catch (t) {
361
+ console.error("Error updating Canvas layer:", t);
358
362
  }
359
363
  };
360
- return v(() => a.source, n, { deep: !0 }), v(() => a.layer, s, { deep: !0 }), v(
364
+ return v(() => a.source, s, { deep: !0 }), v(() => a.layer, c, { deep: !0 }), v(
361
365
  e,
362
- (t) => {
363
- t && u(t);
366
+ (o) => {
367
+ o && u(o);
364
368
  },
365
369
  { immediate: !0 }
366
- ), v(r, (t) => {
367
- t && l();
370
+ ), v(r, (o) => {
371
+ o && l();
368
372
  }), L(() => {
369
373
  i()?.isStyleLoaded() && l();
370
- }), P(() => {
371
- const t = i();
372
- if (t)
374
+ }), k(() => {
375
+ const o = i();
376
+ if (o)
373
377
  try {
374
- t.getLayer(a.layerId) && t.removeLayer(a.layerId), t.getSource(a.sourceId) && t.removeSource(a.sourceId);
375
- } catch (o) {
376
- console.error("Error cleaning up Canvas layer:", o);
378
+ o.getLayer(a.layerId) && o.removeLayer(a.layerId), o.getSource(a.sourceId) && o.removeSource(a.sourceId);
379
+ } catch (t) {
380
+ console.error("Error cleaning up Canvas layer:", t);
377
381
  }
378
- }), (t, o) => C(t.$slots, "default");
382
+ }), (o, t) => x(o.$slots, "default");
379
383
  }
380
- }), gt = /* @__PURE__ */ b({
384
+ }), Ft = /* @__PURE__ */ b({
381
385
  __name: "VLayerMaplibreGeojson",
382
386
  props: {
383
387
  sourceId: { default: "maplibre-gl-geojson-source" },
@@ -387,17 +391,17 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
387
391
  before: { default: "" }
388
392
  },
389
393
  emits: ["on-click"],
390
- setup(g, { emit: a }) {
391
- const e = g, r = a, i = k(S), u = M(!1), l = (c) => !c || typeof c == "string" ? !1 : c && typeof c == "object" && "type" in c ? c.type === "FeatureCollection" && "features" in c ? c.features.length > 0 : c.type === "Feature" || c.type === "Point" || c.type === "LineString" || c.type === "Polygon" || c.type === "MultiPoint" || c.type === "MultiLineString" || c.type === "MultiPolygon" : !1, n = () => i.value || null, s = (c) => {
392
- c && c.on("style.load", () => {
394
+ setup(n, { emit: a }) {
395
+ const e = n, r = a, i = P(S), u = M(!1), l = (g) => !g || typeof g == "string" ? !1 : g && typeof g == "object" && "type" in g ? g.type === "FeatureCollection" && "features" in g ? g.features.length > 0 : g.type === "Feature" || g.type === "Point" || g.type === "LineString" || g.type === "Polygon" || g.type === "MultiPoint" || g.type === "MultiLineString" || g.type === "MultiPolygon" : !1, s = () => i.value || null, c = (g) => {
396
+ g && g.on("style.load", () => {
393
397
  const m = () => {
394
- c.isStyleLoaded() ? u.value = !0 : (u.value = !1, setTimeout(m, 200));
398
+ g.isStyleLoaded() ? u.value = !0 : (u.value = !1, setTimeout(m, 200));
395
399
  };
396
400
  m();
397
401
  });
398
- }, t = () => {
399
- const c = n();
400
- if (!(!c || !c.isStyleLoaded())) {
402
+ }, o = () => {
403
+ const g = s();
404
+ if (!(!g || !g.isStyleLoaded())) {
401
405
  if (!l(e.source.data)) {
402
406
  console.log(
403
407
  `[${e.layerId}] Waiting for valid data before adding layer`
@@ -405,56 +409,56 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
405
409
  return;
406
410
  }
407
411
  try {
408
- if (c.getSource(e.sourceId) || c.addSource(e.sourceId, e.source), !c.getLayer(e.layerId)) {
412
+ if (g.getSource(e.sourceId) || g.addSource(e.sourceId, e.source), !g.getLayer(e.layerId)) {
409
413
  const m = {
410
414
  ...e.layer,
411
415
  id: e.layerId,
412
416
  source: e.sourceId
413
417
  };
414
- c.addLayer(m, e.before);
418
+ g.addLayer(m, e.before);
415
419
  }
416
420
  } catch (m) {
417
421
  console.error("Error adding GeoJSON layer:", m);
418
422
  }
419
423
  }
420
- }, o = () => {
421
- const c = n();
422
- if (c)
424
+ }, t = () => {
425
+ const g = s();
426
+ if (g)
423
427
  try {
424
- const m = c.getSource(e.sourceId);
428
+ const m = g.getSource(e.sourceId);
425
429
  if (m && "setData" in m) {
426
- const p = c.getStyle().layers.filter(
430
+ const f = g.getStyle().layers.filter(
427
431
  (d) => d.type !== "background" && "source" in d && d.source === e.sourceId
428
432
  );
429
- (p.length === 0 || p[0]?.id === e.layerId) && m.setData(e.source.data);
430
- } else m || t();
433
+ (f.length === 0 || f[0]?.id === e.layerId) && m.setData(e.source.data);
434
+ } else m || o();
431
435
  } catch (m) {
432
436
  console.error("Error updating GeoJSON source:", m);
433
437
  }
434
- }, y = () => {
435
- const c = n();
436
- if (c)
438
+ }, p = () => {
439
+ const g = s();
440
+ if (g)
437
441
  try {
438
- c.getLayer(e.layerId) ? (Object.entries(e.layer.paint || {}).forEach(([m, p]) => {
439
- c.setPaintProperty(e.layerId, m, p);
440
- }), Object.entries(e.layer.layout || {}).forEach(([m, p]) => {
441
- c.setLayoutProperty(e.layerId, m, p);
442
- })) : t();
442
+ g.getLayer(e.layerId) ? (Object.entries(e.layer.paint || {}).forEach(([m, f]) => {
443
+ g.setPaintProperty(e.layerId, m, f);
444
+ }), Object.entries(e.layer.layout || {}).forEach(([m, f]) => {
445
+ g.setLayoutProperty(e.layerId, m, f);
446
+ })) : o();
443
447
  } catch (m) {
444
448
  console.error("Error updating GeoJSON layer:", m);
445
449
  }
446
- }, f = (c) => {
447
- if (c)
450
+ }, h = (g) => {
451
+ if (g)
448
452
  try {
449
- c.on("click", e.layerId, (m) => {
453
+ g.on("click", e.layerId, (m) => {
450
454
  m.features && m.features.length > 0 && r("on-click", {
451
455
  features: m.features,
452
456
  coordinates: m.lngLat
453
457
  });
454
- }), c.on("mouseenter", e.layerId, () => {
455
- c.getCanvas().style.cursor = "pointer";
456
- }), c.on("mouseleave", e.layerId, () => {
457
- c.getCanvas().style.cursor = "";
458
+ }), g.on("mouseenter", e.layerId, () => {
459
+ g.getCanvas().style.cursor = "pointer";
460
+ }), g.on("mouseleave", e.layerId, () => {
461
+ g.getCanvas().style.cursor = "";
458
462
  });
459
463
  } catch (m) {
460
464
  console.error("Error in setupLayerEvents:", m);
@@ -462,38 +466,38 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
462
466
  };
463
467
  return v(
464
468
  () => e.source,
465
- (c, m) => {
466
- if (l(c?.data) && JSON.stringify(c.data) !== JSON.stringify(m?.data)) {
467
- const p = n();
468
- p?.isStyleLoaded() && (p.getSource(e.sourceId) ? o() : t());
469
+ (g, m) => {
470
+ if (l(g?.data) && JSON.stringify(g.data) !== JSON.stringify(m?.data)) {
471
+ const f = s();
472
+ f?.isStyleLoaded() && (f.getSource(e.sourceId) ? t() : o());
469
473
  }
470
474
  },
471
475
  { deep: !0 }
472
- ), v(() => e.layer, y, { deep: !0 }), v(
476
+ ), v(() => e.layer, p, { deep: !0 }), v(
473
477
  i,
474
- (c) => {
475
- c && (s(c), c.isStyleLoaded() && (u.value = !0));
478
+ (g) => {
479
+ g && (c(g), g.isStyleLoaded() && (u.value = !0));
476
480
  },
477
481
  { immediate: !0 }
478
- ), v(u, (c) => {
479
- if (c && l(e.source.data)) {
480
- const m = n();
481
- m && (t(), f(m));
482
+ ), v(u, (g) => {
483
+ if (g && l(e.source.data)) {
484
+ const m = s();
485
+ m && (o(), h(m));
482
486
  }
483
487
  }), v(
484
488
  () => e.layer.layout?.visibility,
485
- (c) => {
486
- const m = n();
489
+ (g) => {
490
+ const m = s();
487
491
  if (!m || !m.isStyleLoaded()) return;
488
- const p = m.getLayer(e.layerId);
489
- if (!p && c === "visible")
490
- l(e.source.data) && t();
491
- else if (p)
492
+ const f = m.getLayer(e.layerId);
493
+ if (!f && g === "visible")
494
+ l(e.source.data) && o();
495
+ else if (f)
492
496
  try {
493
497
  m.setLayoutProperty(
494
498
  e.layerId,
495
499
  "visibility",
496
- c
500
+ g
497
501
  );
498
502
  } catch (d) {
499
503
  console.error(
@@ -505,23 +509,23 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
505
509
  { immediate: !0 }
506
510
  ), L(() => {
507
511
  try {
508
- n()?.isStyleLoaded() && l(e.source.data) && t();
509
- } catch (c) {
510
- console.error("Error adding layer:", c);
512
+ s()?.isStyleLoaded() && l(e.source.data) && o();
513
+ } catch (g) {
514
+ console.error("Error adding layer:", g);
511
515
  }
512
- }), P(() => {
513
- const c = n();
514
- if (c)
516
+ }), k(() => {
517
+ const g = s();
518
+ if (g)
515
519
  try {
516
- c.getLayer(e.layerId) && c.removeLayer(e.layerId), c.getStyle().layers.filter(
517
- (p) => p.type !== "background" && "source" in p && p.source === e.sourceId
518
- ).length === 0 && c.getSource(e.sourceId) && c.removeSource(e.sourceId);
520
+ g.getLayer(e.layerId) && g.removeLayer(e.layerId), g.getStyle().layers.filter(
521
+ (f) => f.type !== "background" && "source" in f && f.source === e.sourceId
522
+ ).length === 0 && g.getSource(e.sourceId) && g.removeSource(e.sourceId);
519
523
  } catch (m) {
520
524
  console.error("Error cleaning up GeoJSON layer:", m);
521
525
  }
522
- }), (c, m) => C(c.$slots, "default");
526
+ }), (g, m) => x(g.$slots, "default");
523
527
  }
524
- }), yt = /* @__PURE__ */ b({
528
+ }), Ut = /* @__PURE__ */ b({
525
529
  __name: "VLayerMaplibreImage",
526
530
  props: {
527
531
  sourceId: {
@@ -549,86 +553,86 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
549
553
  required: !1
550
554
  }
551
555
  },
552
- setup(g) {
553
- const a = g, e = k(S), r = M(!1), i = () => e.value || null, u = (t) => {
554
- t && t.on("style.load", () => {
555
- const o = () => {
556
- t.isStyleLoaded() ? r.value = !0 : (r.value = !1, setTimeout(o, 200));
556
+ setup(n) {
557
+ const a = n, e = P(S), r = M(!1), i = () => e.value || null, u = (o) => {
558
+ o && o.on("style.load", () => {
559
+ const t = () => {
560
+ o.isStyleLoaded() ? r.value = !0 : (r.value = !1, setTimeout(t, 200));
557
561
  };
558
- o();
562
+ t();
559
563
  });
560
564
  }, l = () => {
561
- const t = i();
562
- if (t)
565
+ const o = i();
566
+ if (o)
563
567
  try {
564
- if (t.getSource(a.sourceId) || t.addSource(a.sourceId, a.source), !t.getLayer(a.layerId)) {
565
- const o = {
568
+ if (o.getSource(a.sourceId) || o.addSource(a.sourceId, a.source), !o.getLayer(a.layerId)) {
569
+ const t = {
566
570
  ...a.layer,
567
571
  id: a.layerId,
568
572
  source: a.sourceId
569
573
  };
570
- t.addLayer(o, a.before);
574
+ o.addLayer(t, a.before);
571
575
  }
572
- } catch (o) {
573
- console.error("Error adding Image layer:", o);
576
+ } catch (t) {
577
+ console.error("Error adding Image layer:", t);
574
578
  }
575
- }, n = () => {
576
- const t = i();
577
- if (t)
579
+ }, s = () => {
580
+ const o = i();
581
+ if (o)
578
582
  try {
579
- const o = t.getSource(a.sourceId);
580
- if (o)
581
- if (o.updateImage)
582
- o.updateImage({
583
+ const t = o.getSource(a.sourceId);
584
+ if (t)
585
+ if (t.updateImage)
586
+ t.updateImage({
583
587
  url: a.source.url,
584
588
  coordinates: a.source.coordinates
585
589
  });
586
590
  else {
587
- t.getLayer(a.layerId) && t.removeLayer(a.layerId), t.getSource(a.sourceId) && t.removeSource(a.sourceId), t.addSource(a.sourceId, a.source);
588
- const y = {
591
+ o.getLayer(a.layerId) && o.removeLayer(a.layerId), o.getSource(a.sourceId) && o.removeSource(a.sourceId), o.addSource(a.sourceId, a.source);
592
+ const p = {
589
593
  ...a.layer,
590
594
  id: a.layerId,
591
595
  source: a.sourceId
592
596
  };
593
- t.addLayer(y, a.before);
597
+ o.addLayer(p, a.before);
594
598
  }
595
- } catch (o) {
596
- console.error("Error updating Image source:", o);
599
+ } catch (t) {
600
+ console.error("Error updating Image source:", t);
597
601
  }
598
- }, s = () => {
599
- const t = i();
600
- if (t)
602
+ }, c = () => {
603
+ const o = i();
604
+ if (o)
601
605
  try {
602
- t.getLayer(a.layerId) && (Object.entries(a.layer.paint || {}).forEach(([o, y]) => {
603
- t.setPaintProperty(a.layerId, o, y);
604
- }), Object.entries(a.layer.layout || {}).forEach(([o, y]) => {
605
- t.setLayoutProperty(a.layerId, o, y);
606
+ o.getLayer(a.layerId) && (Object.entries(a.layer.paint || {}).forEach(([t, p]) => {
607
+ o.setPaintProperty(a.layerId, t, p);
608
+ }), Object.entries(a.layer.layout || {}).forEach(([t, p]) => {
609
+ o.setLayoutProperty(a.layerId, t, p);
606
610
  }));
607
- } catch (o) {
608
- console.error("Error updating Image layer:", o);
611
+ } catch (t) {
612
+ console.error("Error updating Image layer:", t);
609
613
  }
610
614
  };
611
- return v(() => a.source, n, { deep: !0 }), v(() => a.layer, s, { deep: !0 }), v(
615
+ return v(() => a.source, s, { deep: !0 }), v(() => a.layer, c, { deep: !0 }), v(
612
616
  e,
613
- (t) => {
614
- t && u(t);
617
+ (o) => {
618
+ o && u(o);
615
619
  },
616
620
  { immediate: !0 }
617
- ), v(r, (t) => {
618
- t && l();
621
+ ), v(r, (o) => {
622
+ o && l();
619
623
  }), L(() => {
620
624
  i()?.isStyleLoaded() && l();
621
- }), P(() => {
622
- const t = i();
623
- if (t)
625
+ }), k(() => {
626
+ const o = i();
627
+ if (o)
624
628
  try {
625
- t.getLayer(a.layerId) && t.removeLayer(a.layerId), t.getSource(a.sourceId) && t.removeSource(a.sourceId);
626
- } catch (o) {
627
- console.error("Error cleaning up Image layer:", o);
629
+ o.getLayer(a.layerId) && o.removeLayer(a.layerId), o.getSource(a.sourceId) && o.removeSource(a.sourceId);
630
+ } catch (t) {
631
+ console.error("Error cleaning up Image layer:", t);
628
632
  }
629
- }), (t, o) => C(t.$slots, "default");
633
+ }), (o, t) => x(o.$slots, "default");
630
634
  }
631
- }), je = /* @__PURE__ */ b({
635
+ }), at = /* @__PURE__ */ b({
632
636
  __name: "VLayerMaplibreRaster",
633
637
  props: {
634
638
  sourceId: {},
@@ -637,118 +641,118 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
637
641
  layer: {},
638
642
  before: {}
639
643
  },
640
- setup(g) {
641
- const a = g, e = k(S), r = M(!1), i = () => e.value || null, u = (t) => {
642
- t && t.on("style.load", () => {
643
- const o = () => {
644
- t.isStyleLoaded() ? r.value = !0 : (r.value = !1, setTimeout(o, 200));
644
+ setup(n) {
645
+ const a = n, e = P(S), r = M(!1), i = () => e.value || null, u = (o) => {
646
+ o && o.on("style.load", () => {
647
+ const t = () => {
648
+ o.isStyleLoaded() ? r.value = !0 : (r.value = !1, setTimeout(t, 200));
645
649
  };
646
- o();
650
+ t();
647
651
  });
648
652
  }, l = () => {
649
- const t = i();
650
- if (t)
653
+ const o = i();
654
+ if (o)
651
655
  try {
652
- t.getSource(a.sourceId) || t.addSource(a.sourceId, a.source), t.getLayer(a.layerId) || (t.addLayer(a.layer, a.before), a.layer.layout?.visibility && t.setLayoutProperty(
656
+ o.getSource(a.sourceId) || o.addSource(a.sourceId, a.source), o.getLayer(a.layerId) || (o.addLayer(a.layer, a.before), a.layer.layout?.visibility && o.setLayoutProperty(
653
657
  a.layerId,
654
658
  "visibility",
655
659
  a.layer.layout.visibility
656
660
  ));
657
- } catch (o) {
658
- console.error(`[${a.layerId}] Error setting up layer:`, o);
661
+ } catch (t) {
662
+ console.error(`[${a.layerId}] Error setting up layer:`, t);
659
663
  }
660
- }, n = () => {
661
- const t = i();
662
- if (t)
664
+ }, s = () => {
665
+ const o = i();
666
+ if (o)
663
667
  try {
664
- const o = a.before;
665
- t.getLayer(a.layerId) && t.removeLayer(a.layerId), t.removeSource(a.sourceId), t.addSource(a.sourceId, a.source);
666
- const y = {
668
+ const t = a.before;
669
+ o.getLayer(a.layerId) && o.removeLayer(a.layerId), o.removeSource(a.sourceId), o.addSource(a.sourceId, a.source);
670
+ const p = {
667
671
  ...a.layer,
668
672
  id: a.layerId,
669
673
  type: "raster",
670
674
  source: a.sourceId
671
675
  };
672
- o && t.getLayer(o) ? t.addLayer(y, o) : t.addLayer(y);
673
- } catch (o) {
674
- console.error("Error updating Raster source:", o);
676
+ t && o.getLayer(t) ? o.addLayer(p, t) : o.addLayer(p);
677
+ } catch (t) {
678
+ console.error("Error updating Raster source:", t);
675
679
  }
676
- }, s = () => {
677
- const t = i();
678
- if (t)
680
+ }, c = () => {
681
+ const o = i();
682
+ if (o)
679
683
  try {
680
- if (t.getLayer(a.layerId)) {
681
- const o = a.layer.paint || {};
682
- Object.entries(o).forEach(([f, c]) => {
683
- t.setPaintProperty(a.layerId, f, c);
684
+ if (o.getLayer(a.layerId)) {
685
+ const t = a.layer.paint || {};
686
+ Object.entries(t).forEach(([h, g]) => {
687
+ o.setPaintProperty(a.layerId, h, g);
684
688
  });
685
- const y = a.layer.layout || {};
686
- Object.entries(y).forEach(([f, c]) => {
687
- t.setLayoutProperty(a.layerId, f, c);
689
+ const p = a.layer.layout || {};
690
+ Object.entries(p).forEach(([h, g]) => {
691
+ o.setLayoutProperty(a.layerId, h, g);
688
692
  });
689
693
  }
690
- } catch (o) {
691
- console.error("Error updating Raster layer:", o);
694
+ } catch (t) {
695
+ console.error("Error updating Raster layer:", t);
692
696
  }
693
697
  };
694
698
  return v(
695
699
  () => a.source.tiles?.[0],
696
700
  // Usually raster sources have a single tile URL
697
- (t, o) => {
698
- t !== o && n();
701
+ (o, t) => {
702
+ o !== t && s();
699
703
  }
700
- ), v(() => a.layer, s, { deep: !0 }), v(
704
+ ), v(() => a.layer, c, { deep: !0 }), v(
701
705
  e,
702
- (t) => {
703
- t && u(t);
706
+ (o) => {
707
+ o && u(o);
704
708
  },
705
709
  { immediate: !0 }
706
- ), v(r, (t) => {
707
- t && l();
710
+ ), v(r, (o) => {
711
+ o && l();
708
712
  }), v(
709
713
  () => a.layer.layout?.visibility,
710
- (t) => {
711
- const o = i();
712
- if (!o) return;
713
- if (o.getLayer(a.layerId))
714
+ (o) => {
715
+ const t = i();
716
+ if (!t) return;
717
+ if (t.getLayer(a.layerId))
714
718
  try {
715
- o.setLayoutProperty(
719
+ t.setLayoutProperty(
716
720
  a.layerId,
717
721
  "visibility",
718
- t
719
- ), t === "visible" && a.before && o.moveLayer(a.layerId, a.before);
720
- } catch (f) {
721
- console.error(`[${a.layerId}] Error updating visibility:`, f);
722
+ o
723
+ ), o === "visible" && a.before && t.moveLayer(a.layerId, a.before);
724
+ } catch (h) {
725
+ console.error(`[${a.layerId}] Error updating visibility:`, h);
722
726
  }
723
727
  else
724
728
  try {
725
- o.addLayer(a.layer, a.before);
726
- } catch (f) {
727
- console.error(`[${a.layerId}] Error adding layer:`, f);
729
+ t.addLayer(a.layer, a.before);
730
+ } catch (h) {
731
+ console.error(`[${a.layerId}] Error adding layer:`, h);
728
732
  }
729
733
  },
730
734
  { immediate: !0 }
731
735
  ), v(
732
736
  () => a.before,
733
- (t) => {
734
- const o = i();
735
- if (!(!o || !o.getLayer(a.layerId)) && a.layer.layout?.visibility === "visible")
737
+ (o) => {
738
+ const t = i();
739
+ if (!(!t || !t.getLayer(a.layerId)) && a.layer.layout?.visibility === "visible")
736
740
  try {
737
- console.log(`[${a.layerId}] Moving layer before:`, t), o.moveLayer(a.layerId, t);
738
- } catch (y) {
739
- console.error(`[${a.layerId}] Error moving layer:`, y);
741
+ console.log(`[${a.layerId}] Moving layer before:`, o), t.moveLayer(a.layerId, o);
742
+ } catch (p) {
743
+ console.error(`[${a.layerId}] Error moving layer:`, p);
740
744
  }
741
745
  }
742
746
  ), L(() => {
743
747
  if (i())
744
748
  try {
745
749
  l();
746
- } catch (o) {
747
- console.error(`[${a.layerId}] Error setting up layer:`, o);
750
+ } catch (t) {
751
+ console.error(`[${a.layerId}] Error setting up layer:`, t);
748
752
  }
749
- }), (t, o) => C(t.$slots, "default");
753
+ }), (o, t) => x(o.$slots, "default");
750
754
  }
751
- }), j = [
755
+ }), K = [
752
756
  "click",
753
757
  "dblclick",
754
758
  "mousedown",
@@ -762,7 +766,7 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
762
766
  "touchstart",
763
767
  "touchend",
764
768
  "touchcancel"
765
- ], N = [
769
+ ], Q = [
766
770
  "error",
767
771
  "load",
768
772
  "idle",
@@ -809,7 +813,7 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
809
813
  "pitch",
810
814
  "pitchend",
811
815
  "wheel"
812
- ], G = ["dragstart", "drag", "dragend"], Z = ["click", "mouseenter", "mouseleave"], q = ["open", "close"], pt = /* @__PURE__ */ b({
816
+ ], Y = ["dragstart", "drag", "dragend"], ee = ["click", "mouseenter", "mouseleave"], te = ["open", "close"], Nt = /* @__PURE__ */ b({
813
817
  __name: "VLayerMaplibreVector",
814
818
  props: {
815
819
  sourceId: {},
@@ -818,83 +822,83 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
818
822
  layer: {},
819
823
  before: {}
820
824
  },
821
- emits: [...j],
822
- setup(g, { emit: a }) {
823
- const e = g, r = a, i = k(S), u = M(!1), l = () => i.value || null, n = (f) => {
824
- f && f.on("style.load", () => {
825
- const c = () => {
826
- f.isStyleLoaded() ? u.value = !0 : (u.value = !1, setTimeout(c, 200));
825
+ emits: [...K],
826
+ setup(n, { emit: a }) {
827
+ const e = n, r = a, i = P(S), u = M(!1), l = () => i.value || null, s = (h) => {
828
+ h && h.on("style.load", () => {
829
+ const g = () => {
830
+ h.isStyleLoaded() ? u.value = !0 : (u.value = !1, setTimeout(g, 200));
827
831
  };
828
- c();
832
+ g();
829
833
  });
830
- }, s = () => {
831
- const f = l();
832
- if (f)
834
+ }, c = () => {
835
+ const h = l();
836
+ if (h)
833
837
  try {
834
- f.getSource(e.sourceId) || f.addSource(e.sourceId, e.source), f.getLayer(e.layerId) || (e.layer.layout?.visibility === "visible" ? f.addLayer(e.layer, e.before) : f.addLayer(e.layer));
835
- } catch (c) {
836
- console.error(`[${e.layerId}] Error setting up layer:`, c);
838
+ h.getSource(e.sourceId) || h.addSource(e.sourceId, e.source), h.getLayer(e.layerId) || (e.layer.layout?.visibility === "visible" ? h.addLayer(e.layer, e.before) : h.addLayer(e.layer));
839
+ } catch (g) {
840
+ console.error(`[${e.layerId}] Error setting up layer:`, g);
837
841
  }
838
- }, t = () => {
839
- const f = l();
840
- if (f)
842
+ }, o = () => {
843
+ const h = l();
844
+ if (h)
841
845
  try {
842
- const c = f.getSource(e.sourceId);
843
- if (c && JSON.stringify(c.serialize()) !== JSON.stringify(e.source)) {
844
- f.getLayer(e.layerId) && f.removeLayer(e.layerId), f.removeSource(e.sourceId), f.addSource(e.sourceId, e.source);
846
+ const g = h.getSource(e.sourceId);
847
+ if (g && JSON.stringify(g.serialize()) !== JSON.stringify(e.source)) {
848
+ h.getLayer(e.layerId) && h.removeLayer(e.layerId), h.removeSource(e.sourceId), h.addSource(e.sourceId, e.source);
845
849
  const m = {
846
850
  ...e.layer,
847
851
  id: e.layerId,
848
852
  source: e.sourceId
849
853
  };
850
- f.addLayer(m, e.before);
854
+ h.addLayer(m, e.before);
851
855
  }
852
- } catch (c) {
853
- console.error("Error updating vector source:", c);
856
+ } catch (g) {
857
+ console.error("Error updating vector source:", g);
854
858
  }
855
- }, o = () => {
856
- const f = l();
857
- if (f)
859
+ }, t = () => {
860
+ const h = l();
861
+ if (h)
858
862
  try {
859
- if (f.getLayer(e.layerId)) {
860
- const c = f.getLayer(e.layerId), m = c?.paint || {}, p = c?.layout || {};
861
- Object.entries(e.layer.paint || {}).forEach(([d, h]) => {
862
- JSON.stringify(m[d]) !== JSON.stringify(h) && f.setPaintProperty(e.layerId, d, h);
863
- }), Object.entries(e.layer.layout || {}).forEach(([d, h]) => {
864
- JSON.stringify(p[d]) !== JSON.stringify(h) && f.setLayoutProperty(e.layerId, d, h);
863
+ if (h.getLayer(e.layerId)) {
864
+ const g = h.getLayer(e.layerId), m = g?.paint || {}, f = g?.layout || {};
865
+ Object.entries(e.layer.paint || {}).forEach(([d, y]) => {
866
+ JSON.stringify(m[d]) !== JSON.stringify(y) && h.setPaintProperty(e.layerId, d, y);
867
+ }), Object.entries(e.layer.layout || {}).forEach(([d, y]) => {
868
+ JSON.stringify(f[d]) !== JSON.stringify(y) && h.setLayoutProperty(e.layerId, d, y);
865
869
  });
866
870
  }
867
- } catch (c) {
868
- console.error("Error updating vector layer:", c);
871
+ } catch (g) {
872
+ console.error("Error updating vector layer:", g);
869
873
  }
870
- }, y = (f) => {
871
- if (f)
874
+ }, p = (h) => {
875
+ if (h)
872
876
  try {
873
- j.forEach((c) => {
874
- f.on(c, e.layerId, (m) => {
875
- c === "mousemove" && (f.getCanvas().style.cursor = "pointer"), c === "mouseleave" && (f.getCanvas().style.cursor = ""), r(c, m);
877
+ K.forEach((g) => {
878
+ h.on(g, e.layerId, (m) => {
879
+ g === "mousemove" && (h.getCanvas().style.cursor = "pointer"), g === "mouseleave" && (h.getCanvas().style.cursor = ""), r(g, m);
876
880
  });
877
881
  });
878
- } catch (c) {
879
- console.error("Error setting up layer events:", c);
882
+ } catch (g) {
883
+ console.error("Error setting up layer events:", g);
880
884
  }
881
885
  };
882
886
  return v(
883
887
  i,
884
- (f, c) => {
885
- f && f !== c && n(f);
888
+ (h, g) => {
889
+ h && h !== g && s(h);
886
890
  },
887
891
  { immediate: !0 }
888
- ), v(u, (f) => {
889
- if (f) {
890
- const c = l();
891
- if (!c) return;
892
- s(), y(c);
892
+ ), v(u, (h) => {
893
+ if (h) {
894
+ const g = l();
895
+ if (!g) return;
896
+ c(), p(g);
893
897
  }
894
898
  }), v(
895
899
  () => JSON.stringify(e.source.tiles),
896
- (f, c) => {
897
- f !== c && t();
900
+ (h, g) => {
901
+ h !== g && o();
898
902
  }
899
903
  ), v(
900
904
  () => ({
@@ -902,42 +906,42 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
902
906
  // Watch layout changes but exclude visibility since it's handled separately
903
907
  layout: e.layer.layout ? { ...e.layer.layout, visibility: void 0 } : void 0
904
908
  }),
905
- (f, c) => {
906
- JSON.stringify(f) !== JSON.stringify(c) && o();
909
+ (h, g) => {
910
+ JSON.stringify(h) !== JSON.stringify(g) && t();
907
911
  },
908
912
  { deep: !0 }
909
913
  ), v(
910
914
  () => e.layer.layout?.visibility,
911
- (f) => {
912
- const c = l();
913
- if (!c) return;
914
- if (c.getLayer(e.layerId))
915
+ (h) => {
916
+ const g = l();
917
+ if (!g) return;
918
+ if (g.getLayer(e.layerId))
915
919
  try {
916
- c.setLayoutProperty(
920
+ g.setLayoutProperty(
917
921
  e.layerId,
918
922
  "visibility",
919
- f
920
- ), f === "visible" && e.before && setTimeout(() => {
921
- c.moveLayer(e.layerId, e.before);
923
+ h
924
+ ), h === "visible" && e.before && setTimeout(() => {
925
+ g.moveLayer(e.layerId, e.before);
922
926
  }, 0);
923
- } catch (p) {
924
- console.error(`[${e.layerId}] Error updating visibility:`, p);
927
+ } catch (f) {
928
+ console.error(`[${e.layerId}] Error updating visibility:`, f);
925
929
  }
926
930
  else
927
931
  try {
928
- c.getSource(e.sourceId) || c.addSource(e.sourceId, e.source), c.addLayer(e.layer, e.before);
929
- } catch (p) {
930
- console.error(`[${e.layerId}] Error adding layer:`, p);
932
+ g.getSource(e.sourceId) || g.addSource(e.sourceId, e.source), g.addLayer(e.layer, e.before);
933
+ } catch (f) {
934
+ console.error(`[${e.layerId}] Error adding layer:`, f);
931
935
  }
932
936
  },
933
937
  { immediate: !0 }
934
938
  ), v(
935
939
  () => e.before,
936
- (f) => {
937
- const c = l();
938
- if (!(!c || !c.getLayer(e.layerId)) && e.layer.layout?.visibility === "visible")
940
+ (h) => {
941
+ const g = l();
942
+ if (!(!g || !g.getLayer(e.layerId)) && e.layer.layout?.visibility === "visible")
939
943
  try {
940
- c.moveLayer(e.layerId, f);
944
+ g.moveLayer(e.layerId, h);
941
945
  } catch (m) {
942
946
  console.error(
943
947
  `Error reordering vector layer ${e.layerId}:`,
@@ -947,37 +951,37 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
947
951
  }
948
952
  ), v(
949
953
  () => e.layer.layout?.visibility,
950
- (f) => {
951
- const c = l();
952
- if (!c) return;
953
- if (c.getLayer(e.layerId))
954
+ (h) => {
955
+ const g = l();
956
+ if (!g) return;
957
+ if (g.getLayer(e.layerId))
954
958
  try {
955
- c.setLayoutProperty(
959
+ g.setLayoutProperty(
956
960
  e.layerId,
957
961
  "visibility",
958
- f
962
+ h
959
963
  );
960
- } catch (p) {
961
- console.error(`[${e.layerId}] Error updating visibility:`, p);
964
+ } catch (f) {
965
+ console.error(`[${e.layerId}] Error updating visibility:`, f);
962
966
  }
963
967
  else
964
968
  try {
965
- c.getSource(e.sourceId) || c.addSource(e.sourceId, e.source), c.addLayer(e.layer, e.before);
966
- } catch (p) {
967
- console.error(`[${e.layerId}] Error adding layer:`, p);
969
+ g.getSource(e.sourceId) || g.addSource(e.sourceId, e.source), g.addLayer(e.layer, e.before);
970
+ } catch (f) {
971
+ console.error(`[${e.layerId}] Error adding layer:`, f);
968
972
  }
969
973
  },
970
974
  { immediate: !0 }
971
975
  ), L(() => {
972
976
  if (l())
973
977
  try {
974
- s();
975
- } catch (c) {
976
- console.error(`[${e.layerId}] Error setting up layer:`, c);
978
+ c();
979
+ } catch (g) {
980
+ console.error(`[${e.layerId}] Error setting up layer:`, g);
977
981
  }
978
- }), (f, c) => C(f.$slots, "default");
982
+ }), (h, g) => x(h.$slots, "default");
979
983
  }
980
- }), ft = /* @__PURE__ */ b({
984
+ }), jt = /* @__PURE__ */ b({
981
985
  __name: "VLayerMaplibreVideo",
982
986
  props: {
983
987
  sourceId: {
@@ -1005,90 +1009,90 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1005
1009
  required: !1
1006
1010
  }
1007
1011
  },
1008
- setup(g) {
1009
- const a = g, e = k(S), r = M(!1), i = () => e.value || null, u = (t) => {
1010
- t && t.on("style.load", () => {
1011
- const o = () => {
1012
- t.isStyleLoaded() ? r.value = !0 : (r.value = !1, setTimeout(o, 200));
1012
+ setup(n) {
1013
+ const a = n, e = P(S), r = M(!1), i = () => e.value || null, u = (o) => {
1014
+ o && o.on("style.load", () => {
1015
+ const t = () => {
1016
+ o.isStyleLoaded() ? r.value = !0 : (r.value = !1, setTimeout(t, 200));
1013
1017
  };
1014
- o();
1018
+ t();
1015
1019
  });
1016
1020
  }, l = () => {
1017
- const t = i();
1018
- if (t)
1021
+ const o = i();
1022
+ if (o)
1019
1023
  try {
1020
- if (t.getSource(a.sourceId) || t.addSource(a.sourceId, a.source), !t.getLayer(a.layerId)) {
1021
- const o = {
1024
+ if (o.getSource(a.sourceId) || o.addSource(a.sourceId, a.source), !o.getLayer(a.layerId)) {
1025
+ const t = {
1022
1026
  ...a.layer,
1023
1027
  id: a.layerId,
1024
1028
  source: a.sourceId
1025
1029
  };
1026
- t.addLayer(o, a.before);
1030
+ o.addLayer(t, a.before);
1027
1031
  }
1028
- } catch (o) {
1029
- console.error("Error adding Video layer:", o);
1032
+ } catch (t) {
1033
+ console.error("Error adding Video layer:", t);
1030
1034
  }
1031
- }, n = () => {
1032
- const t = i();
1033
- if (t)
1035
+ }, s = () => {
1036
+ const o = i();
1037
+ if (o)
1034
1038
  try {
1035
- const o = t.getSource(a.sourceId);
1036
- if (o) {
1037
- t.getLayer(a.layerId) && t.removeLayer(a.layerId), t.getSource(a.sourceId) && t.removeSource(a.sourceId), t.addSource(a.sourceId, a.source);
1038
- const y = {
1039
+ const t = o.getSource(a.sourceId);
1040
+ if (t) {
1041
+ o.getLayer(a.layerId) && o.removeLayer(a.layerId), o.getSource(a.sourceId) && o.removeSource(a.sourceId), o.addSource(a.sourceId, a.source);
1042
+ const p = {
1039
1043
  ...a.layer,
1040
1044
  id: a.layerId,
1041
1045
  source: a.sourceId
1042
1046
  };
1043
- if (t.addLayer(y, a.before), o.getVideo) {
1044
- const f = o.getVideo();
1045
- f && f.play().catch((c) => {
1046
- console.error("Error playing video:", c);
1047
+ if (o.addLayer(p, a.before), t.getVideo) {
1048
+ const h = t.getVideo();
1049
+ h && h.play().catch((g) => {
1050
+ console.error("Error playing video:", g);
1047
1051
  });
1048
1052
  }
1049
1053
  }
1050
- } catch (o) {
1051
- console.error("Error updating Video source:", o);
1054
+ } catch (t) {
1055
+ console.error("Error updating Video source:", t);
1052
1056
  }
1053
- }, s = () => {
1054
- const t = i();
1055
- if (t)
1057
+ }, c = () => {
1058
+ const o = i();
1059
+ if (o)
1056
1060
  try {
1057
- t.getLayer(a.layerId) && (Object.entries(a.layer.paint || {}).forEach(([o, y]) => {
1058
- t.setPaintProperty(a.layerId, o, y);
1059
- }), Object.entries(a.layer.layout || {}).forEach(([o, y]) => {
1060
- t.setLayoutProperty(a.layerId, o, y);
1061
+ o.getLayer(a.layerId) && (Object.entries(a.layer.paint || {}).forEach(([t, p]) => {
1062
+ o.setPaintProperty(a.layerId, t, p);
1063
+ }), Object.entries(a.layer.layout || {}).forEach(([t, p]) => {
1064
+ o.setLayoutProperty(a.layerId, t, p);
1061
1065
  }));
1062
- } catch (o) {
1063
- console.error("Error updating Video layer:", o);
1066
+ } catch (t) {
1067
+ console.error("Error updating Video layer:", t);
1064
1068
  }
1065
1069
  };
1066
- return v(() => a.source, n, { deep: !0 }), v(() => a.layer, s, { deep: !0 }), v(
1070
+ return v(() => a.source, s, { deep: !0 }), v(() => a.layer, c, { deep: !0 }), v(
1067
1071
  e,
1068
- (t) => {
1069
- t && u(t);
1072
+ (o) => {
1073
+ o && u(o);
1070
1074
  },
1071
1075
  { immediate: !0 }
1072
- ), v(r, (t) => {
1073
- t && l();
1076
+ ), v(r, (o) => {
1077
+ o && l();
1074
1078
  }), L(() => {
1075
1079
  i()?.isStyleLoaded() && l();
1076
- }), P(() => {
1077
- const t = i();
1078
- if (t)
1080
+ }), k(() => {
1081
+ const o = i();
1082
+ if (o)
1079
1083
  try {
1080
- const o = t.getSource(a.sourceId);
1081
- if (o?.getVideo) {
1082
- const y = o.getVideo();
1083
- y && (y.pause(), y.remove());
1084
+ const t = o.getSource(a.sourceId);
1085
+ if (t?.getVideo) {
1086
+ const p = t.getVideo();
1087
+ p && (p.pause(), p.remove());
1084
1088
  }
1085
- t.getLayer(a.layerId) && t.removeLayer(a.layerId), t.getSource(a.sourceId) && t.removeSource(a.sourceId);
1086
- } catch (o) {
1087
- console.error("Error cleaning up Video layer:", o);
1089
+ o.getLayer(a.layerId) && o.removeLayer(a.layerId), o.getSource(a.sourceId) && o.removeSource(a.sourceId);
1090
+ } catch (t) {
1091
+ console.error("Error cleaning up Video layer:", t);
1088
1092
  }
1089
- }), (t, o) => C(t.$slots, "default");
1093
+ }), (o, t) => x(o.$slots, "default");
1090
1094
  }
1091
- }), ht = /* @__PURE__ */ b({
1095
+ }), Gt = /* @__PURE__ */ b({
1092
1096
  __name: "VLayerMaplibrePmtile",
1093
1097
  props: {
1094
1098
  sourceId: {
@@ -1116,8 +1120,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1116
1120
  required: !1
1117
1121
  }
1118
1122
  },
1119
- setup(g) {
1120
- const a = g, e = w(Y);
1123
+ setup(n) {
1124
+ const a = n, e = W(se);
1121
1125
  if (!e)
1122
1126
  throw new Error("Protocol not provided");
1123
1127
  const r = M({
@@ -1127,20 +1131,20 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1127
1131
  volatile: !0
1128
1132
  });
1129
1133
  return L(async () => {
1130
- const i = new ce(a.url);
1134
+ const i = new Pe(a.url);
1131
1135
  e.add(i);
1132
- }), (i, u) => ($(), K(je, {
1133
- "source-id": g.sourceId,
1134
- "layer-id": g.layerId,
1136
+ }), (i, u) => (D(), le(at, {
1137
+ "source-id": n.sourceId,
1138
+ "layer-id": n.layerId,
1135
1139
  source: r.value,
1136
1140
  layer: {
1137
- ...g.layer,
1141
+ ...n.layer,
1138
1142
  type: "raster"
1139
1143
  },
1140
- before: g.before
1144
+ before: n.before
1141
1145
  }, null, 8, ["source-id", "layer-id", "source", "layer", "before"]));
1142
1146
  }
1143
- }), mt = /* @__PURE__ */ b({
1147
+ }), Zt = /* @__PURE__ */ b({
1144
1148
  __name: "VLayerMaplibreCluster",
1145
1149
  props: {
1146
1150
  sourceId: { default: "cluster-source" },
@@ -1162,13 +1166,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1162
1166
  }) }
1163
1167
  },
1164
1168
  emits: ["cluster-click", "point-click"],
1165
- setup(g, { emit: a }) {
1166
- const e = g, r = a, i = k(S), u = M(!1), l = z(() => `${e.baseLayerId}-clusters`), n = z(
1169
+ setup(n, { emit: a }) {
1170
+ const e = n, r = a, i = P(S), u = M(!1), l = R(() => `${e.baseLayerId}-clusters`), s = R(
1167
1171
  () => `${e.baseLayerId}-cluster-count`
1168
- ), s = z(
1172
+ ), c = R(
1169
1173
  () => `${e.baseLayerId}-unclustered-point`
1170
- ), t = () => i.value || null, o = (d) => typeof d == "string" ? !1 : d && typeof d == "object" && "type" in d && d.type === "FeatureCollection" && "features" in d ? d.features.length > 0 : !1, y = () => {
1171
- const d = t();
1174
+ ), o = () => i.value || null, t = (d) => typeof d == "string" ? !1 : d && typeof d == "object" && "type" in d && d.type === "FeatureCollection" && "features" in d ? d.features.length > 0 : !1, p = () => {
1175
+ const d = o();
1172
1176
  if (!(!d || !d.isStyleLoaded()))
1173
1177
  try {
1174
1178
  if (!d.getSource(e.sourceId))
@@ -1179,8 +1183,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1179
1183
  clusterRadius: 50
1180
1184
  });
1181
1185
  else {
1182
- const h = d.getSource(e.sourceId);
1183
- h && "setData" in h && h.setData(e.source.data);
1186
+ const y = d.getSource(e.sourceId);
1187
+ y && "setData" in y && y.setData(e.source.data);
1184
1188
  }
1185
1189
  d.getLayer(l.value) || (console.log(`Adding clusters layer: ${l.value}`), d.addLayer({
1186
1190
  id: l.value,
@@ -1213,8 +1217,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1213
1217
  layout: {
1214
1218
  visibility: e.visibility ? "visible" : "none"
1215
1219
  }
1216
- })), d.getLayer(n.value) || (console.log(`Adding cluster count layer: ${n.value}`), d.addLayer({
1217
- id: n.value,
1220
+ })), d.getLayer(s.value) || (console.log(`Adding cluster count layer: ${s.value}`), d.addLayer({
1221
+ id: s.value,
1218
1222
  type: "symbol",
1219
1223
  source: e.sourceId,
1220
1224
  filter: ["has", "point_count"],
@@ -1227,10 +1231,10 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1227
1231
  paint: {
1228
1232
  "text-color": e.textPaint.color
1229
1233
  }
1230
- })), d.getLayer(s.value) || (console.log(
1231
- `Adding unclustered points layer: ${s.value}`
1234
+ })), d.getLayer(c.value) || (console.log(
1235
+ `Adding unclustered points layer: ${c.value}`
1232
1236
  ), d.addLayer({
1233
- id: s.value,
1237
+ id: c.value,
1234
1238
  type: "circle",
1235
1239
  source: e.sourceId,
1236
1240
  filter: ["!", ["has", "point_count"]],
@@ -1245,30 +1249,30 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1245
1249
  visibility: e.visibility ? "visible" : "none"
1246
1250
  }
1247
1251
  })), console.log(`All cluster layers added for ${e.baseLayerId}`), m(d);
1248
- } catch (h) {
1249
- console.error("Error adding cluster layers:", h);
1252
+ } catch (y) {
1253
+ console.error("Error adding cluster layers:", y);
1250
1254
  }
1251
- }, f = () => {
1252
- const d = t();
1255
+ }, h = () => {
1256
+ const d = o();
1253
1257
  if (d)
1254
1258
  try {
1255
- const h = d.getSource(e.sourceId);
1256
- h && "setData" in h ? (console.log(`Updating source ${e.sourceId} with data`), h.setData(e.source.data), setTimeout(() => {
1257
- y();
1258
- }, 100)) : h || y();
1259
- } catch (h) {
1260
- console.error("Error updating source:", h);
1259
+ const y = d.getSource(e.sourceId);
1260
+ y && "setData" in y ? (console.log(`Updating source ${e.sourceId} with data`), y.setData(e.source.data), setTimeout(() => {
1261
+ p();
1262
+ }, 100)) : y || p();
1263
+ } catch (y) {
1264
+ console.error("Error updating source:", y);
1261
1265
  }
1262
- }, c = (d) => {
1263
- const h = t();
1264
- if (!h) return;
1265
- const B = d ? "visible" : "none";
1266
+ }, g = (d) => {
1267
+ const y = o();
1268
+ if (!y) return;
1269
+ const w = d ? "visible" : "none";
1266
1270
  [
1267
1271
  l.value,
1268
- n.value,
1269
- s.value
1270
- ].forEach((x) => {
1271
- h.getLayer(x) && h.setLayoutProperty(x, "visibility", B);
1272
+ s.value,
1273
+ c.value
1274
+ ].forEach((C) => {
1275
+ y.getLayer(C) && y.setLayoutProperty(C, "visibility", w);
1272
1276
  });
1273
1277
  }, m = (d) => {
1274
1278
  if (d)
@@ -1276,78 +1280,78 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1276
1280
  d.on(
1277
1281
  "click",
1278
1282
  l.value,
1279
- (h) => {
1280
- h.features && h.features.length > 0 && r("cluster-click", {
1281
- features: h.features,
1282
- coordinates: h.lngLat
1283
+ (y) => {
1284
+ y.features && y.features.length > 0 && r("cluster-click", {
1285
+ features: y.features,
1286
+ coordinates: y.lngLat
1283
1287
  });
1284
1288
  }
1285
1289
  ), d.on(
1286
1290
  "click",
1287
- s.value,
1288
- (h) => {
1289
- h.features && h.features.length > 0 && r("point-click", {
1290
- features: h.features,
1291
- coordinates: h.lngLat
1291
+ c.value,
1292
+ (y) => {
1293
+ y.features && y.features.length > 0 && r("point-click", {
1294
+ features: y.features,
1295
+ coordinates: y.lngLat
1292
1296
  });
1293
1297
  }
1294
- ), [l.value, s.value].forEach((h) => {
1295
- d.on("mouseenter", h, () => {
1298
+ ), [l.value, c.value].forEach((y) => {
1299
+ d.on("mouseenter", y, () => {
1296
1300
  d.getCanvas().style.cursor = "pointer";
1297
- }), d.on("mouseleave", h, () => {
1301
+ }), d.on("mouseleave", y, () => {
1298
1302
  d.getCanvas().style.cursor = "";
1299
1303
  });
1300
1304
  });
1301
- } catch (h) {
1302
- console.error("Error setting up layer events:", h);
1305
+ } catch (y) {
1306
+ console.error("Error setting up layer events:", y);
1303
1307
  }
1304
- }, p = (d) => {
1308
+ }, f = (d) => {
1305
1309
  d && (d.on("style.load", () => {
1306
- const h = () => {
1307
- d.isStyleLoaded() ? (u.value = !0, o(e.source.data) && y()) : (u.value = !1, setTimeout(h, 200));
1310
+ const y = () => {
1311
+ d.isStyleLoaded() ? (u.value = !0, t(e.source.data) && p()) : (u.value = !1, setTimeout(y, 200));
1308
1312
  };
1309
- h();
1310
- }), d.isStyleLoaded() && (u.value = !0, o(e.source.data) && y()));
1313
+ y();
1314
+ }), d.isStyleLoaded() && (u.value = !0, t(e.source.data) && p()));
1311
1315
  };
1312
1316
  return v(
1313
1317
  () => e.source.data,
1314
1318
  (d) => {
1315
- if (o(d)) {
1316
- const h = t();
1317
- h?.isStyleLoaded() && (h.getSource(e.sourceId) ? f() : y());
1319
+ if (t(d)) {
1320
+ const y = o();
1321
+ y?.isStyleLoaded() && (y.getSource(e.sourceId) ? h() : p());
1318
1322
  }
1319
1323
  },
1320
1324
  { deep: !0, immediate: !0 }
1321
- ), v(() => e.visibility, c), v(
1325
+ ), v(() => e.visibility, g), v(
1322
1326
  i,
1323
1327
  (d) => {
1324
- d && p(d);
1328
+ d && f(d);
1325
1329
  },
1326
1330
  { immediate: !0 }
1327
1331
  ), L(() => {
1328
- t()?.isStyleLoaded() && o(e.source.data) && y();
1329
- }), P(() => {
1330
- const d = t();
1332
+ o()?.isStyleLoaded() && t(e.source.data) && p();
1333
+ }), k(() => {
1334
+ const d = o();
1331
1335
  if (d)
1332
1336
  try {
1333
- [l.value, s.value].forEach((h) => {
1334
- d.off("click", h, () => {
1335
- }), d.off("mouseenter", h, () => {
1336
- }), d.off("mouseleave", h, () => {
1337
+ [l.value, c.value].forEach((y) => {
1338
+ d.off("click", y, () => {
1339
+ }), d.off("mouseenter", y, () => {
1340
+ }), d.off("mouseleave", y, () => {
1337
1341
  });
1338
1342
  }), [
1339
1343
  l.value,
1340
- n.value,
1341
- s.value
1342
- ].forEach((h) => {
1343
- d.getLayer(h) && d.removeLayer(h);
1344
+ s.value,
1345
+ c.value
1346
+ ].forEach((y) => {
1347
+ d.getLayer(y) && d.removeLayer(y);
1344
1348
  }), d.getSource(e.sourceId) && d.removeSource(e.sourceId);
1345
- } catch (h) {
1346
- console.error("Error cleaning up cluster layers:", h);
1349
+ } catch (y) {
1350
+ console.error("Error cleaning up cluster layers:", y);
1347
1351
  }
1348
- }), (d, h) => C(d.$slots, "default");
1352
+ }), (d, y) => x(d.$slots, "default");
1349
1353
  }
1350
- }), vt = /* @__PURE__ */ b({
1354
+ }), qt = /* @__PURE__ */ b({
1351
1355
  __name: "VLayerMaplibreRoute",
1352
1356
  props: {
1353
1357
  id: { default: () => `route-${Math.random().toString(36).slice(2, 9)}` },
@@ -1364,8 +1368,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1364
1368
  blur: { default: 0 }
1365
1369
  },
1366
1370
  emits: ["click", "mouseenter", "mouseleave"],
1367
- setup(g, { emit: a }) {
1368
- const e = g, r = a, i = k(S), u = M(!1), l = z(() => `${e.id}-source`), n = z(() => `${e.id}-layer`), s = z(
1371
+ setup(n, { emit: a }) {
1372
+ const e = n, r = a, i = P(S), u = M(!1), l = R(() => `${e.id}-source`), s = R(() => `${e.id}-layer`), c = R(
1369
1373
  () => ({
1370
1374
  type: "FeatureCollection",
1371
1375
  features: e.coordinates.length >= 2 ? [
@@ -1379,23 +1383,23 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1379
1383
  }
1380
1384
  ] : []
1381
1385
  })
1382
- ), t = () => i.value || null, o = (p) => {
1383
- p && p.on("style.load", () => {
1386
+ ), o = () => i.value || null, t = (f) => {
1387
+ f && f.on("style.load", () => {
1384
1388
  const d = () => {
1385
- p.isStyleLoaded() ? u.value = !0 : (u.value = !1, setTimeout(d, 200));
1389
+ f.isStyleLoaded() ? u.value = !0 : (u.value = !1, setTimeout(d, 200));
1386
1390
  };
1387
1391
  d();
1388
1392
  });
1389
- }, y = () => {
1390
- const p = t();
1391
- if (!(!p || !p.isStyleLoaded()) && !(e.coordinates.length < 2))
1393
+ }, p = () => {
1394
+ const f = o();
1395
+ if (!(!f || !f.isStyleLoaded()) && !(e.coordinates.length < 2))
1392
1396
  try {
1393
- if (p.getSource(l.value) || p.addSource(l.value, {
1397
+ if (f.getSource(l.value) || f.addSource(l.value, {
1394
1398
  type: "geojson",
1395
- data: s.value
1396
- }), !p.getLayer(n.value)) {
1399
+ data: c.value
1400
+ }), !f.getLayer(s.value)) {
1397
1401
  const d = {
1398
- id: n.value,
1402
+ id: s.value,
1399
1403
  type: "line",
1400
1404
  source: l.value,
1401
1405
  layout: {
@@ -1411,51 +1415,51 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1411
1415
  ...e.dashArray && { "line-dasharray": e.dashArray }
1412
1416
  }
1413
1417
  };
1414
- p.addLayer(d, e.before || void 0);
1418
+ f.addLayer(d, e.before || void 0);
1415
1419
  }
1416
1420
  } catch (d) {
1417
1421
  console.error("Error adding route layer:", d);
1418
1422
  }
1419
- }, f = () => {
1420
- const p = t();
1421
- if (p)
1423
+ }, h = () => {
1424
+ const f = o();
1425
+ if (f)
1422
1426
  try {
1423
- const d = p.getSource(l.value);
1424
- d && "setData" in d ? d.setData(s.value) : !d && e.coordinates.length >= 2 && y();
1427
+ const d = f.getSource(l.value);
1428
+ d && "setData" in d ? d.setData(c.value) : !d && e.coordinates.length >= 2 && p();
1425
1429
  } catch (d) {
1426
1430
  console.error("Error updating route source:", d);
1427
1431
  }
1428
- }, c = () => {
1429
- const p = t();
1430
- if (!(!p || !p.getLayer(n.value)))
1432
+ }, g = () => {
1433
+ const f = o();
1434
+ if (!(!f || !f.getLayer(s.value)))
1431
1435
  try {
1432
- p.setPaintProperty(n.value, "line-color", e.color), p.setPaintProperty(n.value, "line-width", e.width), p.setPaintProperty(
1433
- n.value,
1436
+ f.setPaintProperty(s.value, "line-color", e.color), f.setPaintProperty(s.value, "line-width", e.width), f.setPaintProperty(
1437
+ s.value,
1434
1438
  "line-opacity",
1435
1439
  e.opacity
1436
- ), e.blur > 0 && p.setPaintProperty(n.value, "line-blur", e.blur), e.dashArray && p.setPaintProperty(
1437
- n.value,
1440
+ ), e.blur > 0 && f.setPaintProperty(s.value, "line-blur", e.blur), e.dashArray && f.setPaintProperty(
1441
+ s.value,
1438
1442
  "line-dasharray",
1439
1443
  e.dashArray
1440
- ), p.setLayoutProperty(n.value, "line-cap", e.lineCap), p.setLayoutProperty(n.value, "line-join", e.lineJoin), p.setLayoutProperty(
1441
- n.value,
1444
+ ), f.setLayoutProperty(s.value, "line-cap", e.lineCap), f.setLayoutProperty(s.value, "line-join", e.lineJoin), f.setLayoutProperty(
1445
+ s.value,
1442
1446
  "visibility",
1443
1447
  e.visible ? "visible" : "none"
1444
1448
  );
1445
1449
  } catch (d) {
1446
1450
  console.error("Error updating route layer style:", d);
1447
1451
  }
1448
- }, m = (p) => {
1449
- if (!(!p || !e.interactive))
1452
+ }, m = (f) => {
1453
+ if (!(!f || !e.interactive))
1450
1454
  try {
1451
- p.on("click", n.value, (d) => {
1455
+ f.on("click", s.value, (d) => {
1452
1456
  r("click", {
1453
1457
  coordinates: d.lngLat
1454
1458
  });
1455
- }), p.on("mouseenter", n.value, () => {
1456
- p.getCanvas().style.cursor = "pointer", r("mouseenter");
1457
- }), p.on("mouseleave", n.value, () => {
1458
- p.getCanvas().style.cursor = "", r("mouseleave");
1459
+ }), f.on("mouseenter", s.value, () => {
1460
+ f.getCanvas().style.cursor = "pointer", r("mouseenter");
1461
+ }), f.on("mouseleave", s.value, () => {
1462
+ f.getCanvas().style.cursor = "", r("mouseleave");
1459
1463
  });
1460
1464
  } catch (d) {
1461
1465
  console.error("Error setting up route layer events:", d);
@@ -1464,8 +1468,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1464
1468
  return v(
1465
1469
  () => e.coordinates,
1466
1470
  () => {
1467
- const p = t();
1468
- p?.isStyleLoaded() && (p.getSource(l.value) ? f() : y());
1471
+ const f = o();
1472
+ f?.isStyleLoaded() && (f.getSource(l.value) ? h() : p());
1469
1473
  },
1470
1474
  { deep: !0 }
1471
1475
  ), v(
@@ -1479,37 +1483,37 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1479
1483
  e.blur,
1480
1484
  e.dashArray
1481
1485
  ],
1482
- () => c(),
1486
+ () => g(),
1483
1487
  { deep: !0 }
1484
1488
  ), v(
1485
1489
  i,
1486
- (p) => {
1487
- p && (o(p), p.isStyleLoaded() && (u.value = !0));
1490
+ (f) => {
1491
+ f && (t(f), f.isStyleLoaded() && (u.value = !0));
1488
1492
  },
1489
1493
  { immediate: !0 }
1490
- ), v(u, (p) => {
1491
- if (p && e.coordinates.length >= 2) {
1492
- const d = t();
1493
- d && (y(), m(d));
1494
+ ), v(u, (f) => {
1495
+ if (f && e.coordinates.length >= 2) {
1496
+ const d = o();
1497
+ d && (p(), m(d));
1494
1498
  }
1495
1499
  }), L(() => {
1496
1500
  try {
1497
- const p = t();
1498
- p?.isStyleLoaded() && e.coordinates.length >= 2 && (y(), m(p));
1499
- } catch (p) {
1500
- console.error("Error mounting route layer:", p);
1501
+ const f = o();
1502
+ f?.isStyleLoaded() && e.coordinates.length >= 2 && (p(), m(f));
1503
+ } catch (f) {
1504
+ console.error("Error mounting route layer:", f);
1501
1505
  }
1502
- }), P(() => {
1503
- const p = t();
1504
- if (p)
1506
+ }), k(() => {
1507
+ const f = o();
1508
+ if (f)
1505
1509
  try {
1506
- p.getLayer(n.value) && p.removeLayer(n.value), p.getSource(l.value) && p.removeSource(l.value);
1510
+ f.getLayer(s.value) && f.removeLayer(s.value), f.getSource(l.value) && f.removeSource(l.value);
1507
1511
  } catch (d) {
1508
1512
  console.error("Error cleaning up route layer:", d);
1509
1513
  }
1510
- }), (p, d) => C(p.$slots, "default");
1514
+ }), (f, d) => x(f.$slots, "default");
1511
1515
  }
1512
- }), bt = /* @__PURE__ */ b({
1516
+ }), Jt = /* @__PURE__ */ b({
1513
1517
  __name: "VLayerDeckglScatterplot",
1514
1518
  props: {
1515
1519
  id: {},
@@ -1539,8 +1543,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1539
1543
  beforeId: {}
1540
1544
  },
1541
1545
  emits: ["click", "hover"],
1542
- setup(g, { emit: a }) {
1543
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new ge({
1546
+ setup(n, { emit: a }) {
1547
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new ke({
1544
1548
  id: e.id,
1545
1549
  data: e.data,
1546
1550
  getPosition: e.getPosition,
@@ -1566,13 +1570,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1566
1570
  autoHighlight: e.autoHighlight,
1567
1571
  highlightColor: e.highlightColor,
1568
1572
  beforeId: e.beforeId,
1569
- onClick: (o) => r("click", o),
1570
- onHover: (o) => r("hover", o)
1571
- }), t = () => {
1572
- u(s());
1573
+ onClick: (t) => r("click", t),
1574
+ onHover: (t) => r("hover", t)
1575
+ }), o = () => {
1576
+ u(c());
1573
1577
  };
1574
1578
  return L(() => {
1575
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
1579
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
1576
1580
  }), v(
1577
1581
  () => [
1578
1582
  e.data,
@@ -1586,13 +1590,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1586
1590
  e.stroked,
1587
1591
  e.filled
1588
1592
  ],
1589
- () => n(e.id, s()),
1593
+ () => s(e.id, c()),
1590
1594
  { deep: !0 }
1591
- ), P(() => {
1595
+ ), k(() => {
1592
1596
  l(e.id);
1593
- }), (o, y) => C(o.$slots, "default");
1597
+ }), (t, p) => x(t.$slots, "default");
1594
1598
  }
1595
- }), Lt = /* @__PURE__ */ b({
1599
+ }), Xt = /* @__PURE__ */ b({
1596
1600
  __name: "VLayerDeckglArc",
1597
1601
  props: {
1598
1602
  id: {},
@@ -1618,8 +1622,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1618
1622
  beforeId: {}
1619
1623
  },
1620
1624
  emits: ["click", "hover"],
1621
- setup(g, { emit: a }) {
1622
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new ye({
1625
+ setup(n, { emit: a }) {
1626
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ie({
1623
1627
  id: e.id,
1624
1628
  data: e.data,
1625
1629
  getSourcePosition: e.getSourcePosition,
@@ -1641,13 +1645,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1641
1645
  autoHighlight: e.autoHighlight,
1642
1646
  highlightColor: e.highlightColor,
1643
1647
  beforeId: e.beforeId,
1644
- onClick: (o) => r("click", o),
1645
- onHover: (o) => r("hover", o)
1646
- }), t = () => {
1647
- u(s());
1648
+ onClick: (t) => r("click", t),
1649
+ onHover: (t) => r("hover", t)
1650
+ }), o = () => {
1651
+ u(c());
1648
1652
  };
1649
1653
  return L(() => {
1650
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
1654
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
1651
1655
  }), v(
1652
1656
  () => [
1653
1657
  e.data,
@@ -1658,13 +1662,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1658
1662
  e.opacity,
1659
1663
  e.visible
1660
1664
  ],
1661
- () => n(e.id, s()),
1665
+ () => s(e.id, c()),
1662
1666
  { deep: !0 }
1663
- ), P(() => {
1667
+ ), k(() => {
1664
1668
  l(e.id);
1665
- }), (o, y) => C(o.$slots, "default");
1669
+ }), (t, p) => x(t.$slots, "default");
1666
1670
  }
1667
- }), St = /* @__PURE__ */ b({
1671
+ }), Kt = /* @__PURE__ */ b({
1668
1672
  __name: "VLayerDeckglGeojson",
1669
1673
  props: {
1670
1674
  id: {},
@@ -1701,8 +1705,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1701
1705
  beforeId: {}
1702
1706
  },
1703
1707
  emits: ["click", "hover"],
1704
- setup(g, { emit: a }) {
1705
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new pe({
1708
+ setup(n, { emit: a }) {
1709
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new _e({
1706
1710
  id: e.id,
1707
1711
  data: e.data,
1708
1712
  getFillColor: e.getFillColor ?? [200, 200, 200, 200],
@@ -1735,13 +1739,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1735
1739
  autoHighlight: e.autoHighlight,
1736
1740
  highlightColor: e.highlightColor,
1737
1741
  beforeId: e.beforeId,
1738
- onClick: (o) => r("click", o),
1739
- onHover: (o) => r("hover", o)
1740
- }), t = () => {
1741
- u(s());
1742
+ onClick: (t) => r("click", t),
1743
+ onHover: (t) => r("hover", t)
1744
+ }), o = () => {
1745
+ u(c());
1742
1746
  };
1743
1747
  return L(() => {
1744
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
1748
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
1745
1749
  }), v(
1746
1750
  () => [
1747
1751
  e.data,
@@ -1751,13 +1755,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1751
1755
  e.visible,
1752
1756
  e.extruded
1753
1757
  ],
1754
- () => n(e.id, s()),
1758
+ () => s(e.id, c()),
1755
1759
  { deep: !0 }
1756
- ), P(() => {
1760
+ ), k(() => {
1757
1761
  l(e.id);
1758
- }), (o, y) => C(o.$slots, "default");
1762
+ }), (t, p) => x(t.$slots, "default");
1759
1763
  }
1760
- }), Ct = /* @__PURE__ */ b({
1764
+ }), Qt = /* @__PURE__ */ b({
1761
1765
  __name: "VLayerDeckglPath",
1762
1766
  props: {
1763
1767
  id: {},
@@ -1781,8 +1785,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1781
1785
  beforeId: {}
1782
1786
  },
1783
1787
  emits: ["click", "hover"],
1784
- setup(g, { emit: a }) {
1785
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new fe({
1788
+ setup(n, { emit: a }) {
1789
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Me({
1786
1790
  id: e.id,
1787
1791
  data: e.data,
1788
1792
  getPath: e.getPath,
@@ -1802,13 +1806,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1802
1806
  autoHighlight: e.autoHighlight,
1803
1807
  highlightColor: e.highlightColor,
1804
1808
  beforeId: e.beforeId,
1805
- onClick: (o) => r("click", o),
1806
- onHover: (o) => r("hover", o)
1807
- }), t = () => {
1808
- u(s());
1809
+ onClick: (t) => r("click", t),
1810
+ onHover: (t) => r("hover", t)
1811
+ }), o = () => {
1812
+ u(c());
1809
1813
  };
1810
1814
  return L(() => {
1811
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
1815
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
1812
1816
  }), v(
1813
1817
  () => [
1814
1818
  e.data,
@@ -1817,13 +1821,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1817
1821
  e.opacity,
1818
1822
  e.visible
1819
1823
  ],
1820
- () => n(e.id, s()),
1824
+ () => s(e.id, c()),
1821
1825
  { deep: !0 }
1822
- ), P(() => {
1826
+ ), k(() => {
1823
1827
  l(e.id);
1824
- }), (o, y) => C(o.$slots, "default");
1828
+ }), (t, p) => x(t.$slots, "default");
1825
1829
  }
1826
- }), kt = /* @__PURE__ */ b({
1830
+ }), Yt = /* @__PURE__ */ b({
1827
1831
  __name: "VLayerDeckglLine",
1828
1832
  props: {
1829
1833
  id: {},
@@ -1844,8 +1848,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1844
1848
  beforeId: {}
1845
1849
  },
1846
1850
  emits: ["click", "hover"],
1847
- setup(g, { emit: a }) {
1848
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new he({
1851
+ setup(n, { emit: a }) {
1852
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new q({
1849
1853
  id: e.id,
1850
1854
  data: e.data,
1851
1855
  getSourcePosition: e.getSourcePosition,
@@ -1862,13 +1866,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1862
1866
  autoHighlight: e.autoHighlight,
1863
1867
  highlightColor: e.highlightColor,
1864
1868
  beforeId: e.beforeId,
1865
- onClick: (o) => r("click", o),
1866
- onHover: (o) => r("hover", o)
1867
- }), t = () => {
1868
- u(s());
1869
+ onClick: (t) => r("click", t),
1870
+ onHover: (t) => r("hover", t)
1871
+ }), o = () => {
1872
+ u(c());
1869
1873
  };
1870
1874
  return L(() => {
1871
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
1875
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
1872
1876
  }), v(
1873
1877
  () => [
1874
1878
  e.data,
@@ -1878,13 +1882,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1878
1882
  e.opacity,
1879
1883
  e.visible
1880
1884
  ],
1881
- () => n(e.id, s()),
1885
+ () => s(e.id, c()),
1882
1886
  { deep: !0 }
1883
- ), P(() => {
1887
+ ), k(() => {
1884
1888
  l(e.id);
1885
- }), (o, y) => C(o.$slots, "default");
1889
+ }), (t, p) => x(t.$slots, "default");
1886
1890
  }
1887
- }), Pt = /* @__PURE__ */ b({
1891
+ }), eo = /* @__PURE__ */ b({
1888
1892
  __name: "VLayerDeckglPolygon",
1889
1893
  props: {
1890
1894
  id: {},
@@ -1914,8 +1918,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1914
1918
  beforeId: {}
1915
1919
  },
1916
1920
  emits: ["click", "hover"],
1917
- setup(g, { emit: a }) {
1918
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new me({
1921
+ setup(n, { emit: a }) {
1922
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new we({
1919
1923
  id: e.id,
1920
1924
  data: e.data,
1921
1925
  getPolygon: e.getPolygon,
@@ -1941,13 +1945,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1941
1945
  autoHighlight: e.autoHighlight,
1942
1946
  highlightColor: e.highlightColor,
1943
1947
  beforeId: e.beforeId,
1944
- onClick: (o) => r("click", o),
1945
- onHover: (o) => r("hover", o)
1946
- }), t = () => {
1947
- u(s());
1948
+ onClick: (t) => r("click", t),
1949
+ onHover: (t) => r("hover", t)
1950
+ }), o = () => {
1951
+ u(c());
1948
1952
  };
1949
1953
  return L(() => {
1950
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
1954
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
1951
1955
  }), v(
1952
1956
  () => [
1953
1957
  e.data,
@@ -1958,13 +1962,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1958
1962
  e.visible,
1959
1963
  e.extruded
1960
1964
  ],
1961
- () => n(e.id, s()),
1965
+ () => s(e.id, c()),
1962
1966
  { deep: !0 }
1963
- ), P(() => {
1967
+ ), k(() => {
1964
1968
  l(e.id);
1965
- }), (o, y) => C(o.$slots, "default");
1969
+ }), (t, p) => x(t.$slots, "default");
1966
1970
  }
1967
- }), xt = /* @__PURE__ */ b({
1971
+ }), to = /* @__PURE__ */ b({
1968
1972
  __name: "VLayerDeckglSolidPolygon",
1969
1973
  props: {
1970
1974
  id: {},
@@ -1986,8 +1990,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
1986
1990
  beforeId: {}
1987
1991
  },
1988
1992
  emits: ["click", "hover"],
1989
- setup(g, { emit: a }) {
1990
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new ve({
1993
+ setup(n, { emit: a }) {
1994
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ee({
1991
1995
  id: e.id,
1992
1996
  data: e.data,
1993
1997
  getPolygon: e.getPolygon,
@@ -2005,13 +2009,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2005
2009
  autoHighlight: e.autoHighlight,
2006
2010
  highlightColor: e.highlightColor,
2007
2011
  beforeId: e.beforeId,
2008
- onClick: (o) => r("click", o),
2009
- onHover: (o) => r("hover", o)
2010
- }), t = () => {
2011
- u(s());
2012
+ onClick: (t) => r("click", t),
2013
+ onHover: (t) => r("hover", t)
2014
+ }), o = () => {
2015
+ u(c());
2012
2016
  };
2013
2017
  return L(() => {
2014
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2018
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2015
2019
  }), v(
2016
2020
  () => [
2017
2021
  e.data,
@@ -2023,13 +2027,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2023
2027
  e.opacity,
2024
2028
  e.visible
2025
2029
  ],
2026
- () => n(e.id, s()),
2030
+ () => s(e.id, c()),
2027
2031
  { deep: !0 }
2028
- ), P(() => {
2032
+ ), k(() => {
2029
2033
  l(e.id);
2030
- }), (o, y) => C(o.$slots, "default");
2034
+ }), (t, p) => x(t.$slots, "default");
2031
2035
  }
2032
- }), It = /* @__PURE__ */ b({
2036
+ }), oo = /* @__PURE__ */ b({
2033
2037
  __name: "VLayerDeckglIcon",
2034
2038
  props: {
2035
2039
  id: {},
@@ -2055,8 +2059,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2055
2059
  beforeId: {}
2056
2060
  },
2057
2061
  emits: ["click", "hover"],
2058
- setup(g, { emit: a }) {
2059
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new be({
2062
+ setup(n, { emit: a }) {
2063
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Be({
2060
2064
  id: e.id,
2061
2065
  data: e.data,
2062
2066
  getPosition: e.getPosition,
@@ -2078,13 +2082,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2078
2082
  autoHighlight: e.autoHighlight,
2079
2083
  highlightColor: e.highlightColor,
2080
2084
  beforeId: e.beforeId,
2081
- onClick: (o) => r("click", o),
2082
- onHover: (o) => r("hover", o)
2083
- }), t = () => {
2084
- u(s());
2085
+ onClick: (t) => r("click", t),
2086
+ onHover: (t) => r("hover", t)
2087
+ }), o = () => {
2088
+ u(c());
2085
2089
  };
2086
2090
  return L(() => {
2087
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2091
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2088
2092
  }), v(
2089
2093
  () => [
2090
2094
  e.data,
@@ -2095,13 +2099,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2095
2099
  e.opacity,
2096
2100
  e.visible
2097
2101
  ],
2098
- () => n(e.id, s()),
2102
+ () => s(e.id, c()),
2099
2103
  { deep: !0 }
2100
- ), P(() => {
2104
+ ), k(() => {
2101
2105
  l(e.id);
2102
- }), (o, y) => C(o.$slots, "default");
2106
+ }), (t, p) => x(t.$slots, "default");
2103
2107
  }
2104
- }), _t = /* @__PURE__ */ b({
2108
+ }), ao = /* @__PURE__ */ b({
2105
2109
  __name: "VLayerDeckglText",
2106
2110
  props: {
2107
2111
  id: {},
@@ -2124,10 +2128,11 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2124
2128
  sizeUnits: { default: "pixels" },
2125
2129
  sizeMinPixels: { default: 0 },
2126
2130
  sizeMaxPixels: { default: Number.MAX_SAFE_INTEGER },
2131
+ characterSet: { default: "auto" },
2127
2132
  fontFamily: { default: "Monaco, monospace" },
2128
2133
  fontWeight: { default: "normal" },
2129
2134
  lineHeight: { default: 1 },
2130
- fontSettings: {},
2135
+ fontSettings: { default: () => ({ sdf: !0 }) },
2131
2136
  wordBreak: { default: "break-word" },
2132
2137
  maxWidth: { default: -1 },
2133
2138
  outlineWidth: { default: 0 },
@@ -2140,8 +2145,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2140
2145
  beforeId: {}
2141
2146
  },
2142
2147
  emits: ["click", "hover"],
2143
- setup(g, { emit: a }) {
2144
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Le({
2148
+ setup(n, { emit: a }) {
2149
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Te({
2145
2150
  id: e.id,
2146
2151
  data: e.data,
2147
2152
  getPosition: e.getPosition,
@@ -2162,6 +2167,7 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2162
2167
  sizeUnits: e.sizeUnits,
2163
2168
  sizeMinPixels: e.sizeMinPixels,
2164
2169
  sizeMaxPixels: e.sizeMaxPixels,
2170
+ characterSet: e.characterSet,
2165
2171
  fontFamily: e.fontFamily,
2166
2172
  fontWeight: e.fontWeight,
2167
2173
  lineHeight: e.lineHeight,
@@ -2176,13 +2182,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2176
2182
  autoHighlight: e.autoHighlight,
2177
2183
  highlightColor: e.highlightColor,
2178
2184
  beforeId: e.beforeId,
2179
- onClick: (o) => r("click", o),
2180
- onHover: (o) => r("hover", o)
2181
- }), t = () => {
2182
- u(s());
2185
+ onClick: (t) => r("click", t),
2186
+ onHover: (t) => r("hover", t)
2187
+ }), o = () => {
2188
+ u(c());
2183
2189
  };
2184
2190
  return L(() => {
2185
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2191
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2186
2192
  }), v(
2187
2193
  () => [
2188
2194
  e.data,
@@ -2193,13 +2199,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2193
2199
  e.opacity,
2194
2200
  e.visible
2195
2201
  ],
2196
- () => n(e.id, s()),
2202
+ () => s(e.id, c()),
2197
2203
  { deep: !0 }
2198
- ), P(() => {
2204
+ ), k(() => {
2199
2205
  l(e.id);
2200
- }), (o, y) => C(o.$slots, "default");
2206
+ }), (t, p) => x(t.$slots, "default");
2201
2207
  }
2202
- }), Mt = /* @__PURE__ */ b({
2208
+ }), io = /* @__PURE__ */ b({
2203
2209
  __name: "VLayerDeckglColumn",
2204
2210
  props: {
2205
2211
  id: {},
@@ -2234,8 +2240,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2234
2240
  beforeId: {}
2235
2241
  },
2236
2242
  emits: ["click", "hover"],
2237
- setup(g, { emit: a }) {
2238
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Se({
2243
+ setup(n, { emit: a }) {
2244
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new We({
2239
2245
  id: e.id,
2240
2246
  data: e.data,
2241
2247
  getPosition: e.getPosition,
@@ -2266,13 +2272,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2266
2272
  autoHighlight: e.autoHighlight,
2267
2273
  highlightColor: e.highlightColor,
2268
2274
  beforeId: e.beforeId,
2269
- onClick: (o) => r("click", o),
2270
- onHover: (o) => r("hover", o)
2271
- }), t = () => {
2272
- u(s());
2275
+ onClick: (t) => r("click", t),
2276
+ onHover: (t) => r("hover", t)
2277
+ }), o = () => {
2278
+ u(c());
2273
2279
  };
2274
2280
  return L(() => {
2275
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2281
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2276
2282
  }), v(
2277
2283
  () => [
2278
2284
  e.data,
@@ -2284,13 +2290,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2284
2290
  e.opacity,
2285
2291
  e.visible
2286
2292
  ],
2287
- () => n(e.id, s()),
2293
+ () => s(e.id, c()),
2288
2294
  { deep: !0 }
2289
- ), P(() => {
2295
+ ), k(() => {
2290
2296
  l(e.id);
2291
- }), (o, y) => C(o.$slots, "default");
2297
+ }), (t, p) => x(t.$slots, "default");
2292
2298
  }
2293
- }), Et = /* @__PURE__ */ b({
2299
+ }), ro = /* @__PURE__ */ b({
2294
2300
  __name: "VLayerDeckglBitmap",
2295
2301
  props: {
2296
2302
  id: {},
@@ -2309,8 +2315,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2309
2315
  beforeId: {}
2310
2316
  },
2311
2317
  emits: ["click", "hover"],
2312
- setup(g, { emit: a }) {
2313
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Ce({
2318
+ setup(n, { emit: a }) {
2319
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new ze({
2314
2320
  id: e.id,
2315
2321
  image: e.image,
2316
2322
  bounds: e.bounds,
@@ -2325,13 +2331,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2325
2331
  autoHighlight: e.autoHighlight,
2326
2332
  highlightColor: e.highlightColor,
2327
2333
  beforeId: e.beforeId,
2328
- onClick: (o) => r("click", o),
2329
- onHover: (o) => r("hover", o)
2330
- }), t = () => {
2331
- u(s());
2334
+ onClick: (t) => r("click", t),
2335
+ onHover: (t) => r("hover", t)
2336
+ }), o = () => {
2337
+ u(c());
2332
2338
  };
2333
2339
  return L(() => {
2334
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2340
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2335
2341
  }), v(
2336
2342
  () => [
2337
2343
  e.image,
@@ -2341,13 +2347,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2341
2347
  e.opacity,
2342
2348
  e.visible
2343
2349
  ],
2344
- () => n(e.id, s()),
2350
+ () => s(e.id, c()),
2345
2351
  { deep: !0 }
2346
- ), P(() => {
2352
+ ), k(() => {
2347
2353
  l(e.id);
2348
- }), (o, y) => C(o.$slots, "default");
2354
+ }), (t, p) => x(t.$slots, "default");
2349
2355
  }
2350
- }), Bt = /* @__PURE__ */ b({
2356
+ }), lo = /* @__PURE__ */ b({
2351
2357
  __name: "VLayerDeckglGridCell",
2352
2358
  props: {
2353
2359
  id: {},
@@ -2368,8 +2374,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2368
2374
  beforeId: {}
2369
2375
  },
2370
2376
  emits: ["click", "hover"],
2371
- setup(g, { emit: a }) {
2372
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new ke({
2377
+ setup(n, { emit: a }) {
2378
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Re({
2373
2379
  id: e.id,
2374
2380
  data: e.data,
2375
2381
  getPosition: e.getPosition,
@@ -2386,13 +2392,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2386
2392
  autoHighlight: e.autoHighlight,
2387
2393
  highlightColor: e.highlightColor,
2388
2394
  beforeId: e.beforeId,
2389
- onClick: (o) => r("click", o),
2390
- onHover: (o) => r("hover", o)
2391
- }), t = () => {
2392
- u(s());
2395
+ onClick: (t) => r("click", t),
2396
+ onHover: (t) => r("hover", t)
2397
+ }), o = () => {
2398
+ u(c());
2393
2399
  };
2394
2400
  return L(() => {
2395
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2401
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2396
2402
  }), v(
2397
2403
  () => [
2398
2404
  e.data,
@@ -2404,13 +2410,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2404
2410
  e.opacity,
2405
2411
  e.visible
2406
2412
  ],
2407
- () => n(e.id, s()),
2413
+ () => s(e.id, c()),
2408
2414
  { deep: !0 }
2409
- ), P(() => {
2415
+ ), k(() => {
2410
2416
  l(e.id);
2411
- }), (o, y) => C(o.$slots, "default");
2417
+ }), (t, p) => x(t.$slots, "default");
2412
2418
  }
2413
- }), Wt = /* @__PURE__ */ b({
2419
+ }), no = /* @__PURE__ */ b({
2414
2420
  __name: "VLayerDeckglPointCloud",
2415
2421
  props: {
2416
2422
  id: {},
@@ -2429,8 +2435,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2429
2435
  beforeId: {}
2430
2436
  },
2431
2437
  emits: ["click", "hover"],
2432
- setup(g, { emit: a }) {
2433
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Pe({
2438
+ setup(n, { emit: a }) {
2439
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new He({
2434
2440
  id: e.id,
2435
2441
  data: e.data,
2436
2442
  getPosition: e.getPosition,
@@ -2445,13 +2451,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2445
2451
  autoHighlight: e.autoHighlight,
2446
2452
  highlightColor: e.highlightColor,
2447
2453
  beforeId: e.beforeId,
2448
- onClick: (o) => r("click", o),
2449
- onHover: (o) => r("hover", o)
2450
- }), t = () => {
2451
- u(s());
2454
+ onClick: (t) => r("click", t),
2455
+ onHover: (t) => r("hover", t)
2456
+ }), o = () => {
2457
+ u(c());
2452
2458
  };
2453
2459
  return L(() => {
2454
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2460
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2455
2461
  }), v(
2456
2462
  () => [
2457
2463
  e.data,
@@ -2461,13 +2467,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2461
2467
  e.opacity,
2462
2468
  e.visible
2463
2469
  ],
2464
- () => n(e.id, s()),
2470
+ () => s(e.id, c()),
2465
2471
  { deep: !0 }
2466
- ), P(() => {
2472
+ ), k(() => {
2467
2473
  l(e.id);
2468
- }), (o, y) => C(o.$slots, "default");
2474
+ }), (t, p) => x(t.$slots, "default");
2469
2475
  }
2470
- }), wt = /* @__PURE__ */ b({
2476
+ }), so = /* @__PURE__ */ b({
2471
2477
  __name: "VLayerDeckglHeatmap",
2472
2478
  props: {
2473
2479
  id: {},
@@ -2488,8 +2494,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2488
2494
  beforeId: {}
2489
2495
  },
2490
2496
  emits: ["click", "hover"],
2491
- setup(g, { emit: a }) {
2492
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new xe({
2497
+ setup(n, { emit: a }) {
2498
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Oe({
2493
2499
  id: e.id,
2494
2500
  data: e.data,
2495
2501
  getPosition: e.getPosition,
@@ -2506,13 +2512,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2506
2512
  visible: e.visible,
2507
2513
  pickable: e.pickable,
2508
2514
  beforeId: e.beforeId,
2509
- onClick: (o) => r("click", o),
2510
- onHover: (o) => r("hover", o)
2511
- }), t = () => {
2512
- u(s());
2515
+ onClick: (t) => r("click", t),
2516
+ onHover: (t) => r("hover", t)
2517
+ }), o = () => {
2518
+ u(c());
2513
2519
  };
2514
2520
  return L(() => {
2515
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2521
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2516
2522
  }), v(
2517
2523
  () => [
2518
2524
  e.data,
@@ -2523,13 +2529,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2523
2529
  e.opacity,
2524
2530
  e.visible
2525
2531
  ],
2526
- () => n(e.id, s()),
2532
+ () => s(e.id, c()),
2527
2533
  { deep: !0 }
2528
- ), P(() => {
2534
+ ), k(() => {
2529
2535
  l(e.id);
2530
- }), (o, y) => C(o.$slots, "default");
2536
+ }), (t, p) => x(t.$slots, "default");
2531
2537
  }
2532
- }), Tt = /* @__PURE__ */ b({
2538
+ }), co = /* @__PURE__ */ b({
2533
2539
  __name: "VLayerDeckglHexagon",
2534
2540
  props: {
2535
2541
  id: {},
@@ -2561,8 +2567,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2561
2567
  beforeId: {}
2562
2568
  },
2563
2569
  emits: ["click", "hover"],
2564
- setup(g, { emit: a }) {
2565
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Ie({
2570
+ setup(n, { emit: a }) {
2571
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new De({
2566
2572
  id: e.id,
2567
2573
  data: e.data,
2568
2574
  getPosition: e.getPosition,
@@ -2590,13 +2596,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2590
2596
  autoHighlight: e.autoHighlight,
2591
2597
  highlightColor: e.highlightColor,
2592
2598
  beforeId: e.beforeId,
2593
- onClick: (o) => r("click", o),
2594
- onHover: (o) => r("hover", o)
2595
- }), t = () => {
2596
- u(s());
2599
+ onClick: (t) => r("click", t),
2600
+ onHover: (t) => r("hover", t)
2601
+ }), o = () => {
2602
+ u(c());
2597
2603
  };
2598
2604
  return L(() => {
2599
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2605
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2600
2606
  }), v(
2601
2607
  () => [
2602
2608
  e.data,
@@ -2607,13 +2613,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2607
2613
  e.visible,
2608
2614
  e.extruded
2609
2615
  ],
2610
- () => n(e.id, s()),
2616
+ () => s(e.id, c()),
2611
2617
  { deep: !0 }
2612
- ), P(() => {
2618
+ ), k(() => {
2613
2619
  l(e.id);
2614
- }), (o, y) => C(o.$slots, "default");
2620
+ }), (t, p) => x(t.$slots, "default");
2615
2621
  }
2616
- }), zt = /* @__PURE__ */ b({
2622
+ }), uo = /* @__PURE__ */ b({
2617
2623
  __name: "VLayerDeckglGrid",
2618
2624
  props: {
2619
2625
  id: {},
@@ -2645,8 +2651,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2645
2651
  beforeId: {}
2646
2652
  },
2647
2653
  emits: ["click", "hover"],
2648
- setup(g, { emit: a }) {
2649
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new _e({
2654
+ setup(n, { emit: a }) {
2655
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ae({
2650
2656
  id: e.id,
2651
2657
  data: e.data,
2652
2658
  getPosition: e.getPosition,
@@ -2674,13 +2680,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2674
2680
  autoHighlight: e.autoHighlight,
2675
2681
  highlightColor: e.highlightColor,
2676
2682
  beforeId: e.beforeId,
2677
- onClick: (o) => r("click", o),
2678
- onHover: (o) => r("hover", o)
2679
- }), t = () => {
2680
- u(s());
2683
+ onClick: (t) => r("click", t),
2684
+ onHover: (t) => r("hover", t)
2685
+ }), o = () => {
2686
+ u(c());
2681
2687
  };
2682
2688
  return L(() => {
2683
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2689
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2684
2690
  }), v(
2685
2691
  () => [
2686
2692
  e.data,
@@ -2692,13 +2698,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2692
2698
  e.opacity,
2693
2699
  e.visible
2694
2700
  ],
2695
- () => n(e.id, s()),
2701
+ () => s(e.id, c()),
2696
2702
  { deep: !0 }
2697
- ), P(() => {
2703
+ ), k(() => {
2698
2704
  l(e.id);
2699
- }), (o, y) => C(o.$slots, "default");
2705
+ }), (t, p) => x(t.$slots, "default");
2700
2706
  }
2701
- }), Ht = /* @__PURE__ */ b({
2707
+ }), go = /* @__PURE__ */ b({
2702
2708
  __name: "VLayerDeckglContour",
2703
2709
  props: {
2704
2710
  id: {},
@@ -2718,8 +2724,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2718
2724
  beforeId: {}
2719
2725
  },
2720
2726
  emits: ["click", "hover"],
2721
- setup(g, { emit: a }) {
2722
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Me({
2727
+ setup(n, { emit: a }) {
2728
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ve({
2723
2729
  id: e.id,
2724
2730
  data: e.data,
2725
2731
  getPosition: e.getPosition,
@@ -2735,13 +2741,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2735
2741
  autoHighlight: e.autoHighlight,
2736
2742
  highlightColor: e.highlightColor,
2737
2743
  beforeId: e.beforeId,
2738
- onClick: (o) => r("click", o),
2739
- onHover: (o) => r("hover", o)
2740
- }), t = () => {
2741
- u(s());
2744
+ onClick: (t) => r("click", t),
2745
+ onHover: (t) => r("hover", t)
2746
+ }), o = () => {
2747
+ u(c());
2742
2748
  };
2743
2749
  return L(() => {
2744
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2750
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2745
2751
  }), v(
2746
2752
  () => [
2747
2753
  e.data,
@@ -2751,13 +2757,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2751
2757
  e.opacity,
2752
2758
  e.visible
2753
2759
  ],
2754
- () => n(e.id, s()),
2760
+ () => s(e.id, c()),
2755
2761
  { deep: !0 }
2756
- ), P(() => {
2762
+ ), k(() => {
2757
2763
  l(e.id);
2758
- }), (o, y) => C(o.$slots, "default");
2764
+ }), (t, p) => x(t.$slots, "default");
2759
2765
  }
2760
- }), $t = /* @__PURE__ */ b({
2766
+ }), po = /* @__PURE__ */ b({
2761
2767
  __name: "VLayerDeckglScreenGrid",
2762
2768
  props: {
2763
2769
  id: {},
@@ -2778,8 +2784,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2778
2784
  beforeId: {}
2779
2785
  },
2780
2786
  emits: ["click", "hover"],
2781
- setup(g, { emit: a }) {
2782
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Ee({
2787
+ setup(n, { emit: a }) {
2788
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new $e({
2783
2789
  id: e.id,
2784
2790
  data: e.data,
2785
2791
  getPosition: e.getPosition,
@@ -2796,13 +2802,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2796
2802
  autoHighlight: e.autoHighlight,
2797
2803
  highlightColor: e.highlightColor,
2798
2804
  beforeId: e.beforeId,
2799
- onClick: (o) => r("click", o),
2800
- onHover: (o) => r("hover", o)
2801
- }), t = () => {
2802
- u(s());
2805
+ onClick: (t) => r("click", t),
2806
+ onHover: (t) => r("hover", t)
2807
+ }), o = () => {
2808
+ u(c());
2803
2809
  };
2804
2810
  return L(() => {
2805
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2811
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2806
2812
  }), v(
2807
2813
  () => [
2808
2814
  e.data,
@@ -2812,13 +2818,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2812
2818
  e.opacity,
2813
2819
  e.visible
2814
2820
  ],
2815
- () => n(e.id, s()),
2821
+ () => s(e.id, c()),
2816
2822
  { deep: !0 }
2817
- ), P(() => {
2823
+ ), k(() => {
2818
2824
  l(e.id);
2819
- }), (o, y) => C(o.$slots, "default");
2825
+ }), (t, p) => x(t.$slots, "default");
2820
2826
  }
2821
- }), Rt = /* @__PURE__ */ b({
2827
+ }), fo = /* @__PURE__ */ b({
2822
2828
  __name: "VLayerDeckglTrips",
2823
2829
  props: {
2824
2830
  id: {},
@@ -2845,8 +2851,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2845
2851
  beforeId: {}
2846
2852
  },
2847
2853
  emits: ["click", "hover"],
2848
- setup(g, { emit: a }) {
2849
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Be({
2854
+ setup(n, { emit: a }) {
2855
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Fe({
2850
2856
  id: e.id,
2851
2857
  data: e.data,
2852
2858
  getPath: e.getPath,
@@ -2869,13 +2875,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2869
2875
  autoHighlight: e.autoHighlight,
2870
2876
  highlightColor: e.highlightColor,
2871
2877
  beforeId: e.beforeId,
2872
- onClick: (o) => r("click", o),
2873
- onHover: (o) => r("hover", o)
2874
- }), t = () => {
2875
- u(s());
2878
+ onClick: (t) => r("click", t),
2879
+ onHover: (t) => r("hover", t)
2880
+ }), o = () => {
2881
+ u(c());
2876
2882
  };
2877
2883
  return L(() => {
2878
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2884
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2879
2885
  }), v(
2880
2886
  () => [
2881
2887
  e.data,
@@ -2886,13 +2892,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2886
2892
  e.opacity,
2887
2893
  e.visible
2888
2894
  ],
2889
- () => n(e.id, s()),
2895
+ () => s(e.id, c()),
2890
2896
  { deep: !0 }
2891
- ), P(() => {
2897
+ ), k(() => {
2892
2898
  l(e.id);
2893
- }), (o, y) => C(o.$slots, "default");
2899
+ }), (t, p) => x(t.$slots, "default");
2894
2900
  }
2895
- }), Ot = /* @__PURE__ */ b({
2901
+ }), yo = /* @__PURE__ */ b({
2896
2902
  __name: "VLayerDeckglH3Hexagon",
2897
2903
  props: {
2898
2904
  id: {},
@@ -2921,8 +2927,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2921
2927
  beforeId: {}
2922
2928
  },
2923
2929
  emits: ["click", "hover"],
2924
- setup(g, { emit: a }) {
2925
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new We({
2930
+ setup(n, { emit: a }) {
2931
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ue({
2926
2932
  id: e.id,
2927
2933
  data: e.data,
2928
2934
  getHexagon: e.getHexagon,
@@ -2947,13 +2953,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2947
2953
  autoHighlight: e.autoHighlight,
2948
2954
  highlightColor: e.highlightColor,
2949
2955
  beforeId: e.beforeId,
2950
- onClick: (o) => r("click", o),
2951
- onHover: (o) => r("hover", o)
2952
- }), t = () => {
2953
- u(s());
2956
+ onClick: (t) => r("click", t),
2957
+ onHover: (t) => r("hover", t)
2958
+ }), o = () => {
2959
+ u(c());
2954
2960
  };
2955
2961
  return L(() => {
2956
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
2962
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
2957
2963
  }), v(
2958
2964
  () => [
2959
2965
  e.data,
@@ -2965,13 +2971,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2965
2971
  e.opacity,
2966
2972
  e.visible
2967
2973
  ],
2968
- () => n(e.id, s()),
2974
+ () => s(e.id, c()),
2969
2975
  { deep: !0 }
2970
- ), P(() => {
2976
+ ), k(() => {
2971
2977
  l(e.id);
2972
- }), (o, y) => C(o.$slots, "default");
2978
+ }), (t, p) => x(t.$slots, "default");
2973
2979
  }
2974
- }), Vt = /* @__PURE__ */ b({
2980
+ }), ho = /* @__PURE__ */ b({
2975
2981
  __name: "VLayerDeckglH3Cluster",
2976
2982
  props: {
2977
2983
  id: {},
@@ -2998,8 +3004,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
2998
3004
  beforeId: {}
2999
3005
  },
3000
3006
  emits: ["click", "hover"],
3001
- setup(g, { emit: a }) {
3002
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new we({
3007
+ setup(n, { emit: a }) {
3008
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ne({
3003
3009
  id: e.id,
3004
3010
  data: e.data,
3005
3011
  getHexagons: e.getHexagons,
@@ -3022,13 +3028,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3022
3028
  autoHighlight: e.autoHighlight,
3023
3029
  highlightColor: e.highlightColor,
3024
3030
  beforeId: e.beforeId,
3025
- onClick: (o) => r("click", o),
3026
- onHover: (o) => r("hover", o)
3027
- }), t = () => {
3028
- u(s());
3031
+ onClick: (t) => r("click", t),
3032
+ onHover: (t) => r("hover", t)
3033
+ }), o = () => {
3034
+ u(c());
3029
3035
  };
3030
3036
  return L(() => {
3031
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3037
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3032
3038
  }), v(
3033
3039
  () => [
3034
3040
  e.data,
@@ -3040,13 +3046,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3040
3046
  e.opacity,
3041
3047
  e.visible
3042
3048
  ],
3043
- () => n(e.id, s()),
3049
+ () => s(e.id, c()),
3044
3050
  { deep: !0 }
3045
- ), P(() => {
3051
+ ), k(() => {
3046
3052
  l(e.id);
3047
- }), (o, y) => C(o.$slots, "default");
3053
+ }), (t, p) => x(t.$slots, "default");
3048
3054
  }
3049
- }), Dt = /* @__PURE__ */ b({
3055
+ }), mo = /* @__PURE__ */ b({
3050
3056
  __name: "VLayerDeckglMVT",
3051
3057
  props: {
3052
3058
  id: {},
@@ -3084,8 +3090,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3084
3090
  beforeId: {}
3085
3091
  },
3086
3092
  emits: ["click", "hover", "tileLoad", "tileError"],
3087
- setup(g, { emit: a }) {
3088
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Te({
3093
+ setup(n, { emit: a }) {
3094
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new je({
3089
3095
  id: e.id,
3090
3096
  data: e.data,
3091
3097
  minZoom: e.minZoom,
@@ -3119,15 +3125,15 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3119
3125
  autoHighlight: e.autoHighlight,
3120
3126
  highlightColor: e.highlightColor,
3121
3127
  beforeId: e.beforeId,
3122
- onClick: (o) => r("click", o),
3123
- onHover: (o) => r("hover", o),
3124
- onTileLoad: (o) => r("tileLoad", o),
3125
- onTileError: (o, y) => r("tileError", o, y)
3126
- }), t = () => {
3127
- u(s());
3128
+ onClick: (t) => r("click", t),
3129
+ onHover: (t) => r("hover", t),
3130
+ onTileLoad: (t) => r("tileLoad", t),
3131
+ onTileError: (t, p) => r("tileError", t, p)
3132
+ }), o = () => {
3133
+ u(c());
3128
3134
  };
3129
3135
  return L(() => {
3130
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3136
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3131
3137
  }), v(
3132
3138
  () => [
3133
3139
  e.data,
@@ -3138,13 +3144,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3138
3144
  e.opacity,
3139
3145
  e.visible
3140
3146
  ],
3141
- () => n(e.id, s()),
3147
+ () => s(e.id, c()),
3142
3148
  { deep: !0 }
3143
- ), P(() => {
3149
+ ), k(() => {
3144
3150
  l(e.id);
3145
- }), (o, y) => C(o.$slots, "default");
3151
+ }), (t, p) => x(t.$slots, "default");
3146
3152
  }
3147
- }), At = /* @__PURE__ */ b({
3153
+ }), vo = /* @__PURE__ */ b({
3148
3154
  __name: "VLayerDeckglTile",
3149
3155
  props: {
3150
3156
  id: {},
@@ -3170,8 +3176,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3170
3176
  beforeId: {}
3171
3177
  },
3172
3178
  emits: ["click", "hover", "viewportLoad", "tileLoad", "tileUnload", "tileError"],
3173
- setup(g, { emit: a }) {
3174
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new ze({
3179
+ setup(n, { emit: a }) {
3180
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ge({
3175
3181
  id: e.id,
3176
3182
  data: e.data,
3177
3183
  getTileData: e.getTileData,
@@ -3193,17 +3199,17 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3193
3199
  autoHighlight: e.autoHighlight,
3194
3200
  highlightColor: e.highlightColor,
3195
3201
  beforeId: e.beforeId,
3196
- onClick: (o) => r("click", o),
3197
- onHover: (o) => r("hover", o),
3198
- onViewportLoad: (o) => r("viewportLoad", o),
3199
- onTileLoad: (o) => r("tileLoad", o),
3200
- onTileUnload: (o) => r("tileUnload", o),
3201
- onTileError: (o, y) => r("tileError", o, y)
3202
- }), t = () => {
3203
- u(s());
3202
+ onClick: (t) => r("click", t),
3203
+ onHover: (t) => r("hover", t),
3204
+ onViewportLoad: (t) => r("viewportLoad", t),
3205
+ onTileLoad: (t) => r("tileLoad", t),
3206
+ onTileUnload: (t) => r("tileUnload", t),
3207
+ onTileError: (t, p) => r("tileError", t, p)
3208
+ }), o = () => {
3209
+ u(c());
3204
3210
  };
3205
3211
  return L(() => {
3206
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3212
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3207
3213
  }), v(
3208
3214
  () => [
3209
3215
  e.data,
@@ -3213,13 +3219,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3213
3219
  e.opacity,
3214
3220
  e.visible
3215
3221
  ],
3216
- () => n(e.id, s()),
3222
+ () => s(e.id, c()),
3217
3223
  { deep: !0 }
3218
- ), P(() => {
3224
+ ), k(() => {
3219
3225
  l(e.id);
3220
- }), (o, y) => C(o.$slots, "default");
3226
+ }), (t, p) => x(t.$slots, "default");
3221
3227
  }
3222
- }), Ut = /* @__PURE__ */ b({
3228
+ }), bo = /* @__PURE__ */ b({
3223
3229
  __name: "VLayerDeckglTile3D",
3224
3230
  props: {
3225
3231
  id: {},
@@ -3236,9 +3242,9 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3236
3242
  beforeId: {}
3237
3243
  },
3238
3244
  emits: ["click", "hover", "tilesetLoad", "tileLoad", "tileUnload", "tileError"],
3239
- setup(g, { emit: a }) {
3240
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => {
3241
- const o = {
3245
+ setup(n, { emit: a }) {
3246
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => {
3247
+ const t = {
3242
3248
  id: e.id,
3243
3249
  data: e.data,
3244
3250
  pointSize: e.pointSize,
@@ -3247,12 +3253,12 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3247
3253
  pickable: e.pickable,
3248
3254
  autoHighlight: e.autoHighlight,
3249
3255
  beforeId: e.beforeId,
3250
- onClick: (y) => r("click", y),
3251
- onHover: (y) => r("hover", y),
3252
- onTilesetLoad: (y) => r("tilesetLoad", y),
3253
- onTileLoad: (y) => r("tileLoad", y),
3254
- onTileUnload: (y) => r("tileUnload", y),
3255
- onTileError: (y, f, c) => r("tileError", y, f, c),
3256
+ onClick: (p) => r("click", p),
3257
+ onHover: (p) => r("hover", p),
3258
+ onTilesetLoad: (p) => r("tilesetLoad", p),
3259
+ onTileLoad: (p) => r("tileLoad", p),
3260
+ onTileUnload: (p) => r("tileUnload", p),
3261
+ onTileError: (p, h, g) => r("tileError", p, h, g),
3256
3262
  // Only include optional props when defined to avoid deck.gl bugs
3257
3263
  ...e.loader !== void 0 && { loader: e.loader },
3258
3264
  ...e.loadOptions !== void 0 && {
@@ -3265,23 +3271,23 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3265
3271
  getPointColor: e.getPointColor
3266
3272
  }
3267
3273
  };
3268
- return new He(
3269
- o
3274
+ return new Ze(
3275
+ t
3270
3276
  );
3271
- }, t = () => {
3272
- u(s());
3277
+ }, o = () => {
3278
+ u(c());
3273
3279
  };
3274
3280
  return L(() => {
3275
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3281
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3276
3282
  }), v(
3277
3283
  () => [e.data, e.pointSize, e.opacity, e.visible],
3278
- () => n(e.id, s()),
3284
+ () => s(e.id, c()),
3279
3285
  { deep: !0 }
3280
- ), P(() => {
3286
+ ), k(() => {
3281
3287
  l(e.id);
3282
- }), (o, y) => C(o.$slots, "default");
3288
+ }), (t, p) => x(t.$slots, "default");
3283
3289
  }
3284
- }), Ft = /* @__PURE__ */ b({
3290
+ }), Lo = /* @__PURE__ */ b({
3285
3291
  __name: "VLayerDeckglTerrain",
3286
3292
  props: {
3287
3293
  id: {},
@@ -3303,8 +3309,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3303
3309
  beforeId: {}
3304
3310
  },
3305
3311
  emits: ["click", "hover"],
3306
- setup(g, { emit: a }) {
3307
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new $e({
3312
+ setup(n, { emit: a }) {
3313
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new qe({
3308
3314
  id: e.id,
3309
3315
  elevationData: e.elevationData,
3310
3316
  texture: e.texture,
@@ -3322,13 +3328,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3322
3328
  autoHighlight: e.autoHighlight,
3323
3329
  highlightColor: e.highlightColor,
3324
3330
  beforeId: e.beforeId,
3325
- onClick: (o) => r("click", o),
3326
- onHover: (o) => r("hover", o)
3327
- }), t = () => {
3328
- u(s());
3331
+ onClick: (t) => r("click", t),
3332
+ onHover: (t) => r("hover", t)
3333
+ }), o = () => {
3334
+ u(c());
3329
3335
  };
3330
3336
  return L(() => {
3331
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3337
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3332
3338
  }), v(
3333
3339
  () => [
3334
3340
  e.elevationData,
@@ -3337,13 +3343,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3337
3343
  e.opacity,
3338
3344
  e.visible
3339
3345
  ],
3340
- () => n(e.id, s()),
3346
+ () => s(e.id, c()),
3341
3347
  { deep: !0 }
3342
- ), P(() => {
3348
+ ), k(() => {
3343
3349
  l(e.id);
3344
- }), (o, y) => C(o.$slots, "default");
3350
+ }), (t, p) => x(t.$slots, "default");
3345
3351
  }
3346
- }), jt = /* @__PURE__ */ b({
3352
+ }), So = /* @__PURE__ */ b({
3347
3353
  __name: "VLayerDeckglGreatCircle",
3348
3354
  props: {
3349
3355
  id: {},
@@ -3368,8 +3374,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3368
3374
  beforeId: {}
3369
3375
  },
3370
3376
  emits: ["click", "hover"],
3371
- setup(g, { emit: a }) {
3372
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Re({
3377
+ setup(n, { emit: a }) {
3378
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Je({
3373
3379
  id: e.id,
3374
3380
  data: e.data,
3375
3381
  getSourcePosition: e.getSourcePosition,
@@ -3390,13 +3396,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3390
3396
  autoHighlight: e.autoHighlight,
3391
3397
  highlightColor: e.highlightColor,
3392
3398
  beforeId: e.beforeId,
3393
- onClick: (o) => r("click", o),
3394
- onHover: (o) => r("hover", o)
3395
- }), t = () => {
3396
- u(s());
3399
+ onClick: (t) => r("click", t),
3400
+ onHover: (t) => r("hover", t)
3401
+ }), o = () => {
3402
+ u(c());
3397
3403
  };
3398
3404
  return L(() => {
3399
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3405
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3400
3406
  }), v(
3401
3407
  () => [
3402
3408
  e.data,
@@ -3408,13 +3414,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3408
3414
  e.opacity,
3409
3415
  e.visible
3410
3416
  ],
3411
- () => n(e.id, s()),
3417
+ () => s(e.id, c()),
3412
3418
  { deep: !0 }
3413
- ), P(() => {
3419
+ ), k(() => {
3414
3420
  l(e.id);
3415
- }), (o, y) => C(o.$slots, "default");
3421
+ }), (t, p) => x(t.$slots, "default");
3416
3422
  }
3417
- }), Nt = /* @__PURE__ */ b({
3423
+ }), xo = /* @__PURE__ */ b({
3418
3424
  __name: "VLayerDeckglS2",
3419
3425
  props: {
3420
3426
  id: {},
@@ -3441,8 +3447,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3441
3447
  beforeId: {}
3442
3448
  },
3443
3449
  emits: ["click", "hover"],
3444
- setup(g, { emit: a }) {
3445
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Oe({
3450
+ setup(n, { emit: a }) {
3451
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Xe({
3446
3452
  id: e.id,
3447
3453
  data: e.data,
3448
3454
  getS2Token: e.getS2Token,
@@ -3465,13 +3471,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3465
3471
  autoHighlight: e.autoHighlight,
3466
3472
  highlightColor: e.highlightColor,
3467
3473
  beforeId: e.beforeId,
3468
- onClick: (o) => r("click", o),
3469
- onHover: (o) => r("hover", o)
3470
- }), t = () => {
3471
- u(s());
3474
+ onClick: (t) => r("click", t),
3475
+ onHover: (t) => r("hover", t)
3476
+ }), o = () => {
3477
+ u(c());
3472
3478
  };
3473
3479
  return L(() => {
3474
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3480
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3475
3481
  }), v(
3476
3482
  () => [
3477
3483
  e.data,
@@ -3483,13 +3489,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3483
3489
  e.opacity,
3484
3490
  e.visible
3485
3491
  ],
3486
- () => n(e.id, s()),
3492
+ () => s(e.id, c()),
3487
3493
  { deep: !0 }
3488
- ), P(() => {
3494
+ ), k(() => {
3489
3495
  l(e.id);
3490
- }), (o, y) => C(o.$slots, "default");
3496
+ }), (t, p) => x(t.$slots, "default");
3491
3497
  }
3492
- }), Gt = /* @__PURE__ */ b({
3498
+ }), Po = /* @__PURE__ */ b({
3493
3499
  __name: "VLayerDeckglGeohash",
3494
3500
  props: {
3495
3501
  id: {},
@@ -3516,8 +3522,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3516
3522
  beforeId: {}
3517
3523
  },
3518
3524
  emits: ["click", "hover"],
3519
- setup(g, { emit: a }) {
3520
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Ve({
3525
+ setup(n, { emit: a }) {
3526
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ke({
3521
3527
  id: e.id,
3522
3528
  data: e.data,
3523
3529
  getGeohash: e.getGeohash,
@@ -3540,13 +3546,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3540
3546
  autoHighlight: e.autoHighlight,
3541
3547
  highlightColor: e.highlightColor,
3542
3548
  beforeId: e.beforeId,
3543
- onClick: (o) => r("click", o),
3544
- onHover: (o) => r("hover", o)
3545
- }), t = () => {
3546
- u(s());
3549
+ onClick: (t) => r("click", t),
3550
+ onHover: (t) => r("hover", t)
3551
+ }), o = () => {
3552
+ u(c());
3547
3553
  };
3548
3554
  return L(() => {
3549
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3555
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3550
3556
  }), v(
3551
3557
  () => [
3552
3558
  e.data,
@@ -3558,13 +3564,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3558
3564
  e.opacity,
3559
3565
  e.visible
3560
3566
  ],
3561
- () => n(e.id, s()),
3567
+ () => s(e.id, c()),
3562
3568
  { deep: !0 }
3563
- ), P(() => {
3569
+ ), k(() => {
3564
3570
  l(e.id);
3565
- }), (o, y) => C(o.$slots, "default");
3571
+ }), (t, p) => x(t.$slots, "default");
3566
3572
  }
3567
- }), Zt = /* @__PURE__ */ b({
3573
+ }), Co = /* @__PURE__ */ b({
3568
3574
  __name: "VLayerDeckglQuadkey",
3569
3575
  props: {
3570
3576
  id: {},
@@ -3591,8 +3597,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3591
3597
  beforeId: {}
3592
3598
  },
3593
3599
  emits: ["click", "hover"],
3594
- setup(g, { emit: a }) {
3595
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new De({
3600
+ setup(n, { emit: a }) {
3601
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Qe({
3596
3602
  id: e.id,
3597
3603
  data: e.data,
3598
3604
  getQuadkey: e.getQuadkey,
@@ -3615,13 +3621,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3615
3621
  autoHighlight: e.autoHighlight,
3616
3622
  highlightColor: e.highlightColor,
3617
3623
  beforeId: e.beforeId,
3618
- onClick: (o) => r("click", o),
3619
- onHover: (o) => r("hover", o)
3620
- }), t = () => {
3621
- u(s());
3624
+ onClick: (t) => r("click", t),
3625
+ onHover: (t) => r("hover", t)
3626
+ }), o = () => {
3627
+ u(c());
3622
3628
  };
3623
3629
  return L(() => {
3624
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3630
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3625
3631
  }), v(
3626
3632
  () => [
3627
3633
  e.data,
@@ -3633,13 +3639,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3633
3639
  e.opacity,
3634
3640
  e.visible
3635
3641
  ],
3636
- () => n(e.id, s()),
3642
+ () => s(e.id, c()),
3637
3643
  { deep: !0 }
3638
- ), P(() => {
3644
+ ), k(() => {
3639
3645
  l(e.id);
3640
- }), (o, y) => C(o.$slots, "default");
3646
+ }), (t, p) => x(t.$slots, "default");
3641
3647
  }
3642
- }), qt = /* @__PURE__ */ b({
3648
+ }), ko = /* @__PURE__ */ b({
3643
3649
  __name: "VLayerDeckglWMS",
3644
3650
  props: {
3645
3651
  id: {},
@@ -3655,8 +3661,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3655
3661
  beforeId: {}
3656
3662
  },
3657
3663
  emits: ["click", "hover"],
3658
- setup(g, { emit: a }) {
3659
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => new Ae({
3664
+ setup(n, { emit: a }) {
3665
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => new Ye({
3660
3666
  id: e.id,
3661
3667
  data: e.data,
3662
3668
  serviceType: e.serviceType,
@@ -3668,22 +3674,22 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3668
3674
  autoHighlight: e.autoHighlight,
3669
3675
  highlightColor: e.highlightColor,
3670
3676
  beforeId: e.beforeId,
3671
- onClick: (o) => r("click", o),
3672
- onHover: (o) => r("hover", o)
3673
- }), t = () => {
3674
- u(s());
3677
+ onClick: (t) => r("click", t),
3678
+ onHover: (t) => r("hover", t)
3679
+ }), o = () => {
3680
+ u(c());
3675
3681
  };
3676
3682
  return L(() => {
3677
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3683
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3678
3684
  }), v(
3679
3685
  () => [e.data, e.layers, e.srs, e.opacity, e.visible],
3680
- () => n(e.id, s()),
3686
+ () => s(e.id, c()),
3681
3687
  { deep: !0 }
3682
- ), P(() => {
3688
+ ), k(() => {
3683
3689
  l(e.id);
3684
- }), (o, y) => C(o.$slots, "default");
3690
+ }), (t, p) => x(t.$slots, "default");
3685
3691
  }
3686
- }), Jt = /* @__PURE__ */ b({
3692
+ }), Io = /* @__PURE__ */ b({
3687
3693
  __name: "VLayerDeckglSimpleMesh",
3688
3694
  props: {
3689
3695
  id: {},
@@ -3709,9 +3715,9 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3709
3715
  beforeId: {}
3710
3716
  },
3711
3717
  emits: ["click", "hover"],
3712
- setup(g, { emit: a }) {
3713
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => {
3714
- const o = {
3718
+ setup(n, { emit: a }) {
3719
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => {
3720
+ const t = {
3715
3721
  id: e.id,
3716
3722
  data: e.data,
3717
3723
  mesh: e.mesh,
@@ -3726,8 +3732,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3726
3732
  visible: e.visible,
3727
3733
  pickable: e.pickable,
3728
3734
  autoHighlight: e.autoHighlight,
3729
- onClick: (y) => r("click", y),
3730
- onHover: (y) => r("hover", y),
3735
+ onClick: (p) => r("click", p),
3736
+ onHover: (p) => r("hover", p),
3731
3737
  // Only include optional props if defined
3732
3738
  ...e.getTransformMatrix !== void 0 && {
3733
3739
  getTransformMatrix: e.getTransformMatrix
@@ -3743,12 +3749,12 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3743
3749
  },
3744
3750
  ...e.beforeId !== void 0 && { beforeId: e.beforeId }
3745
3751
  };
3746
- return new Ue(o);
3747
- }, t = () => {
3748
- u(s());
3752
+ return new et(t);
3753
+ }, o = () => {
3754
+ u(c());
3749
3755
  };
3750
3756
  return L(() => {
3751
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3757
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3752
3758
  }), v(
3753
3759
  () => [
3754
3760
  e.data,
@@ -3761,13 +3767,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3761
3767
  e.opacity,
3762
3768
  e.visible
3763
3769
  ],
3764
- () => n(e.id, s()),
3770
+ () => s(e.id, c()),
3765
3771
  { deep: !0 }
3766
- ), P(() => {
3772
+ ), k(() => {
3767
3773
  l(e.id);
3768
- }), (o, y) => C(o.$slots, "default");
3774
+ }), (t, p) => x(t.$slots, "default");
3769
3775
  }
3770
- }), Xt = /* @__PURE__ */ b({
3776
+ }), _o = /* @__PURE__ */ b({
3771
3777
  __name: "VLayerDeckglScenegraph",
3772
3778
  props: {
3773
3779
  id: {},
@@ -3795,9 +3801,9 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3795
3801
  _lighting: {}
3796
3802
  },
3797
3803
  emits: ["click", "hover"],
3798
- setup(g, { emit: a }) {
3799
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = () => {
3800
- const o = {
3804
+ setup(n, { emit: a }) {
3805
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = () => {
3806
+ const t = {
3801
3807
  id: e.id,
3802
3808
  data: e.data,
3803
3809
  scenegraph: e.scenegraph,
@@ -3813,8 +3819,8 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3813
3819
  visible: e.visible,
3814
3820
  pickable: e.pickable,
3815
3821
  autoHighlight: e.autoHighlight,
3816
- onClick: (y) => r("click", y),
3817
- onHover: (y) => r("hover", y),
3822
+ onClick: (p) => r("click", p),
3823
+ onHover: (p) => r("hover", p),
3818
3824
  // Only include optional props if defined
3819
3825
  ...e.getTransformMatrix !== void 0 && {
3820
3826
  getTransformMatrix: e.getTransformMatrix
@@ -3833,12 +3839,12 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3833
3839
  },
3834
3840
  ...e._lighting !== void 0 && { _lighting: e._lighting }
3835
3841
  };
3836
- return new Fe(o);
3837
- }, t = () => {
3838
- u(s());
3842
+ return new tt(t);
3843
+ }, o = () => {
3844
+ u(c());
3839
3845
  };
3840
3846
  return L(() => {
3841
- i.value?.isStyleLoaded() ? t() : i.value?.once("style.load", t);
3847
+ i.value?.isStyleLoaded() ? o() : i.value?.once("style.load", o);
3842
3848
  }), v(
3843
3849
  () => [
3844
3850
  e.data,
@@ -3851,13 +3857,13 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3851
3857
  e.opacity,
3852
3858
  e.visible
3853
3859
  ],
3854
- () => n(e.id, s()),
3860
+ () => s(e.id, c()),
3855
3861
  { deep: !0 }
3856
- ), P(() => {
3862
+ ), k(() => {
3857
3863
  l(e.id);
3858
- }), (o, y) => C(o.$slots, "default");
3864
+ }), (t, p) => x(t.$slots, "default");
3859
3865
  }
3860
- }), Kt = /* @__PURE__ */ b({
3866
+ }), Mo = /* @__PURE__ */ b({
3861
3867
  __name: "VLayerDeckglCOG",
3862
3868
  props: {
3863
3869
  id: {},
@@ -3878,43 +3884,43 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3878
3884
  debugOpacity: { default: 0.25 }
3879
3885
  },
3880
3886
  emits: ["click", "hover", "geotiffLoad"],
3881
- setup(g, { emit: a }) {
3882
- const e = g, r = a, i = k(S), { addLayer: u, removeLayer: l, updateLayer: n } = I(i), s = H(null), t = H(null), o = H(null), y = () => {
3883
- if (!t.value || !o.value) return;
3884
- const m = t.value, p = o.value;
3887
+ setup(n, { emit: a }) {
3888
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = O(null), o = O(null), t = O(null), p = () => {
3889
+ if (!o.value || !t.value) return;
3890
+ const m = o.value, f = t.value;
3885
3891
  return async (d) => {
3886
- const h = p(d);
3892
+ const y = f(d);
3887
3893
  return {
3888
- def: h.proj4,
3889
- parsed: m.parseCrs(h.proj4),
3890
- coordinatesUnits: h.coordinatesUnits
3894
+ def: y.proj4,
3895
+ parsed: m.parseCrs(y.proj4),
3896
+ coordinatesUnits: y.coordinatesUnits
3891
3897
  };
3892
3898
  };
3893
- }, f = () => {
3894
- if (!s.value) return null;
3895
- const m = y(), p = {
3896
- id: E(e.id),
3897
- geotiff: E(e.geotiff),
3898
- opacity: E(e.opacity),
3899
- visible: E(e.visible),
3900
- pickable: E(e.pickable),
3901
- autoHighlight: E(e.autoHighlight),
3902
- debug: E(e.debug),
3903
- debugOpacity: E(e.debugOpacity)
3899
+ }, h = () => {
3900
+ if (!c.value) return null;
3901
+ const m = p(), f = {
3902
+ id: B(e.id),
3903
+ geotiff: B(e.geotiff),
3904
+ opacity: B(e.opacity),
3905
+ visible: B(e.visible),
3906
+ pickable: B(e.pickable),
3907
+ autoHighlight: B(e.autoHighlight),
3908
+ debug: B(e.debug),
3909
+ debugOpacity: B(e.debugOpacity)
3904
3910
  };
3905
- m && (p.geoKeysParser = m), p.onGeoTIFFLoad = (h, B) => {
3906
- r("geotiffLoad", h, B);
3907
- }, e.tileSize !== 256 && (p.tileSize = E(e.tileSize)), e.maxZoom !== void 0 && (p.maxZoom = E(e.maxZoom)), e.minZoom !== 0 && (p.minZoom = E(e.minZoom)), e.maxCacheSize !== void 0 && (p.maxCacheSize = E(e.maxCacheSize)), e.refinementStrategy !== "best-available" && (p.refinementStrategy = E(e.refinementStrategy)), e.maxRequests !== 6 && (p.maxRequests = E(e.maxRequests)), e.highlightColor !== void 0 && (p.highlightColor = E(e.highlightColor)), e.beforeId !== void 0 && (p.beforeId = E(e.beforeId));
3908
- const d = new s.value(p);
3909
- return R(d);
3910
- }, c = async () => {
3911
+ m && (f.geoKeysParser = m), f.onGeoTIFFLoad = (y, w) => {
3912
+ r("geotiffLoad", y, w);
3913
+ }, e.tileSize !== 256 && (f.tileSize = B(e.tileSize)), e.maxZoom !== void 0 && (f.maxZoom = B(e.maxZoom)), e.minZoom !== 0 && (f.minZoom = B(e.minZoom)), e.maxCacheSize !== void 0 && (f.maxCacheSize = B(e.maxCacheSize)), e.refinementStrategy !== "best-available" && (f.refinementStrategy = B(e.refinementStrategy)), e.maxRequests !== 6 && (f.maxRequests = B(e.maxRequests)), e.highlightColor !== void 0 && (f.highlightColor = B(e.highlightColor)), e.beforeId !== void 0 && (f.beforeId = B(e.beforeId));
3914
+ const d = new c.value(f);
3915
+ return V(d);
3916
+ }, g = async () => {
3911
3917
  try {
3912
- const [m, p] = await Promise.all([
3918
+ const [m, f] = await Promise.all([
3913
3919
  import("@developmentseed/deck.gl-geotiff"),
3914
3920
  import("geotiff-geokeys-to-proj4")
3915
3921
  ]);
3916
- s.value = R(m.COGLayer), t.value = R(m.proj), o.value = R(p.toProj4);
3917
- const d = f();
3922
+ c.value = V(m.COGLayer), o.value = V(m.proj), t.value = V(f.toProj4);
3923
+ const d = h();
3918
3924
  d && u(d);
3919
3925
  } catch (m) {
3920
3926
  console.error("[deck.gl-raster] Error loading COGLayer:", m), console.error(
@@ -3923,7 +3929,7 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3923
3929
  }
3924
3930
  };
3925
3931
  return L(() => {
3926
- i.value?.isStyleLoaded() ? c() : i.value?.once("style.load", c);
3932
+ i.value?.isStyleLoaded() ? g() : i.value?.once("style.load", g);
3927
3933
  }), v(
3928
3934
  () => [
3929
3935
  e.geotiff,
@@ -3936,76 +3942,860 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
3936
3942
  e.debugOpacity
3937
3943
  ],
3938
3944
  () => {
3939
- const m = f();
3940
- m && n(e.id, m);
3945
+ const m = h();
3946
+ m && s(e.id, m);
3941
3947
  },
3942
3948
  { deep: !0 }
3943
- ), P(() => {
3949
+ ), k(() => {
3944
3950
  l(e.id);
3945
- }), (m, p) => C(m.$slots, "default");
3951
+ }), (m, f) => x(m.$slots, "default");
3946
3952
  }
3947
- }), Qt = /* @__PURE__ */ b({
3953
+ }), it = `#version 300 es
3954
+ #define SHADER_NAME wind-particle-transform-vertex-shader
3955
+
3956
+ precision highp float;
3957
+
3958
+ in vec3 sourcePosition;
3959
+ out vec3 targetPosition;
3960
+
3961
+ uniform sampler2D windTexture;
3962
+
3963
+ const vec2 DROP_POSITION = vec2(0);
3964
+
3965
+ bool isNaN(float value) {
3966
+ return !(value <= 0.f || 0.f <= value);
3967
+ }
3968
+
3969
+ float wrapLongitude(float lng) {
3970
+ float wrappedLng = mod(lng + 180.f, 360.f) - 180.f;
3971
+ return wrappedLng;
3972
+ }
3973
+
3974
+ float wrapLongitude(float lng, float minLng) {
3975
+ float wrappedLng = wrapLongitude(lng);
3976
+ if(wrappedLng < minLng) {
3977
+ wrappedLng += 360.f;
3978
+ }
3979
+ return wrappedLng;
3980
+ }
3981
+
3982
+ float randFloat(vec2 seed) {
3983
+ return fract(sin(dot(seed.xy, vec2(12.9898f, 78.233f))) * 43758.5453f);
3984
+ }
3985
+
3986
+ vec2 randPoint(vec2 seed) {
3987
+ return vec2(randFloat(seed + 1.3f), randFloat(seed + 2.1f));
3988
+ }
3989
+
3990
+ vec2 pointToPosition(vec2 point) {
3991
+ point.y = smoothstep(0.f, 1.f, point.y);
3992
+ vec2 viewportBoundsMin = wind.viewportBounds.xy;
3993
+ vec2 viewportBoundsMax = wind.viewportBounds.zw;
3994
+ return mix(viewportBoundsMin, viewportBoundsMax, point);
3995
+ }
3996
+
3997
+ bool isPositionInBounds(vec2 position, vec4 bounds) {
3998
+ vec2 boundsMin = bounds.xy;
3999
+ vec2 boundsMax = bounds.zw;
4000
+ float lng = wrapLongitude(position.x, boundsMin.x);
4001
+ float lat = position.y;
4002
+ return (boundsMin.x <= lng && lng <= boundsMax.x &&
4003
+ boundsMin.y <= lat && lat <= boundsMax.y);
4004
+ }
4005
+
4006
+ bool isPositionInViewport(vec2 position) {
4007
+ return isPositionInBounds(position, wind.viewportBounds);
4008
+ }
4009
+
4010
+ vec2 getUV(vec2 pos) {
4011
+ return vec2(
4012
+ (pos.x - wind.bounds[0]) / (wind.bounds[2] - wind.bounds[0]),
4013
+ (pos.y - wind.bounds[3]) / (wind.bounds[1] - wind.bounds[3])
4014
+ );
4015
+ }
4016
+
4017
+ bool rasterHasValues(vec4 values) {
4018
+ if(wind.imageUnscale[0] < wind.imageUnscale[1]) {
4019
+ return values.a >= 1.f;
4020
+ } else {
4021
+ return !isNaN(values.x);
4022
+ }
4023
+ }
4024
+
4025
+ vec2 rasterGetValues(vec4 colour) {
4026
+ if(wind.imageUnscale[0] < wind.imageUnscale[1]) {
4027
+ return mix(vec2(wind.imageUnscale[0]), vec2(wind.imageUnscale[1]), colour.xy);
4028
+ } else {
4029
+ return colour.xy;
4030
+ }
4031
+ }
4032
+
4033
+ vec2 updatedPosition(vec2 position, vec2 speed) {
4034
+ float distortion = cos(radians(position.y));
4035
+ vec2 offset;
4036
+ offset = vec2(speed.x, speed.y * distortion);
4037
+ return position + offset;
4038
+ }
4039
+
4040
+ void main() {
4041
+ float particleIndex = mod(float(gl_VertexID), wind.numParticles);
4042
+ float particleAge = floor(float(gl_VertexID) / wind.numParticles);
4043
+
4044
+ if(particleAge > 0.f) {
4045
+ return;
4046
+ }
4047
+
4048
+ if(sourcePosition.xy == DROP_POSITION) {
4049
+ vec2 particleSeed = vec2(particleIndex * wind.seed / wind.numParticles);
4050
+ vec2 point = randPoint(particleSeed);
4051
+ vec2 position = pointToPosition(point);
4052
+ targetPosition.xy = position;
4053
+ targetPosition.x = wrapLongitude(targetPosition.x);
4054
+ return;
4055
+ }
4056
+
4057
+ if(wind.viewportZoomChangeFactor > 1.f && mod(particleIndex, wind.viewportZoomChangeFactor) >= 1.f) {
4058
+ targetPosition.xy = DROP_POSITION;
4059
+ return;
4060
+ }
4061
+
4062
+ if(abs(mod(particleIndex, wind.maxAge + 2.f) - mod(wind.time, wind.maxAge + 2.f)) < 1.f) {
4063
+ targetPosition.xy = DROP_POSITION;
4064
+ return;
4065
+ }
4066
+
4067
+ if(!isPositionInBounds(sourcePosition.xy, wind.bounds)) {
4068
+ targetPosition.xy = sourcePosition.xy;
4069
+ return;
4070
+ }
4071
+
4072
+ if(!isPositionInViewport(sourcePosition.xy)) {
4073
+ targetPosition.xy = DROP_POSITION;
4074
+ return;
4075
+ }
4076
+
4077
+ vec2 uv = getUV(sourcePosition.xy);
4078
+ vec4 windColour = texture(windTexture, uv);
4079
+
4080
+ if(!rasterHasValues(windColour)) {
4081
+ targetPosition.xy = DROP_POSITION;
4082
+ return;
4083
+ }
4084
+
4085
+ vec2 speed = rasterGetValues(windColour) * wind.speedFactor;
4086
+ targetPosition.xy = updatedPosition(sourcePosition.xy, speed);
4087
+ targetPosition.x = wrapLongitude(targetPosition.x);
4088
+ }
4089
+ `;
4090
+ var rt = it;
4091
+ const lt = 60, nt = [
4092
+ 255,
4093
+ 255,
4094
+ 255,
4095
+ 255
4096
+ ], F = 256, oe = `uniform windUniforms {
4097
+ float numParticles;
4098
+ float maxAge;
4099
+ float speedFactor;
4100
+ float time;
4101
+ float seed;
4102
+ vec4 viewportBounds;
4103
+ float viewportZoomChangeFactor;
4104
+ vec2 imageUnscale;
4105
+ vec4 bounds;
4106
+ } wind;
4107
+ `, st = {
4108
+ name: "wind",
4109
+ vs: oe,
4110
+ fs: oe,
4111
+ uniformTypes: {
4112
+ numParticles: "f32",
4113
+ maxAge: "f32",
4114
+ speedFactor: "f32",
4115
+ time: "f32",
4116
+ seed: "f32",
4117
+ viewportBounds: "vec4<f32>",
4118
+ viewportZoomChangeFactor: "f32",
4119
+ imageUnscale: "vec2<f32>",
4120
+ bounds: "vec4<f32>"
4121
+ }
4122
+ }, de = [
4123
+ [0, [
4124
+ 59,
4125
+ 130,
4126
+ 189,
4127
+ 255
4128
+ ]],
4129
+ [0.1, [
4130
+ 102,
4131
+ 194,
4132
+ 165,
4133
+ 255
4134
+ ]],
4135
+ [0.2, [
4136
+ 171,
4137
+ 221,
4138
+ 164,
4139
+ 255
4140
+ ]],
4141
+ [0.3, [
4142
+ 230,
4143
+ 245,
4144
+ 152,
4145
+ 255
4146
+ ]],
4147
+ [0.4, [
4148
+ 254,
4149
+ 224,
4150
+ 139,
4151
+ 255
4152
+ ]],
4153
+ [0.5, [
4154
+ 253,
4155
+ 174,
4156
+ 97,
4157
+ 255
4158
+ ]],
4159
+ [0.6, [
4160
+ 244,
4161
+ 109,
4162
+ 67,
4163
+ 255
4164
+ ]],
4165
+ [1, [
4166
+ 213,
4167
+ 62,
4168
+ 79,
4169
+ 255
4170
+ ]]
4171
+ ], dt = {
4172
+ ...q.defaultProps,
4173
+ image: {
4174
+ type: "image",
4175
+ value: null,
4176
+ async: !0
4177
+ },
4178
+ imageUnscale: {
4179
+ type: "array",
4180
+ value: [0, 0]
4181
+ },
4182
+ numParticles: {
4183
+ type: "number",
4184
+ min: 1,
4185
+ max: 1e6,
4186
+ value: 8192
4187
+ },
4188
+ maxAge: {
4189
+ type: "number",
4190
+ min: 1,
4191
+ max: 255,
4192
+ value: 50
4193
+ },
4194
+ speedFactor: {
4195
+ type: "number",
4196
+ min: 0,
4197
+ max: 1e3,
4198
+ value: 50
4199
+ },
4200
+ color: {
4201
+ type: "color",
4202
+ value: nt
4203
+ },
4204
+ colorRamp: {
4205
+ type: "array",
4206
+ value: de,
4207
+ compare: !0
4208
+ },
4209
+ speedRange: {
4210
+ type: "array",
4211
+ value: [0, 30],
4212
+ compare: !0
4213
+ },
4214
+ width: {
4215
+ type: "number",
4216
+ value: 1.5
4217
+ },
4218
+ animate: {
4219
+ type: "boolean",
4220
+ value: !0
4221
+ },
4222
+ bounds: {
4223
+ type: "array",
4224
+ value: [
4225
+ -180,
4226
+ -90,
4227
+ 180,
4228
+ 90
4229
+ ],
4230
+ compare: !0
4231
+ },
4232
+ wrapLongitude: !0
4233
+ };
4234
+ function ct(n, a) {
4235
+ return (n % a + a) % a;
4236
+ }
4237
+ function ae(n, a = void 0) {
4238
+ let e = ct(n + 180, 360) - 180;
4239
+ return typeof a == "number" && e < a && (e += 360), e;
4240
+ }
4241
+ function ut(n) {
4242
+ const a = n[2] - n[0] < 360 ? ae(n[0]) : -180, e = n[2] - n[0] < 360 ? ae(n[2], a) : 180;
4243
+ return [
4244
+ a,
4245
+ Math.max(n[1], -90),
4246
+ e,
4247
+ Math.min(n[3], 90)
4248
+ ];
4249
+ }
4250
+ function gt(n) {
4251
+ return ut(n.getBounds());
4252
+ }
4253
+ function pt(n) {
4254
+ const a = new Uint8Array(F * 4), e = [...n].sort((r, i) => r[0] - i[0]);
4255
+ for (let r = 0; r < F; r++) {
4256
+ const i = r / (F - 1);
4257
+ let u = e[0][1];
4258
+ for (let l = 0; l < e.length - 1; l++) {
4259
+ const [s, c] = e[l], [o, t] = e[l + 1];
4260
+ if (i >= s && i <= o) {
4261
+ const p = (i - s) / (o - s);
4262
+ u = [
4263
+ Math.round(c[0] + (t[0] - c[0]) * p),
4264
+ Math.round(c[1] + (t[1] - c[1]) * p),
4265
+ Math.round(c[2] + (t[2] - c[2]) * p),
4266
+ Math.round((c[3] ?? 255) + ((t[3] ?? 255) - (c[3] ?? 255)) * p)
4267
+ ];
4268
+ break;
4269
+ }
4270
+ }
4271
+ i > e[e.length - 1][0] && (u = e[e.length - 1][1]), a[r * 4] = u[0], a[r * 4 + 1] = u[1], a[r * 4 + 2] = u[2], a[r * 4 + 3] = u[3] ?? 255;
4272
+ }
4273
+ return a;
4274
+ }
4275
+ var $, ft = ($ = class extends q {
4276
+ getNumInstances() {
4277
+ return this.state?.numInstances || 0;
4278
+ }
4279
+ getShaders() {
4280
+ const n = super.getShaders(), { speedRange: a, imageUnscale: e, bounds: r } = this.props, [i, u] = a || [0, 30];
4281
+ return {
4282
+ ...n,
4283
+ inject: {
4284
+ "vs:#decl": `
4285
+ uniform sampler2D windTexture;
4286
+ uniform sampler2D colorRampTexture;
4287
+ out float vDrop;
4288
+ out float vSpeed;
4289
+ out vec4 vSpeedColor;
4290
+ const vec2 DROP_POSITION = vec2(0);
4291
+
4292
+ vec2 getWindUV(vec2 pos) {
4293
+ vec4 b = vec4(${r[0].toFixed(6)}, ${r[1].toFixed(6)}, ${r[2].toFixed(6)}, ${r[3].toFixed(6)});
4294
+ return vec2(
4295
+ (pos.x - b[0]) / (b[2] - b[0]),
4296
+ (pos.y - b[3]) / (b[1] - b[3])
4297
+ );
4298
+ }
4299
+
4300
+ vec2 getWindVelocity(vec4 windColor) {
4301
+ vec2 unscale = vec2(${e[0].toFixed(6)}, ${e[1].toFixed(6)});
4302
+ if(unscale[0] < unscale[1]) {
4303
+ return mix(vec2(unscale[0]), vec2(unscale[1]), windColor.xy);
4304
+ } else {
4305
+ return windColor.xy;
4306
+ }
4307
+ }
4308
+ `,
4309
+ "vs:#main-start": `
4310
+ vDrop = float(instanceSourcePositions.xy == DROP_POSITION || instanceTargetPositions.xy == DROP_POSITION);
4311
+
4312
+ vec2 midPos = (instanceSourcePositions.xy + instanceTargetPositions.xy) * 0.5;
4313
+ vec2 windUV = getWindUV(midPos);
4314
+ vec4 windColor = texture(windTexture, windUV);
4315
+ vec2 velocity = getWindVelocity(windColor);
4316
+ float speed = length(velocity);
4317
+
4318
+ float minSpd = ${i.toFixed(6)};
4319
+ float maxSpd = ${u.toFixed(6)};
4320
+ float speedNorm = clamp((speed - minSpd) / (maxSpd - minSpd), 0.0, 1.0);
4321
+ vSpeed = speedNorm;
4322
+ vSpeedColor = texture(colorRampTexture, vec2(speedNorm, 0.5));
4323
+ `,
4324
+ "fs:#decl": `
4325
+ in float vDrop;
4326
+ in float vSpeed;
4327
+ in vec4 vSpeedColor;
4328
+ `,
4329
+ "fs:#main-start": `
4330
+ if (vDrop > 0.5) discard;
4331
+ `,
4332
+ "fs:DECKGL_FILTER_COLOR": `
4333
+ color = vSpeedColor;
4334
+ color.a *= geometry.uv.x;
4335
+ `
4336
+ }
4337
+ };
4338
+ }
4339
+ initializeState() {
4340
+ super.initializeState(), this._setupTransformFeedback();
4341
+ const n = this.getAttributeManager();
4342
+ n.remove([
4343
+ "instanceSourcePositions",
4344
+ "instanceTargetPositions",
4345
+ "instanceColors",
4346
+ "instanceWidths"
4347
+ ]), n.addInstanced({
4348
+ instanceSourcePositions: {
4349
+ size: 3,
4350
+ type: "float32",
4351
+ noAlloc: !0
4352
+ },
4353
+ instanceTargetPositions: {
4354
+ size: 3,
4355
+ type: "float32",
4356
+ noAlloc: !0
4357
+ },
4358
+ instanceColors: {
4359
+ size: 4,
4360
+ type: "float32",
4361
+ noAlloc: !0
4362
+ }
4363
+ });
4364
+ }
4365
+ updateState(n) {
4366
+ super.updateState(n);
4367
+ const { props: a, oldProps: e } = n, { numParticles: r, maxAge: i, width: u, image: l, colorRamp: s } = a;
4368
+ if (!r || !i || !u) {
4369
+ this._deleteTransformFeedback();
4370
+ return;
4371
+ }
4372
+ (l !== e.image || r !== e.numParticles || i !== e.maxAge || u !== e.width || s !== e.colorRamp) && this._setupTransformFeedback();
4373
+ }
4374
+ finalizeState(n) {
4375
+ this._deleteTransformFeedback(), super.finalizeState(n);
4376
+ }
4377
+ draw({ uniforms: n }) {
4378
+ const { initialized: a } = this.state;
4379
+ if (!a) return;
4380
+ const { animate: e } = this.props, { sourcePositions: r, targetPositions: i, sourcePositions64Low: u, targetPositions64Low: l, colors: s, widths: c, model: o, texture: t, colorRampTexture: p } = this.state;
4381
+ o.setAttributes({
4382
+ instanceSourcePositions: r,
4383
+ instanceTargetPositions: i,
4384
+ instanceColors: s
4385
+ }), o.setConstantAttributes({
4386
+ instanceSourcePositions64Low: u,
4387
+ instanceTargetPositions64Low: l,
4388
+ instanceWidths: c
4389
+ }), o.setBindings({
4390
+ windTexture: t,
4391
+ colorRampTexture: p
4392
+ }), super.draw({ uniforms: n }), e && this.requestStep();
4393
+ }
4394
+ _setupTransformFeedback() {
4395
+ const { initialized: n } = this.state || {};
4396
+ n && this._deleteTransformFeedback();
4397
+ const { image: a, numParticles: e, maxAge: r, width: i, colorRamp: u } = this.props;
4398
+ if (typeof a == "string" || a === null) return;
4399
+ const l = e * r, s = e * (r - 1), c = this.context.device.createBuffer(new Float32Array(l * 3)), o = this.context.device.createBuffer(new Float32Array(l * 3)), t = this.context.device.createBuffer(new Float32Array(new Array(l).fill(void 0).map((y, w) => [
4400
+ 1,
4401
+ 1,
4402
+ 1,
4403
+ 1 * (1 - Math.floor(w / e) / r)
4404
+ ]).flat())), p = pt(u || de), h = this.context.device.createTexture({
4405
+ width: F,
4406
+ height: 1,
4407
+ format: "rgba8unorm",
4408
+ sampler: {
4409
+ minFilter: "linear",
4410
+ magFilter: "linear",
4411
+ addressModeU: "clamp-to-edge",
4412
+ addressModeV: "clamp-to-edge"
4413
+ },
4414
+ data: p
4415
+ }), g = new Float32Array([
4416
+ 0,
4417
+ 0,
4418
+ 0
4419
+ ]), m = new Float32Array([
4420
+ 0,
4421
+ 0,
4422
+ 0
4423
+ ]), f = new Float32Array([i]), d = new ot(this.context.device, {
4424
+ attributes: { sourcePosition: c },
4425
+ bufferLayout: [{
4426
+ name: "sourcePosition",
4427
+ format: "float32x3"
4428
+ }],
4429
+ feedbackBuffers: { targetPosition: o },
4430
+ vs: rt,
4431
+ varyings: ["targetPosition"],
4432
+ modules: [st],
4433
+ vertexCount: e
4434
+ });
4435
+ this.setState({
4436
+ initialized: !0,
4437
+ numInstances: l,
4438
+ numAgedInstances: s,
4439
+ sourcePositions: c,
4440
+ targetPositions: o,
4441
+ sourcePositions64Low: g,
4442
+ targetPositions64Low: m,
4443
+ colors: t,
4444
+ widths: f,
4445
+ transform: d,
4446
+ texture: a,
4447
+ colorRampTexture: h,
4448
+ previousViewportZoom: 0,
4449
+ previousTime: 0
4450
+ });
4451
+ }
4452
+ _runTransformFeedback() {
4453
+ const { initialized: n } = this.state || {};
4454
+ if (!n) return;
4455
+ const { viewport: a, timeline: e } = this.context, { imageUnscale: r, bounds: i, numParticles: u, speedFactor: l, maxAge: s } = this.props, { previousTime: c, previousViewportZoom: o, transform: t, sourcePositions: p, targetPositions: h, numAgedInstances: g, texture: m } = this.state, f = e.getTime();
4456
+ if (f === c) return;
4457
+ const d = gt(a), y = 2 ** ((o - a.zoom) * 4), w = l * 0.01 / Math.pow(2, a.zoom), C = {
4458
+ windTexture: m,
4459
+ viewportBounds: d || [
4460
+ 0,
4461
+ 0,
4462
+ 0,
4463
+ 0
4464
+ ],
4465
+ viewportZoomChangeFactor: y || 0,
4466
+ imageUnscale: r || [0, 0],
4467
+ bounds: i,
4468
+ numParticles: u,
4469
+ maxAge: s,
4470
+ speedFactor: w,
4471
+ time: f,
4472
+ seed: Math.random()
4473
+ };
4474
+ t.model.shaderInputs.setProps({ wind: C }), t.run({
4475
+ clearColor: !1,
4476
+ clearDepth: !1,
4477
+ clearStencil: !1,
4478
+ depthReadOnly: !0,
4479
+ stencilReadOnly: !0
4480
+ });
4481
+ const _ = this.context.device.createCommandEncoder();
4482
+ _.copyBufferToBuffer({
4483
+ sourceBuffer: p,
4484
+ sourceOffset: 0,
4485
+ destinationBuffer: h,
4486
+ destinationOffset: u * 4 * 3,
4487
+ size: g * 4 * 3
4488
+ }), _.finish(), _.destroy(), this.state.sourcePositions = h, this.state.targetPositions = p, t.model.setAttributes({ sourcePosition: h }), t.transformFeedback.setBuffers({ targetPosition: p }), this.state.previousViewportZoom = a.zoom, this.state.previousTime = f;
4489
+ }
4490
+ _resetTransformFeedback() {
4491
+ const { initialized: n } = this.state || {};
4492
+ if (!n) return;
4493
+ const { sourcePositions: a, targetPositions: e, numInstances: r } = this.state;
4494
+ a.write(new Float32Array(r * 3)), e.write(new Float32Array(r * 3));
4495
+ }
4496
+ _deleteTransformFeedback() {
4497
+ const { initialized: n } = this.state || {};
4498
+ if (!n) return;
4499
+ const { sourcePositions: a, targetPositions: e, colors: r, transform: i, colorRampTexture: u } = this.state;
4500
+ a?.destroy(), e?.destroy(), r?.destroy(), i?.destroy(), u?.destroy(), this.setState({
4501
+ initialized: !1,
4502
+ sourcePositions: void 0,
4503
+ targetPositions: void 0,
4504
+ colors: void 0,
4505
+ transform: void 0,
4506
+ colorRampTexture: void 0
4507
+ });
4508
+ }
4509
+ requestStep() {
4510
+ const { stepRequested: n } = this.state || {};
4511
+ n || (this.state.stepRequested = !0, setTimeout(() => {
4512
+ this.step(), this.state.stepRequested = !1;
4513
+ }, 1e3 / lt));
4514
+ }
4515
+ step() {
4516
+ this._runTransformFeedback(), this.setNeedsRedraw();
4517
+ }
4518
+ clear() {
4519
+ this._resetTransformFeedback(), this.setNeedsRedraw();
4520
+ }
4521
+ }, N($, "layerName", "WindParticleLayer"), N($, "defaultProps", dt), $);
4522
+ function yt(n) {
4523
+ return n * Math.PI / 180;
4524
+ }
4525
+ function ht(n, a) {
4526
+ const e = yt(a);
4527
+ return {
4528
+ u: n * Math.sin(e),
4529
+ v: n * Math.cos(e)
4530
+ };
4531
+ }
4532
+ function mt(n, a, e, r) {
4533
+ let i = 0, u = 0, l = 0;
4534
+ for (const s of e) {
4535
+ const c = n - s.x, o = a - s.y, t = c * c + o * o;
4536
+ if (t < 1e-4) return {
4537
+ u: s.u,
4538
+ v: s.v
4539
+ };
4540
+ const p = 1 / Math.pow(Math.sqrt(t), r);
4541
+ i += s.u * p, u += s.v * p, l += p;
4542
+ }
4543
+ return l === 0 ? {
4544
+ u: 0,
4545
+ v: 0
4546
+ } : {
4547
+ u: i / l,
4548
+ v: u / l
4549
+ };
4550
+ }
4551
+ function vt(n, a = {}) {
4552
+ const { width: e = 360, height: r = 180, bounds: i = [
4553
+ -180,
4554
+ -90,
4555
+ 180,
4556
+ 90
4557
+ ], power: u = 2 } = a, [l, s, c, o] = i, t = n.map((E) => {
4558
+ const { u: T, v: z } = ht(E.speed, E.direction);
4559
+ return {
4560
+ x: (E.lon - l) / (c - l) * e,
4561
+ y: (o - E.lat) / (o - s) * r,
4562
+ u: T,
4563
+ v: z
4564
+ };
4565
+ });
4566
+ let p = 1 / 0, h = -1 / 0, g = 1 / 0, m = -1 / 0;
4567
+ const f = [];
4568
+ for (let E = 0; E < r; E++) for (let T = 0; T < e; T++) {
4569
+ const { u: z, v: H } = mt(T + 0.5, E + 0.5, t, u);
4570
+ f.push({
4571
+ u: z,
4572
+ v: H
4573
+ }), p = Math.min(p, z), h = Math.max(h, z), g = Math.min(g, H), m = Math.max(m, H);
4574
+ }
4575
+ const d = h - p || 1, y = m - g || 1, w = document.createElement("canvas");
4576
+ w.width = e, w.height = r;
4577
+ const C = w.getContext("2d"), _ = C.createImageData(e, r);
4578
+ for (let E = 0; E < f.length; E++) {
4579
+ const { u: T, v: z } = f[E], H = (T - p) / d, ce = (z - g) / y, A = E * 4;
4580
+ _.data[A] = Math.round(H * 255), _.data[A + 1] = Math.round(ce * 255), _.data[A + 2] = 0, _.data[A + 3] = 255;
4581
+ }
4582
+ return C.putImageData(_, 0, 0), {
4583
+ canvas: w,
4584
+ imageData: _,
4585
+ uMin: p,
4586
+ uMax: h,
4587
+ vMin: g,
4588
+ vMax: m,
4589
+ bounds: i
4590
+ };
4591
+ }
4592
+ function wo(n) {
4593
+ return n.filter((a) => a.wind && typeof a.wind.speed == "number").map((a) => ({
4594
+ lat: a.coord.lat,
4595
+ lon: a.coord.lon,
4596
+ speed: a.wind.speed ?? 0,
4597
+ direction: a.wind.deg ?? 0
4598
+ }));
4599
+ }
4600
+ const Eo = /* @__PURE__ */ b({
4601
+ __name: "VLayerDeckglWindParticle",
4602
+ props: {
4603
+ id: {},
4604
+ imageUrl: {},
4605
+ windData: {},
4606
+ bounds: { default: () => [-180, -90, 180, 90] },
4607
+ uMin: { default: -50 },
4608
+ uMax: { default: 50 },
4609
+ vMin: { default: -50 },
4610
+ vMax: { default: 50 },
4611
+ numParticles: { default: 8192 },
4612
+ maxAge: { default: 30 },
4613
+ speedFactor: { default: 50 },
4614
+ color: { default: () => [255, 255, 255, 200] },
4615
+ colorRamp: { default: () => [
4616
+ [0, [59, 130, 189, 255]],
4617
+ [0.1, [102, 194, 165, 255]],
4618
+ [0.2, [171, 221, 164, 255]],
4619
+ [0.3, [230, 245, 152, 255]],
4620
+ [0.4, [254, 224, 139, 255]],
4621
+ [0.5, [253, 174, 97, 255]],
4622
+ [0.6, [244, 109, 67, 255]],
4623
+ [1, [213, 62, 79, 255]]
4624
+ ] },
4625
+ speedRange: { default: () => [0, 30] },
4626
+ width: { default: 1.5 },
4627
+ animate: { type: Boolean, default: !0 },
4628
+ opacity: { default: 1 },
4629
+ visible: { type: Boolean, default: !0 },
4630
+ pickable: { type: Boolean, default: !1 },
4631
+ beforeId: {}
4632
+ },
4633
+ emits: ["click", "hover", "loaded", "error"],
4634
+ setup(n, { emit: a }) {
4635
+ const e = n, r = a, i = P(S), { addLayer: u, removeLayer: l, updateLayer: s } = I(i), c = M(!1), o = M(null), t = M({
4636
+ uMin: e.uMin,
4637
+ uMax: e.uMax,
4638
+ vMin: e.vMin,
4639
+ vMax: e.vMax
4640
+ }), p = R(() => {
4641
+ const d = t.value.uMax - t.value.uMin, y = t.value.vMax - t.value.vMin;
4642
+ return [Math.min(d, y) * -1, Math.max(d, y)];
4643
+ }), h = () => o.value ? new ft({
4644
+ id: e.id,
4645
+ image: o.value,
4646
+ bounds: e.bounds,
4647
+ imageUnscale: p.value,
4648
+ numParticles: e.numParticles,
4649
+ maxAge: e.maxAge,
4650
+ speedFactor: e.speedFactor,
4651
+ color: e.color,
4652
+ colorRamp: e.colorRamp,
4653
+ speedRange: e.speedRange,
4654
+ width: e.width,
4655
+ animate: e.animate,
4656
+ wrapLongitude: !0,
4657
+ opacity: e.opacity,
4658
+ visible: e.visible,
4659
+ pickable: e.pickable,
4660
+ beforeId: e.beforeId,
4661
+ onClick: (d) => r("click", d),
4662
+ onHover: (d) => r("hover", d)
4663
+ }) : null, g = (d) => {
4664
+ try {
4665
+ const y = vt(d, {
4666
+ width: 360,
4667
+ height: 180,
4668
+ bounds: e.bounds
4669
+ });
4670
+ return t.value = {
4671
+ uMin: y.uMin,
4672
+ uMax: y.uMax,
4673
+ vMin: y.vMin,
4674
+ vMax: y.vMax
4675
+ }, o.value = y.canvas.toDataURL("image/png"), !0;
4676
+ } catch (y) {
4677
+ return r("error", y instanceof Error ? y : new Error(String(y))), !1;
4678
+ }
4679
+ }, m = () => {
4680
+ if (e.windData && e.windData.length > 0) {
4681
+ if (!g(e.windData)) return;
4682
+ } else if (e.imageUrl)
4683
+ o.value = e.imageUrl, t.value = {
4684
+ uMin: e.uMin,
4685
+ uMax: e.uMax,
4686
+ vMin: e.vMin,
4687
+ vMax: e.vMax
4688
+ };
4689
+ else
4690
+ return;
4691
+ const d = h();
4692
+ d && (u(d), c.value = !0, r("loaded"));
4693
+ }, f = () => {
4694
+ if (!c.value) return;
4695
+ const d = h();
4696
+ d && s(e.id, d);
4697
+ };
4698
+ return L(() => {
4699
+ i.value?.isStyleLoaded() ? m() : i.value?.once("style.load", m);
4700
+ }), v(
4701
+ () => e.windData,
4702
+ (d) => {
4703
+ d && d.length > 0 && g(d) && f();
4704
+ },
4705
+ { deep: !0 }
4706
+ ), v(
4707
+ () => e.imageUrl,
4708
+ (d) => {
4709
+ d && !e.windData && (o.value = d, t.value = {
4710
+ uMin: e.uMin,
4711
+ uMax: e.uMax,
4712
+ vMin: e.vMin,
4713
+ vMax: e.vMax
4714
+ }, f());
4715
+ }
4716
+ ), v(
4717
+ () => [
4718
+ e.numParticles,
4719
+ e.maxAge,
4720
+ e.speedFactor,
4721
+ e.color,
4722
+ e.colorRamp,
4723
+ e.speedRange,
4724
+ e.width,
4725
+ e.animate,
4726
+ e.opacity,
4727
+ e.visible
4728
+ ],
4729
+ () => {
4730
+ f();
4731
+ },
4732
+ { deep: !0 }
4733
+ ), k(() => {
4734
+ l(e.id);
4735
+ }), (d, y) => x(d.$slots, "default");
4736
+ }
4737
+ }), Bo = /* @__PURE__ */ b({
3948
4738
  __name: "VLayerDeckgl",
3949
4739
  props: {
3950
4740
  layer: {}
3951
4741
  },
3952
4742
  emits: ["click", "hover"],
3953
- setup(g, { emit: a }) {
3954
- const e = g, r = k(S), { addLayer: i, removeLayer: u, updateLayer: l } = I(r), n = (t) => t.id, s = () => {
4743
+ setup(n, { emit: a }) {
4744
+ const e = n, r = P(S), { addLayer: i, removeLayer: u, updateLayer: l } = I(r), s = (o) => o.id, c = () => {
3955
4745
  i(e.layer);
3956
4746
  };
3957
4747
  return L(() => {
3958
- r.value?.isStyleLoaded() ? s() : r.value?.once("style.load", s);
4748
+ r.value?.isStyleLoaded() ? c() : r.value?.once("style.load", c);
3959
4749
  }), v(
3960
4750
  () => e.layer,
3961
- (t, o) => {
3962
- const y = o ? n(o) : null, f = n(t);
3963
- y && y !== f ? (u(y), i(t)) : l(f, t);
4751
+ (o, t) => {
4752
+ const p = t ? s(t) : null, h = s(o);
4753
+ p && p !== h ? (u(p), i(o)) : l(h, o);
3964
4754
  },
3965
4755
  { deep: !0 }
3966
- ), P(() => {
3967
- u(n(e.layer));
3968
- }), (t, o) => C(t.$slots, "default");
4756
+ ), k(() => {
4757
+ u(s(e.layer));
4758
+ }), (o, t) => x(o.$slots, "default");
3969
4759
  }
3970
- }), Ne = ["id"], Ge = /* @__PURE__ */ b({
4760
+ }), bt = ["id"], Lt = /* @__PURE__ */ b({
3971
4761
  __name: "VMap",
3972
4762
  props: {
3973
4763
  options: { default: () => ({ container: "map" }) },
3974
4764
  supportPmtiles: { type: Boolean, default: !1 }
3975
4765
  },
3976
- emits: ["loaded", ...N],
3977
- setup(g, { emit: a }) {
3978
- const e = g, r = a;
4766
+ emits: ["loaded", ...Q],
4767
+ setup(n, { emit: a }) {
4768
+ const e = n, r = a;
3979
4769
  if (e.supportPmtiles) {
3980
- const s = new ue({ metadata: !0 });
3981
- te.addProtocol("pmtiles", s.tile), O(Y, s);
4770
+ const c = new Ce({ metadata: !0 });
4771
+ fe.addProtocol("pmtiles", c.tile), U(se, c);
3982
4772
  }
3983
- const i = H(null), u = M(!1), l = M(N);
3984
- O(S, i), L(() => {
3985
- i.value = new ne(e.options), u.value = !0, n();
4773
+ const i = O(null), u = M(!1), l = M(Q);
4774
+ U(S, i), L(() => {
4775
+ i.value = new Le(e.options), u.value = !0, s();
3986
4776
  });
3987
- const n = () => {
3988
- i.value && l.value.forEach((s) => {
3989
- i.value?.on(s, (t) => {
3990
- s === "load" ? r("loaded", i.value) : r(s, t);
4777
+ const s = () => {
4778
+ i.value && l.value.forEach((c) => {
4779
+ i.value?.on(c, (o) => {
4780
+ c === "load" ? r("loaded", i.value) : r(c, o);
3991
4781
  });
3992
4782
  });
3993
4783
  };
3994
- return (s, t) => ($(), A("div", {
3995
- id: `${g.options?.container}`,
4784
+ return (c, o) => (D(), Z("div", {
4785
+ id: `${n.options?.container}`,
3996
4786
  class: "v-map-container"
3997
4787
  }, [
3998
- u.value ? C(s.$slots, "default", { key: 0 }, () => [
3999
- C(s.$slots, "default", {}, void 0, !0)
4000
- ], !0) : Q("", !0)
4001
- ], 8, Ne));
4788
+ u.value ? x(c.$slots, "default", { key: 0 }, () => [
4789
+ x(c.$slots, "default", {}, void 0, !0)
4790
+ ], !0) : ne("", !0)
4791
+ ], 8, bt));
4002
4792
  }
4003
- }), Ze = (g, a) => {
4004
- const e = g.__vccOpts || g;
4793
+ }), St = (n, a) => {
4794
+ const e = n.__vccOpts || n;
4005
4795
  for (const [r, i] of a)
4006
4796
  e[r] = i;
4007
4797
  return e;
4008
- }, Yt = /* @__PURE__ */ Ze(Ge, [["__scopeId", "data-v-e49c0b85"]]), qe = ["id"], Je = /* @__PURE__ */ b({
4798
+ }, To = /* @__PURE__ */ St(Lt, [["__scopeId", "data-v-e49c0b85"]]), xt = ["id"], Pt = /* @__PURE__ */ b({
4009
4799
  __name: "VPopup",
4010
4800
  props: {
4011
4801
  options: { default: () => ({}) },
@@ -4013,35 +4803,35 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
4013
4803
  marker: { default: () => ({}) }
4014
4804
  },
4015
4805
  emits: ["added", "removed", "open", "close"],
4016
- setup(g, { emit: a }) {
4017
- const e = g, r = a, i = k(S), u = new se(e.options), l = M(!0), n = M(null), s = () => i.value || null, t = (d) => {
4806
+ setup(n, { emit: a }) {
4807
+ const e = n, r = a, i = P(S), u = new Se(e.options), l = M(!0), s = M(null), c = () => i.value || null, o = (d) => {
4018
4808
  d && d.on("style.load", () => {
4019
- const h = () => {
4020
- d.isStyleLoaded() ? l.value = !0 : (l.value = !1, setTimeout(h, 200));
4809
+ const y = () => {
4810
+ d.isStyleLoaded() ? l.value = !0 : (l.value = !1, setTimeout(y, 200));
4021
4811
  };
4022
- h();
4812
+ y();
4023
4813
  });
4024
- }, o = () => {
4814
+ }, t = () => {
4025
4815
  try {
4026
- n.value && u.setDOMContent(n.value);
4816
+ s.value && u.setDOMContent(s.value);
4027
4817
  } catch (d) {
4028
4818
  console.error("Error setting popup content:", d);
4029
4819
  }
4030
- }, y = () => {
4820
+ }, p = () => {
4031
4821
  try {
4032
4822
  u.setLngLat(e.coordinates);
4033
4823
  } catch (d) {
4034
4824
  console.error("Error setting popup coordinates:", d);
4035
4825
  }
4036
- }, f = () => {
4037
- const d = s();
4826
+ }, h = () => {
4827
+ const d = c();
4038
4828
  if (d)
4039
4829
  try {
4040
4830
  "setPopup" in e.marker ? e.marker.setPopup(u) : u.addTo(d), r("added", { popup: u });
4041
- } catch (h) {
4042
- console.error("Error adding popup to marker:", h);
4831
+ } catch (y) {
4832
+ console.error("Error adding popup to marker:", y);
4043
4833
  }
4044
- }, c = () => {
4834
+ }, g = () => {
4045
4835
  try {
4046
4836
  u.remove(), r("removed");
4047
4837
  } catch (d) {
@@ -4049,7 +4839,7 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
4049
4839
  }
4050
4840
  }, m = () => {
4051
4841
  try {
4052
- q.forEach((d) => {
4842
+ te.forEach((d) => {
4053
4843
  u.on(d, () => {
4054
4844
  r(d);
4055
4845
  });
@@ -4057,9 +4847,9 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
4057
4847
  } catch (d) {
4058
4848
  console.error("Error setting up popup events:", d);
4059
4849
  }
4060
- }, p = () => {
4850
+ }, f = () => {
4061
4851
  try {
4062
- q.forEach((d) => {
4852
+ te.forEach((d) => {
4063
4853
  u.off(d, () => {
4064
4854
  r(d);
4065
4855
  });
@@ -4071,35 +4861,35 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
4071
4861
  return v(
4072
4862
  i,
4073
4863
  (d) => {
4074
- d && t(d);
4864
+ d && o(d);
4075
4865
  },
4076
4866
  { immediate: !0 }
4077
4867
  ), v(
4078
4868
  () => e.coordinates,
4079
4869
  () => {
4080
- y();
4870
+ p();
4081
4871
  },
4082
4872
  { deep: !0 }
4083
4873
  ), L(() => {
4084
4874
  if (l.value)
4085
4875
  try {
4086
- o(), y(), f(), m();
4876
+ t(), p(), h(), m();
4087
4877
  } catch (d) {
4088
4878
  console.error("Error initializing popup:", d);
4089
4879
  }
4090
4880
  else
4091
- c(), p();
4092
- }), P(() => {
4093
- c(), p();
4094
- }), (d, h) => ($(), A("section", {
4881
+ g(), f();
4882
+ }), k(() => {
4883
+ g(), f();
4884
+ }), (d, y) => (D(), Z("section", {
4095
4885
  id: `popup-${Date.now()}`,
4096
4886
  ref_key: "content",
4097
- ref: n
4887
+ ref: s
4098
4888
  }, [
4099
- C(d.$slots, "default")
4100
- ], 8, qe));
4889
+ x(d.$slots, "default")
4890
+ ], 8, xt));
4101
4891
  }
4102
- }), Xe = ["id"], eo = /* @__PURE__ */ b({
4892
+ }), Ct = ["id"], Wo = /* @__PURE__ */ b({
4103
4893
  __name: "VMarker",
4104
4894
  props: {
4105
4895
  coordinates: { default: null },
@@ -4111,168 +4901,172 @@ const S = /* @__PURE__ */ Symbol("Map"), Y = /* @__PURE__ */ Symbol("Protocol"),
4111
4901
  "added",
4112
4902
  "update:coordinates",
4113
4903
  "removed",
4114
- ...G,
4115
- ...Z
4904
+ ...Y,
4905
+ ...ee
4116
4906
  ],
4117
- setup(g, { emit: a }) {
4118
- const e = X(), r = g, i = a, u = k(S), l = M(null), n = M(!0), s = M(!1), t = M(null), o = () => u.value || null, y = (x) => {
4119
- x && x.on("style.load", () => {
4907
+ setup(n, { emit: a }) {
4908
+ const e = re(), r = n, i = a, u = P(S), l = M(null), s = M(!0), c = M(!1), o = M(null), t = () => u.value || null, p = (C) => {
4909
+ C && C.on("style.load", () => {
4120
4910
  const _ = () => {
4121
- x.isStyleLoaded() ? n.value = !0 : (n.value = !1, setTimeout(_, 200));
4911
+ C.isStyleLoaded() ? s.value = !0 : (s.value = !1, setTimeout(_, 200));
4122
4912
  };
4123
4913
  _();
4124
4914
  });
4125
- }, f = (x) => {
4126
- x instanceof HTMLElement && (t.value = x);
4127
- }, c = (x) => {
4915
+ }, h = (C) => {
4916
+ C instanceof HTMLElement && (o.value = C);
4917
+ }, g = (C) => {
4128
4918
  if (r.coordinates !== null)
4129
4919
  try {
4130
- x.setLngLat(r.coordinates);
4920
+ C.setLngLat(r.coordinates);
4131
4921
  } catch (_) {
4132
4922
  console.error("Error setting marker coordinates:", _);
4133
4923
  }
4134
- }, m = (x) => {
4924
+ }, m = (C) => {
4135
4925
  try {
4136
- x.getElement().style.cursor = r.cursor || "default";
4926
+ C.getElement().style.cursor = r.cursor || "default";
4137
4927
  } catch (_) {
4138
4928
  console.error("Error setting cursor:", _);
4139
4929
  }
4140
- }, p = (x) => {
4141
- const _ = o();
4930
+ }, f = (C) => {
4931
+ const _ = t();
4142
4932
  if (_)
4143
4933
  try {
4144
- x.addTo(_), i("added", { marker: x });
4145
- } catch (W) {
4146
- console.error("Error adding marker to map:", W);
4934
+ C.addTo(_), i("added", { marker: C });
4935
+ } catch (E) {
4936
+ console.error("Error adding marker to map:", E);
4147
4937
  }
4148
- }, d = (x) => {
4938
+ }, d = (C) => {
4149
4939
  try {
4150
- x.remove(), i("removed");
4940
+ C.remove(), i("removed");
4151
4941
  } catch (_) {
4152
4942
  console.error("Error removing marker from map:", _);
4153
4943
  }
4154
- }, h = (x) => {
4944
+ }, y = (C) => {
4155
4945
  try {
4156
4946
  let _;
4157
- G.forEach((W) => {
4158
- x.on(W, (T) => {
4159
- W === "dragend" && (Array.isArray(r.coordinates) ? _ = [
4947
+ Y.forEach((E) => {
4948
+ C.on(E, (T) => {
4949
+ E === "dragend" && (Array.isArray(r.coordinates) ? _ = [
4160
4950
  T.target.getLngLat().lng,
4161
4951
  T.target.getLngLat().lat
4162
- ] : _ = T.target.getLngLat(), i("update:coordinates", _)), i(W, T);
4952
+ ] : _ = T.target.getLngLat(), i("update:coordinates", _)), i(E, T);
4163
4953
  });
4164
- }), Z.forEach((W) => {
4165
- x.getElement().addEventListener(W, (T) => {
4166
- i(W, T);
4954
+ }), ee.forEach((E) => {
4955
+ C.getElement().addEventListener(E, (T) => {
4956
+ i(E, T);
4167
4957
  });
4168
4958
  });
4169
4959
  } catch (_) {
4170
4960
  console.error("Error setting up marker events:", _);
4171
4961
  }
4172
4962
  };
4173
- v(l, (x) => {
4174
- s.value = x !== null && "_map" in x;
4963
+ v(l, (C) => {
4964
+ c.value = C !== null && "_map" in C;
4175
4965
  }), v(
4176
4966
  u,
4177
- (x) => {
4178
- x && y(x);
4967
+ (C) => {
4968
+ C && p(C);
4179
4969
  },
4180
4970
  { immediate: !0 }
4181
4971
  );
4182
- const B = (x) => {
4183
- if (!(!n.value || l.value))
4972
+ const w = (C) => {
4973
+ if (!(!s.value || l.value))
4184
4974
  try {
4185
4975
  const _ = {
4186
4976
  ...r.options,
4187
- element: x || void 0
4977
+ element: C || void 0
4188
4978
  };
4189
- l.value = new de(_), c(l.value), p(l.value), m(l.value), h(l.value);
4979
+ l.value = new xe(_), g(l.value), f(l.value), m(l.value), y(l.value);
4190
4980
  } catch (_) {
4191
4981
  console.error("Error initializing marker:", _);
4192
4982
  }
4193
4983
  };
4194
- return v(t, (x) => {
4195
- x && !l.value && B(x);
4984
+ return v(o, (C) => {
4985
+ C && !l.value && w(C);
4196
4986
  }), L(() => {
4197
- e.markers || B();
4198
- }), P(() => {
4987
+ e.markers || w();
4988
+ }), k(() => {
4199
4989
  l.value && d(l.value);
4200
- }), (x, _) => ($(), A("section", {
4990
+ }), (C, _) => (D(), Z("section", {
4201
4991
  id: `marker-${Date.now()}`,
4202
4992
  class: "absolute"
4203
4993
  }, [
4204
- C(x.$slots, "markers", { setRef: f }),
4205
- s.value && x.$slots.default ? ($(), K(Je, {
4994
+ x(C.$slots, "markers", { setRef: h }),
4995
+ c.value && C.$slots.default ? (D(), le(Pt, {
4206
4996
  key: 0,
4207
4997
  marker: l.value,
4208
- options: g.popupOptions,
4209
- coordinates: g.coordinates
4998
+ options: n.popupOptions,
4999
+ coordinates: n.coordinates
4210
5000
  }, {
4211
- default: ee(() => [
4212
- C(x.$slots, "default")
5001
+ default: pe(() => [
5002
+ x(C.$slots, "default")
4213
5003
  ]),
4214
5004
  _: 3
4215
- }, 8, ["marker", "options", "coordinates"])) : Q("", !0)
4216
- ], 8, Xe));
5005
+ }, 8, ["marker", "options", "coordinates"])) : ne("", !0)
5006
+ ], 8, Ct));
4217
5007
  }
4218
5008
  });
4219
5009
  export {
4220
- D as DeckLayersKey,
4221
- V as DeckOverlayKey,
4222
- rt as VControlAttribution,
4223
- lt as VControlFullscreen,
4224
- nt as VControlGeolocate,
4225
- ct as VControlLidar,
4226
- st as VControlNavigation,
4227
- dt as VControlScale,
4228
- Qt as VLayerDeckgl,
4229
- Lt as VLayerDeckglArc,
4230
- Et as VLayerDeckglBitmap,
4231
- Kt as VLayerDeckglCOG,
4232
- Mt as VLayerDeckglColumn,
4233
- Ht as VLayerDeckglContour,
4234
- Gt as VLayerDeckglGeohash,
4235
- St as VLayerDeckglGeojson,
4236
- jt as VLayerDeckglGreatCircle,
4237
- zt as VLayerDeckglGrid,
4238
- Bt as VLayerDeckglGridCell,
4239
- Vt as VLayerDeckglH3Cluster,
4240
- Ot as VLayerDeckglH3Hexagon,
4241
- wt as VLayerDeckglHeatmap,
4242
- Tt as VLayerDeckglHexagon,
4243
- It as VLayerDeckglIcon,
4244
- kt as VLayerDeckglLine,
4245
- Dt as VLayerDeckglMVT,
4246
- Ct as VLayerDeckglPath,
4247
- Wt as VLayerDeckglPointCloud,
4248
- Pt as VLayerDeckglPolygon,
4249
- Zt as VLayerDeckglQuadkey,
4250
- Nt as VLayerDeckglS2,
4251
- bt as VLayerDeckglScatterplot,
4252
- Xt as VLayerDeckglScenegraph,
4253
- $t as VLayerDeckglScreenGrid,
4254
- Jt as VLayerDeckglSimpleMesh,
4255
- xt as VLayerDeckglSolidPolygon,
4256
- Ft as VLayerDeckglTerrain,
4257
- _t as VLayerDeckglText,
4258
- At as VLayerDeckglTile,
4259
- Ut as VLayerDeckglTile3D,
4260
- Rt as VLayerDeckglTrips,
4261
- qt as VLayerDeckglWMS,
4262
- ut as VLayerMaplibreCanvas,
4263
- mt as VLayerMaplibreCluster,
4264
- gt as VLayerMaplibreGeojson,
4265
- yt as VLayerMaplibreImage,
4266
- ht as VLayerMaplibrePmtile,
4267
- je as VLayerMaplibreRaster,
4268
- vt as VLayerMaplibreRoute,
4269
- pt as VLayerMaplibreVector,
4270
- ft as VLayerMaplibreVideo,
4271
- Yt as VMap,
4272
- eo as VMarker,
4273
- Je as VPopup,
4274
- Yt as default,
4275
- it as useDeckLayers,
5010
+ G as DeckLayersKey,
5011
+ j as DeckOverlayKey,
5012
+ Rt as VControlAttribution,
5013
+ Ht as VControlFullscreen,
5014
+ Ot as VControlGeolocate,
5015
+ Vt as VControlLidar,
5016
+ Dt as VControlNavigation,
5017
+ At as VControlScale,
5018
+ Bo as VLayerDeckgl,
5019
+ Xt as VLayerDeckglArc,
5020
+ ro as VLayerDeckglBitmap,
5021
+ Mo as VLayerDeckglCOG,
5022
+ io as VLayerDeckglColumn,
5023
+ go as VLayerDeckglContour,
5024
+ Po as VLayerDeckglGeohash,
5025
+ Kt as VLayerDeckglGeojson,
5026
+ So as VLayerDeckglGreatCircle,
5027
+ uo as VLayerDeckglGrid,
5028
+ lo as VLayerDeckglGridCell,
5029
+ ho as VLayerDeckglH3Cluster,
5030
+ yo as VLayerDeckglH3Hexagon,
5031
+ so as VLayerDeckglHeatmap,
5032
+ co as VLayerDeckglHexagon,
5033
+ oo as VLayerDeckglIcon,
5034
+ Yt as VLayerDeckglLine,
5035
+ mo as VLayerDeckglMVT,
5036
+ Qt as VLayerDeckglPath,
5037
+ no as VLayerDeckglPointCloud,
5038
+ eo as VLayerDeckglPolygon,
5039
+ Co as VLayerDeckglQuadkey,
5040
+ xo as VLayerDeckglS2,
5041
+ Jt as VLayerDeckglScatterplot,
5042
+ _o as VLayerDeckglScenegraph,
5043
+ po as VLayerDeckglScreenGrid,
5044
+ Io as VLayerDeckglSimpleMesh,
5045
+ to as VLayerDeckglSolidPolygon,
5046
+ Lo as VLayerDeckglTerrain,
5047
+ ao as VLayerDeckglText,
5048
+ vo as VLayerDeckglTile,
5049
+ bo as VLayerDeckglTile3D,
5050
+ fo as VLayerDeckglTrips,
5051
+ ko as VLayerDeckglWMS,
5052
+ Eo as VLayerDeckglWindParticle,
5053
+ $t as VLayerMaplibreCanvas,
5054
+ Zt as VLayerMaplibreCluster,
5055
+ Ft as VLayerMaplibreGeojson,
5056
+ Ut as VLayerMaplibreImage,
5057
+ Gt as VLayerMaplibrePmtile,
5058
+ at as VLayerMaplibreRaster,
5059
+ qt as VLayerMaplibreRoute,
5060
+ Nt as VLayerMaplibreVector,
5061
+ jt as VLayerMaplibreVideo,
5062
+ To as VMap,
5063
+ Wo as VMarker,
5064
+ Pt as VPopup,
5065
+ ft as WindParticleLayer,
5066
+ wo as createWindDataFromOpenWeatherMap,
5067
+ To as default,
5068
+ vt as generateWindTexture,
5069
+ zt as useDeckLayers,
4276
5070
  I as useDeckOverlay
4277
5071
  };
4278
5072
  //# sourceMappingURL=index.js.map