@datagouv/components-next 1.0.2-dev.3 → 1.0.2-dev.30
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/Datafair.client-CSUWxY1U.js +30 -0
- package/dist/{Event--kp8kMdJ.js → Event-B0pbfyAo.js} +1 -1
- package/dist/JsonPreview.client-DWP5adeD.js +72 -0
- package/dist/{Map-BjUnLyj8.js → Map-ByzoJvTf.js} +2 -2
- package/dist/MapContainer.client-B0oJPrx5.js +102 -0
- package/dist/{OSM-s40W6sQ2.js → OSM-FSBCBM2l.js} +1 -1
- package/dist/{PdfPreview.client-C-w6-w44.js → PdfPreview.client-B2E_IWUj.js} +533 -548
- package/dist/{Pmtiles.client-BR7_ldHY.js → Pmtiles.client-STSFvULL.js} +575 -580
- package/dist/Swagger.client-mrRTl6ll.js +4 -0
- package/dist/{Tile-DbNFNPfU.js → Tile-nykTnQlb.js} +4 -4
- package/dist/{TileImage-BsXBxMtq.js → TileImage-RLU-wMoy.js} +1 -1
- package/dist/{View-BR92hTWP.js → View-SHblmfOT.js} +1 -1
- package/dist/XmlPreview.client-C0zaJXWA.js +64 -0
- package/dist/components-next.css +4 -4
- package/dist/components-next.js +13 -13
- package/dist/components.css +1 -1
- package/dist/{index-SrYZwgCT.js → index-kxzw3Ssm.js} +1164 -1164
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-DfyFSZpM.js} +185 -183
- package/dist/{main-B2kXxWRG.js → main-BMXOPzsN.js} +34653 -33895
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-Db24Px13.js → tilecoord-BgTy1qJO.js} +5 -5
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-BgCuOAH6.js} +10 -10
- package/dist/{vue3-xml-viewer.common-BRxsqI9j.js → vue3-xml-viewer.common-CwN-5lms.js} +16 -16
- package/package.json +9 -5
- package/src/components/Form/SearchableSelect.vue +2 -1
- package/src/components/ReadMore.vue +1 -1
- package/src/components/ResourceAccordion/Datafair.client.vue +4 -10
- package/src/components/ResourceAccordion/JsonPreview.client.vue +13 -30
- package/src/components/ResourceAccordion/MapContainer.client.vue +7 -11
- package/src/components/ResourceAccordion/PdfPreview.client.vue +13 -29
- package/src/components/ResourceAccordion/Pmtiles.client.vue +5 -10
- package/src/components/ResourceAccordion/Preview.vue +5 -10
- package/src/components/ResourceAccordion/PreviewLoader.vue +1 -2
- package/src/components/ResourceAccordion/PreviewUnavailable.vue +22 -0
- package/src/components/ResourceAccordion/XmlPreview.client.vue +13 -30
- package/src/components/ResourceExplorer/ResourceExplorer.vue +21 -10
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +12 -1
- package/src/composables/useResourceCapabilities.ts +1 -1
- package/src/types/dataservices.ts +2 -0
- package/src/types/organizations.ts +1 -1
- package/src/types/users.ts +0 -1
- package/dist/Datafair.client-E5D6ePRC.js +0 -35
- package/dist/JsonPreview.client-C-6eBbPw.js +0 -87
- package/dist/MapContainer.client-DRkAmdOc.js +0 -105
- package/dist/Swagger.client-D4-F6yEf.js +0 -4
- package/dist/XmlPreview.client-Dl2VCgXF.js +0 -79
- /package/assets/illustrations/{_microscope.svg → microscope.svg} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ly, ref as cy, computed as dc, useTemplateRef as uy, onMounted as hy,
|
|
2
|
-
import {
|
|
3
|
-
var fn = Uint8Array, Wo = Uint16Array,
|
|
1
|
+
import { defineComponent as ly, ref as cy, computed as dc, useTemplateRef as uy, onMounted as hy, openBlock as eh, createElementBlock as Mp, createBlock as py, withCtx as rm, createTextVNode as nm, toDisplayString as fc, unref as Gs, createElementVNode as is, createVNode as dy, createCommentVNode as fy } from "vue";
|
|
2
|
+
import { g as my, a as gy, c as _y, u as yy, d as xy, e as vy, _ as by, f as wy, h as Ty, K as Sy, t as Py } from "./main-BMXOPzsN.js";
|
|
3
|
+
var fn = Uint8Array, Wo = Uint16Array, Iy = Int32Array, mm = new fn([
|
|
4
4
|
0,
|
|
5
5
|
0,
|
|
6
6
|
0,
|
|
@@ -69,19 +69,19 @@ var fn = Uint8Array, Wo = Uint16Array, My = Int32Array, mm = new fn([
|
|
|
69
69
|
/* unused */
|
|
70
70
|
0,
|
|
71
71
|
0
|
|
72
|
-
]),
|
|
72
|
+
]), My = new fn([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), _m = function(ie, W) {
|
|
73
73
|
for (var Y = new Wo(31), se = 0; se < 31; ++se)
|
|
74
74
|
Y[se] = W += 1 << ie[se - 1];
|
|
75
|
-
for (var ve = new
|
|
75
|
+
for (var ve = new Iy(Y[30]), se = 1; se < 30; ++se)
|
|
76
76
|
for (var ke = Y[se]; ke < Y[se + 1]; ++ke)
|
|
77
77
|
ve[ke] = ke - Y[se] << 5 | se;
|
|
78
78
|
return { b: Y, r: ve };
|
|
79
|
-
}, ym = _m(mm, 2), xm = ym.b,
|
|
80
|
-
xm[28] = 258,
|
|
81
|
-
var
|
|
79
|
+
}, ym = _m(mm, 2), xm = ym.b, Ey = ym.r;
|
|
80
|
+
xm[28] = 258, Ey[258] = 28;
|
|
81
|
+
var Ay = _m(gm, 0), Cy = Ay.b, Fp = new Wo(32768);
|
|
82
82
|
for (var pi = 0; pi < 32768; ++pi) {
|
|
83
|
-
var
|
|
84
|
-
|
|
83
|
+
var rs = (pi & 43690) >> 1 | (pi & 21845) << 1;
|
|
84
|
+
rs = (rs & 52428) >> 2 | (rs & 13107) << 2, rs = (rs & 61680) >> 4 | (rs & 3855) << 4, Fp[pi] = ((rs & 65280) >> 8 | (rs & 255) << 8) >> 1;
|
|
85
85
|
}
|
|
86
86
|
var bc = (function(ie, W, Y) {
|
|
87
87
|
for (var se = ie.length, ve = 0, ke = new Wo(W); ve < se; ++ve)
|
|
@@ -113,7 +113,7 @@ for (var pi = 280; pi < 288; ++pi)
|
|
|
113
113
|
var vm = new fn(32);
|
|
114
114
|
for (var pi = 0; pi < 32; ++pi)
|
|
115
115
|
vm[pi] = 5;
|
|
116
|
-
var
|
|
116
|
+
var Dy = /* @__PURE__ */ bc(Tc, 9, 1), zy = /* @__PURE__ */ bc(vm, 5, 1), Ep = function(ie) {
|
|
117
117
|
for (var W = ie[0], Y = 1; Y < ie.length; ++Y)
|
|
118
118
|
ie[Y] > W && (W = ie[Y]);
|
|
119
119
|
return W;
|
|
@@ -123,11 +123,11 @@ var zy = /* @__PURE__ */ bc(Tc, 9, 1), ky = /* @__PURE__ */ bc(vm, 5, 1), Ep = f
|
|
|
123
123
|
}, Ap = function(ie, W) {
|
|
124
124
|
var Y = W / 8 | 0;
|
|
125
125
|
return (ie[Y] | ie[Y + 1] << 8 | ie[Y + 2] << 16) >> (W & 7);
|
|
126
|
-
},
|
|
126
|
+
}, ky = function(ie) {
|
|
127
127
|
return (ie + 7) / 8 | 0;
|
|
128
|
-
},
|
|
128
|
+
}, Ry = function(ie, W, Y) {
|
|
129
129
|
return (Y == null || Y > ie.length) && (Y = ie.length), new fn(ie.subarray(W, Y));
|
|
130
|
-
},
|
|
130
|
+
}, Ly = [
|
|
131
131
|
"unexpected EOF",
|
|
132
132
|
"invalid block type",
|
|
133
133
|
"invalid length/literal",
|
|
@@ -144,7 +144,7 @@ var zy = /* @__PURE__ */ bc(Tc, 9, 1), ky = /* @__PURE__ */ bc(vm, 5, 1), Ep = f
|
|
|
144
144
|
"invalid zip data"
|
|
145
145
|
// determined by unknown compression method
|
|
146
146
|
], dn = function(ie, W, Y) {
|
|
147
|
-
var se = new Error(W ||
|
|
147
|
+
var se = new Error(W || Ly[ie]);
|
|
148
148
|
if (se.code = ie, Error.captureStackTrace && Error.captureStackTrace(se, dn), !Y)
|
|
149
149
|
throw se;
|
|
150
150
|
return se;
|
|
@@ -167,12 +167,12 @@ var zy = /* @__PURE__ */ bc(Tc, 9, 1), ky = /* @__PURE__ */ bc(vm, 5, 1), Ep = f
|
|
|
167
167
|
var _t = Ln(ie, Ye + 1, 3);
|
|
168
168
|
if (Ye += 3, _t)
|
|
169
169
|
if (_t == 1)
|
|
170
|
-
pt =
|
|
170
|
+
pt = Dy, kt = zy, Ze = 9, xe = 5;
|
|
171
171
|
else if (_t == 2) {
|
|
172
172
|
var Ir = Ln(ie, Ye, 31) + 257, Fi = Ln(ie, Ye + 10, 15) + 4, en = Ir + Ln(ie, Ye + 5, 31) + 1;
|
|
173
173
|
Ye += 14;
|
|
174
174
|
for (var Ji = new fn(en), hr = new fn(19), vt = 0; vt < Fi; ++vt)
|
|
175
|
-
hr[
|
|
175
|
+
hr[My[vt]] = Ln(ie, Ye + vt * 3, 7);
|
|
176
176
|
Ye += Fi * 3;
|
|
177
177
|
for (var Wi = Ep(hr), Qi = (1 << Wi) - 1, tn = bc(hr, Wi, 1), vt = 0; vt < en; ) {
|
|
178
178
|
var Zr = tn[Ln(ie, Ye, Qi)];
|
|
@@ -191,7 +191,7 @@ var zy = /* @__PURE__ */ bc(Tc, 9, 1), ky = /* @__PURE__ */ bc(vm, 5, 1), Ep = f
|
|
|
191
191
|
} else
|
|
192
192
|
dn(1);
|
|
193
193
|
else {
|
|
194
|
-
var ot =
|
|
194
|
+
var ot = ky(Ye) + 4, xt = ie[ot - 4] | ie[ot - 3] << 8, si = ot + xt;
|
|
195
195
|
if (si > ve) {
|
|
196
196
|
Pe && dn(0);
|
|
197
197
|
break;
|
|
@@ -224,7 +224,7 @@ var zy = /* @__PURE__ */ bc(Tc, 9, 1), ky = /* @__PURE__ */ bc(vm, 5, 1), Ep = f
|
|
|
224
224
|
}
|
|
225
225
|
var Ti = kt[Ap(ie, Ye) & Rt], Hi = Ti >> 4;
|
|
226
226
|
Ti || dn(3), Ye += Ti & 15;
|
|
227
|
-
var ht =
|
|
227
|
+
var ht = Cy[Hi];
|
|
228
228
|
if (Hi > 3) {
|
|
229
229
|
var ct = gm[Hi];
|
|
230
230
|
ht += Ap(ie, Ye) & (1 << ct) - 1, Ye += ct;
|
|
@@ -246,39 +246,39 @@ var zy = /* @__PURE__ */ bc(Tc, 9, 1), ky = /* @__PURE__ */ bc(vm, 5, 1), Ep = f
|
|
|
246
246
|
}
|
|
247
247
|
W.l = pt, W.p = Ar, W.b = rt, W.f = tt, pt && (tt = 1, W.m = Ze, W.d = kt, W.n = xe);
|
|
248
248
|
} while (!tt);
|
|
249
|
-
return rt != Y.length && E ?
|
|
250
|
-
},
|
|
249
|
+
return rt != Y.length && E ? Ry(Y, 0, rt) : Y.subarray(0, rt);
|
|
250
|
+
}, Fy = /* @__PURE__ */ new fn(0), By = function(ie) {
|
|
251
251
|
(ie[0] != 31 || ie[1] != 139 || ie[2] != 8) && dn(6, "invalid gzip data");
|
|
252
252
|
var W = ie[3], Y = 10;
|
|
253
253
|
W & 4 && (Y += (ie[10] | ie[11] << 8) + 2);
|
|
254
254
|
for (var se = (W >> 3 & 1) + (W >> 4 & 1); se > 0; se -= !ie[Y++])
|
|
255
255
|
;
|
|
256
256
|
return Y + (W & 2);
|
|
257
|
-
},
|
|
257
|
+
}, Oy = function(ie) {
|
|
258
258
|
var W = ie.length;
|
|
259
259
|
return (ie[W - 4] | ie[W - 3] << 8 | ie[W - 2] << 16 | ie[W - 1] << 24) >>> 0;
|
|
260
|
-
},
|
|
260
|
+
}, Ny = function(ie, W) {
|
|
261
261
|
return ((ie[0] & 15) != 8 || ie[0] >> 4 > 7 || (ie[0] << 8 | ie[1]) % 31) && dn(6, "invalid zlib data"), (ie[1] >> 5 & 1) == 1 && dn(6, "invalid zlib data: " + (ie[1] & 32 ? "need" : "unexpected") + " dictionary"), (ie[1] >> 3 & 4) + 2;
|
|
262
262
|
};
|
|
263
|
-
function
|
|
263
|
+
function Vy(ie, W) {
|
|
264
264
|
return jp(ie, { i: 2 }, W, W);
|
|
265
265
|
}
|
|
266
|
+
function jy(ie, W) {
|
|
267
|
+
var Y = By(ie);
|
|
268
|
+
return Y + 8 > ie.length && dn(6, "invalid gzip data"), jp(ie.subarray(Y, -8), { i: 2 }, new fn(Oy(ie)), W);
|
|
269
|
+
}
|
|
266
270
|
function Uy(ie, W) {
|
|
267
|
-
|
|
268
|
-
return Y + 8 > ie.length && dn(6, "invalid gzip data"), jp(ie.subarray(Y, -8), { i: 2 }, new fn(Ny(ie)), W);
|
|
271
|
+
return jp(ie.subarray(Ny(ie), -4), { i: 2 }, W, W);
|
|
269
272
|
}
|
|
270
273
|
function Gy(ie, W) {
|
|
271
|
-
return
|
|
274
|
+
return ie[0] == 31 && ie[1] == 139 && ie[2] == 8 ? jy(ie, W) : (ie[0] & 15) != 8 || ie[0] >> 4 > 7 || (ie[0] << 8 | ie[1]) % 31 ? Vy(ie, W) : Uy(ie, W);
|
|
272
275
|
}
|
|
273
|
-
|
|
274
|
-
return ie[0] == 31 && ie[1] == 139 && ie[2] == 8 ? Uy(ie, W) : (ie[0] & 15) != 8 || ie[0] >> 4 > 7 || (ie[0] << 8 | ie[1]) % 31 ? jy(ie, W) : Gy(ie, W);
|
|
275
|
-
}
|
|
276
|
-
var Zy = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), qy = 0;
|
|
276
|
+
var $y = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Zy = 0;
|
|
277
277
|
try {
|
|
278
|
-
|
|
278
|
+
$y.decode(Fy, { stream: !0 }), Zy = 1;
|
|
279
279
|
} catch {
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var qy = Object.defineProperty, wc = Math.pow, Yt = (ie, W) => qy(ie, "name", { value: W, configurable: !0 }), ur = (ie, W, Y) => new Promise((se, ve) => {
|
|
282
282
|
var ke = (Pe) => {
|
|
283
283
|
try {
|
|
284
284
|
c(Y.next(Pe));
|
|
@@ -315,7 +315,7 @@ Yt((ie, W) => {
|
|
|
315
315
|
}, "_removeTile") });
|
|
316
316
|
return new ve(W);
|
|
317
317
|
}, "leafletRasterLayer");
|
|
318
|
-
var
|
|
318
|
+
var Wy = Yt((ie) => (W, Y) => {
|
|
319
319
|
if (Y instanceof AbortController) return ie(W, Y);
|
|
320
320
|
let se = new AbortController();
|
|
321
321
|
return ie(W, se).then((ve) => Y(void 0, ve.data, ve.cacheControl || "", ve.expires || ""), (ve) => Y(ve)).catch((ve) => Y(ve)), { cancel: Yt(() => se.abort(), "cancel") };
|
|
@@ -339,7 +339,7 @@ var Hy = Yt((ie) => (W, Y) => {
|
|
|
339
339
|
return { data: new Uint8Array() };
|
|
340
340
|
}
|
|
341
341
|
return { data: null };
|
|
342
|
-
}), "tilev4"), this.tile =
|
|
342
|
+
}), "tilev4"), this.tile = Wy(this.tilev4), this.tiles = /* @__PURE__ */ new Map(), this.metadata = W?.metadata || !1, this.errorOnMissingTile = W?.errorOnMissingTile || !1;
|
|
343
343
|
}
|
|
344
344
|
add(W) {
|
|
345
345
|
this.tiles.set(W.source.getKey(), W);
|
|
@@ -349,7 +349,7 @@ var Hy = Yt((ie) => (W, Y) => {
|
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
Yt(bm, "Protocol");
|
|
352
|
-
var
|
|
352
|
+
var Hy = bm;
|
|
353
353
|
function wm(ie, W) {
|
|
354
354
|
return (W >>> 0) * 4294967296 + (ie >>> 0);
|
|
355
355
|
}
|
|
@@ -379,16 +379,16 @@ function Sm(ie, W) {
|
|
|
379
379
|
return [ie, E[0], E[1]];
|
|
380
380
|
}
|
|
381
381
|
Yt(Sm, "idOnLevel");
|
|
382
|
-
var
|
|
382
|
+
var Xy = [0, 1, 5, 21, 85, 341, 1365, 5461, 21845, 87381, 349525, 1398101, 5592405, 22369621, 89478485, 357913941, 1431655765, 5726623061, 22906492245, 91625968981, 366503875925, 1466015503701, 5864062014805, 23456248059221, 93824992236885, 375299968947541, 1501199875790165];
|
|
383
383
|
function Pm(ie, W, Y) {
|
|
384
384
|
if (ie > 26) throw new Error("Tile zoom level exceeds max safe number limit (26)");
|
|
385
385
|
if (W > wc(2, ie) - 1 || Y > wc(2, ie) - 1) throw new Error("tile x/y outside zoom level bounds");
|
|
386
|
-
let se =
|
|
386
|
+
let se = Xy[ie], ve = wc(2, ie), ke = 0, E = 0, c = 0, Pe = [W, Y], Je = ve / 2;
|
|
387
387
|
for (; Je > 0; ) ke = (Pe[0] & Je) > 0 ? 1 : 0, E = (Pe[1] & Je) > 0 ? 1 : 0, c += Je * Je * (3 * ke ^ E), Up(Je, Pe, ke, E), Je = Je / 2;
|
|
388
388
|
return se + c;
|
|
389
389
|
}
|
|
390
390
|
Yt(Pm, "zxyToTileId");
|
|
391
|
-
function
|
|
391
|
+
function Yy(ie) {
|
|
392
392
|
let W = 0;
|
|
393
393
|
for (let Y = 0; Y < 27; Y++) {
|
|
394
394
|
let se = (1 << Y) * (1 << Y);
|
|
@@ -397,13 +397,13 @@ function Ky(ie) {
|
|
|
397
397
|
}
|
|
398
398
|
throw new Error("Tile zoom level exceeds max safe number limit (26)");
|
|
399
399
|
}
|
|
400
|
-
Yt(
|
|
401
|
-
var
|
|
400
|
+
Yt(Yy, "tileIdToZxy");
|
|
401
|
+
var Ky = ((ie) => (ie[ie.Unknown = 0] = "Unknown", ie[ie.None = 1] = "None", ie[ie.Gzip = 2] = "Gzip", ie[ie.Brotli = 3] = "Brotli", ie[ie.Zstd = 4] = "Zstd", ie))(Ky || {});
|
|
402
402
|
function ah(ie, W) {
|
|
403
403
|
return ur(this, null, function* () {
|
|
404
404
|
if (W === 1 || W === 0) return ie;
|
|
405
405
|
if (W === 2) {
|
|
406
|
-
if (typeof globalThis.DecompressionStream > "u") return
|
|
406
|
+
if (typeof globalThis.DecompressionStream > "u") return Gy(new Uint8Array(ie));
|
|
407
407
|
let Y = new Response(ie).body;
|
|
408
408
|
if (!Y) throw new Error("Failed to read response stream");
|
|
409
409
|
let se = Y.pipeThrough(new globalThis.DecompressionStream("gzip"));
|
|
@@ -413,12 +413,12 @@ function ah(ie, W) {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
Yt(ah, "defaultDecompress");
|
|
416
|
-
var
|
|
416
|
+
var Jy = ((ie) => (ie[ie.Unknown = 0] = "Unknown", ie[ie.Mvt = 1] = "Mvt", ie[ie.Png = 2] = "Png", ie[ie.Jpeg = 3] = "Jpeg", ie[ie.Webp = 4] = "Webp", ie[ie.Avif = 5] = "Avif", ie))(Jy || {});
|
|
417
417
|
function Im(ie) {
|
|
418
418
|
return ie === 1 ? ".mvt" : ie === 2 ? ".png" : ie === 3 ? ".jpg" : ie === 4 ? ".webp" : ie === 5 ? ".avif" : "";
|
|
419
419
|
}
|
|
420
420
|
Yt(Im, "tileTypeExt");
|
|
421
|
-
var
|
|
421
|
+
var Qy = 127;
|
|
422
422
|
function Mm(ie, W) {
|
|
423
423
|
let Y = 0, se = ie.length - 1;
|
|
424
424
|
for (; Y <= se; ) {
|
|
@@ -430,7 +430,7 @@ function Mm(ie, W) {
|
|
|
430
430
|
return se >= 0 && (ie[se].runLength === 0 || W - ie[se].tileId < ie[se].runLength) ? ie[se] : null;
|
|
431
431
|
}
|
|
432
432
|
Yt(Mm, "findTile");
|
|
433
|
-
var
|
|
433
|
+
var ex = class {
|
|
434
434
|
constructor(W) {
|
|
435
435
|
this.file = W;
|
|
436
436
|
}
|
|
@@ -443,7 +443,7 @@ var tx = class {
|
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
};
|
|
446
|
-
Yt(
|
|
446
|
+
Yt(ex, "FileSource");
|
|
447
447
|
var Em = class {
|
|
448
448
|
constructor(W, Y = new Headers()) {
|
|
449
449
|
this.url = W, this.customHeaders = Y, this.mustReload = !1;
|
|
@@ -483,7 +483,7 @@ var Em = class {
|
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
485
|
Yt(Em, "FetchSource");
|
|
486
|
-
var
|
|
486
|
+
var tx = Em;
|
|
487
487
|
function wn(ie, W) {
|
|
488
488
|
let Y = ie.getUint32(W + 4, !0), se = ie.getUint32(W + 0, !0);
|
|
489
489
|
return Y * wc(2, 32) + se;
|
|
@@ -518,7 +518,7 @@ function $p(ie, W) {
|
|
|
518
518
|
return ur(this, null, function* () {
|
|
519
519
|
let Y = yield ie.getBytes(0, 16384);
|
|
520
520
|
if (new DataView(Y.data).getUint16(0, !0) !== 19792) throw new Error("Wrong magic number for PMTiles archive");
|
|
521
|
-
let se = Y.data.slice(0,
|
|
521
|
+
let se = Y.data.slice(0, Qy), ve = Am(se, Y.etag), ke = Y.data.slice(ve.rootDirectoryOffset, ve.rootDirectoryOffset + ve.rootDirectoryLength), E = `${ie.getKey()}|${ve.etag || ""}|${ve.rootDirectoryOffset}|${ve.rootDirectoryLength}`, c = Gp(yield W(ke, ve.internalCompression));
|
|
522
522
|
return [ve, [E, c.length, c]];
|
|
523
523
|
});
|
|
524
524
|
}
|
|
@@ -531,7 +531,7 @@ function Zp(ie, W, Y, se, ve) {
|
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
Yt(Zp, "getDirectory");
|
|
534
|
-
var
|
|
534
|
+
var ix = class {
|
|
535
535
|
constructor(W = 100, Y = !0, se = ah) {
|
|
536
536
|
this.cache = /* @__PURE__ */ new Map(), this.maxCacheEntries = W, this.counter = 1, this.decompress = se;
|
|
537
537
|
}
|
|
@@ -565,7 +565,7 @@ var rx = class {
|
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
|
-
Yt(
|
|
568
|
+
Yt(ix, "ResolvedValueCache");
|
|
569
569
|
var Dm = class {
|
|
570
570
|
constructor(W = 100, Y = !0, se = ah) {
|
|
571
571
|
this.cache = /* @__PURE__ */ new Map(), this.invalidations = /* @__PURE__ */ new Map(), this.maxCacheEntries = W, this.counter = 1, this.decompress = se;
|
|
@@ -623,9 +623,9 @@ var Dm = class {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
Yt(Dm, "SharedPromiseCache");
|
|
626
|
-
var
|
|
626
|
+
var rx = Dm, zm = class {
|
|
627
627
|
constructor(W, Y, se) {
|
|
628
|
-
typeof W == "string" ? this.source = new
|
|
628
|
+
typeof W == "string" ? this.source = new tx(W) : this.source = W, se ? this.decompress = se : this.decompress = ah, Y ? this.cache = Y : this.cache = new rx();
|
|
629
629
|
}
|
|
630
630
|
getHeader() {
|
|
631
631
|
return ur(this, null, function* () {
|
|
@@ -689,12 +689,12 @@ var Op = zm, rh = { exports: {} };
|
|
|
689
689
|
* MapLibre GL JS
|
|
690
690
|
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.14.0/LICENSE.txt
|
|
691
691
|
*/
|
|
692
|
-
var
|
|
693
|
-
function
|
|
692
|
+
var nx = rh.exports, am;
|
|
693
|
+
function ax() {
|
|
694
694
|
return am || (am = 1, (function(ie, W) {
|
|
695
695
|
(function(Y, se) {
|
|
696
696
|
ie.exports = se();
|
|
697
|
-
})(
|
|
697
|
+
})(nx, (function() {
|
|
698
698
|
var Y = {}, se = {};
|
|
699
699
|
function ve(E, c, Pe) {
|
|
700
700
|
if (se[E] = Pe, E === "index") {
|
|
@@ -1245,7 +1245,7 @@ function sx() {
|
|
|
1245
1245
|
return !!this.bindings[e] || !!this.parent && this.parent.has(e);
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
|
-
const fi = { kind: "null" }, Fe = { kind: "number" }, at = { kind: "string" }, st = { kind: "boolean" }, rr = { kind: "color" },
|
|
1248
|
+
const fi = { kind: "null" }, Fe = { kind: "number" }, at = { kind: "string" }, st = { kind: "boolean" }, rr = { kind: "color" }, Pa = { kind: "projectionDefinition" }, Xe = { kind: "object" }, te = { kind: "value" }, Re = { kind: "collator" }, We = { kind: "formatted" }, Vt = { kind: "padding" }, oi = { kind: "colorArray" }, Wt = { kind: "numberArray" }, Mi = { kind: "resolvedImage" }, pr = { kind: "variableAnchorOffsetCollection" };
|
|
1249
1249
|
function mi(r, e) {
|
|
1250
1250
|
return { kind: "array", itemType: r, N: e };
|
|
1251
1251
|
}
|
|
@@ -1256,7 +1256,7 @@ function sx() {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
return r.kind;
|
|
1258
1258
|
}
|
|
1259
|
-
const gi = [fi, Fe, at, st, rr,
|
|
1259
|
+
const gi = [fi, Fe, at, st, rr, Pa, We, Xe, mi(te), Vt, Wt, oi, Mi, pr];
|
|
1260
1260
|
function Pn(r, e) {
|
|
1261
1261
|
if (e.kind === "error") return null;
|
|
1262
1262
|
if (r.kind === "array") {
|
|
@@ -1278,7 +1278,7 @@ function sx() {
|
|
|
1278
1278
|
function sn(r, e) {
|
|
1279
1279
|
return r.kind === "array" && e.kind === "array" ? r.itemType.kind === e.itemType.kind && typeof r.N == "number" : r.kind === e.kind;
|
|
1280
1280
|
}
|
|
1281
|
-
const Sc = 0.96422, Xn = 0.82521, $s = 4 / 29, li = 6 / 29, Pc = 3 * li * li, Ic = li * li * li,
|
|
1281
|
+
const Sc = 0.96422, Xn = 0.82521, $s = 4 / 29, li = 6 / 29, Pc = 3 * li * li, Ic = li * li * li, ns = Math.PI / 180, Mc = 180 / Math.PI;
|
|
1282
1282
|
function Ec(r) {
|
|
1283
1283
|
return (r %= 360) < 0 && (r += 360), r;
|
|
1284
1284
|
}
|
|
@@ -1308,26 +1308,26 @@ function sx() {
|
|
|
1308
1308
|
const sh = Object.hasOwn || function(r, e) {
|
|
1309
1309
|
return Object.prototype.hasOwnProperty.call(r, e);
|
|
1310
1310
|
};
|
|
1311
|
-
function
|
|
1311
|
+
function as(r, e) {
|
|
1312
1312
|
return sh(r, e) ? r[e] : void 0;
|
|
1313
1313
|
}
|
|
1314
1314
|
function qs(r) {
|
|
1315
1315
|
return parseInt(r.padEnd(2, r), 16) / 255;
|
|
1316
1316
|
}
|
|
1317
1317
|
function Cc(r, e) {
|
|
1318
|
-
return
|
|
1318
|
+
return Ia(e ? r / 100 : r, 0, 1);
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function Ia(r, e, i) {
|
|
1321
1321
|
return Math.min(Math.max(e, r), i);
|
|
1322
1322
|
}
|
|
1323
1323
|
function Jo(r) {
|
|
1324
1324
|
return !r.some(Number.isNaN);
|
|
1325
1325
|
}
|
|
1326
|
-
const
|
|
1326
|
+
const ss = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
|
|
1327
1327
|
function On(r, e, i) {
|
|
1328
1328
|
return r + i * (e - r);
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function Ma(r, e, i) {
|
|
1331
1331
|
return r.map(((a, o) => On(a, e[o], i)));
|
|
1332
1332
|
}
|
|
1333
1333
|
class ut {
|
|
@@ -1339,7 +1339,7 @@ function sx() {
|
|
|
1339
1339
|
if (typeof e != "string") return;
|
|
1340
1340
|
const i = (function(a) {
|
|
1341
1341
|
if ((a = a.toLowerCase().trim()) === "transparent") return [0, 0, 0, 0];
|
|
1342
|
-
const o = ss
|
|
1342
|
+
const o = as(ss, a);
|
|
1343
1343
|
if (o) {
|
|
1344
1344
|
const [h, f, g] = o;
|
|
1345
1345
|
return [h / 255, f / 255, g / 255, 1];
|
|
@@ -1356,7 +1356,7 @@ function sx() {
|
|
|
1356
1356
|
if (O === " " || O === " /" || O === ",," || O === ",,,") {
|
|
1357
1357
|
const V = [y, S, C].join(""), H = V === "%%%" ? 100 : V === "" ? 255 : 0;
|
|
1358
1358
|
if (H) {
|
|
1359
|
-
const J = [
|
|
1359
|
+
const J = [Ia(+g / H, 0, 1), Ia(+w / H, 0, 1), Ia(+A / H, 0, 1), B ? Cc(+B, q) : 1];
|
|
1360
1360
|
if (Jo(J)) return J;
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
@@ -1367,7 +1367,7 @@ function sx() {
|
|
|
1367
1367
|
if (u) {
|
|
1368
1368
|
const [h, f, g, y, v, w, S, P, A] = u, C = [g || " ", v || " ", S].join("");
|
|
1369
1369
|
if (C === " " || C === " /" || C === ",," || C === ",,,") {
|
|
1370
|
-
const z = [+f,
|
|
1370
|
+
const z = [+f, Ia(+y, 0, 100), Ia(+w, 0, 100), P ? Cc(+P, A) : 1];
|
|
1371
1371
|
if (Jo(z)) return (function([B, q, O, V]) {
|
|
1372
1372
|
function H(J) {
|
|
1373
1373
|
const he = (J + B / 30) % 12, Te = q * Math.min(O, 1 - O);
|
|
@@ -1403,7 +1403,7 @@ function sx() {
|
|
|
1403
1403
|
static interpolate(e, i, a, o = "rgb") {
|
|
1404
1404
|
switch (o) {
|
|
1405
1405
|
case "rgb": {
|
|
1406
|
-
const [u, h, f, g] =
|
|
1406
|
+
const [u, h, f, g] = Ma(e.rgb, i.rgb, a);
|
|
1407
1407
|
return new ut(u, h, f, g, !1);
|
|
1408
1408
|
}
|
|
1409
1409
|
case "hcl": {
|
|
@@ -1415,12 +1415,12 @@ function sx() {
|
|
|
1415
1415
|
y > u && O > 180 ? O -= 360 : y < u && u - y > 180 && (O += 360), P = u + a * O;
|
|
1416
1416
|
}
|
|
1417
1417
|
const [C, z, B, q] = (function([O, V, H, J]) {
|
|
1418
|
-
return O = isNaN(O) ? 0 : O *
|
|
1418
|
+
return O = isNaN(O) ? 0 : O * ns, Xo([H, Math.cos(O) * V, Math.sin(O) * V, J]);
|
|
1419
1419
|
})([P, A ?? On(h, v, a), On(f, w, a), On(g, S, a)]);
|
|
1420
1420
|
return new ut(C, z, B, q, !1);
|
|
1421
1421
|
}
|
|
1422
1422
|
case "lab": {
|
|
1423
|
-
const [u, h, f, g] = Xo(
|
|
1423
|
+
const [u, h, f, g] = Xo(Ma(e.lab, i.lab, a));
|
|
1424
1424
|
return new ut(u, h, f, g, !1);
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
@@ -1487,7 +1487,7 @@ function sx() {
|
|
|
1487
1487
|
return JSON.stringify(this.values);
|
|
1488
1488
|
}
|
|
1489
1489
|
static interpolate(e, i, a) {
|
|
1490
|
-
return new nr(
|
|
1490
|
+
return new nr(Ma(e.values, i.values, a));
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
1493
|
class ii {
|
|
@@ -1506,7 +1506,7 @@ function sx() {
|
|
|
1506
1506
|
return JSON.stringify(this.values);
|
|
1507
1507
|
}
|
|
1508
1508
|
static interpolate(e, i, a) {
|
|
1509
|
-
return new ii(
|
|
1509
|
+
return new ii(Ma(e.values, i.values, a));
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
class it {
|
|
@@ -1600,7 +1600,7 @@ function sx() {
|
|
|
1600
1600
|
return e instanceof fr ? e : Array.isArray(e) && e.length === 3 && typeof e[0] == "string" && typeof e[1] == "string" && typeof e[2] == "number" ? new fr(e[0], e[1], e[2]) : typeof e == "object" && typeof e.from == "string" && typeof e.to == "string" && typeof e.transition == "number" ? new fr(e.from, e.to, e.transition) : typeof e == "string" ? new fr(e, e, 1) : void 0;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function Ea(r, e, i, a) {
|
|
1604
1604
|
return typeof r == "number" && r >= 0 && r <= 255 && typeof e == "number" && e >= 0 && e <= 255 && typeof i == "number" && i >= 0 && i <= 255 ? a === void 0 || typeof a == "number" && a >= 0 && a <= 1 ? null : `Invalid rgba value [${[r, e, i, a].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof a == "number" ? [r, e, i, a] : [r, e, i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
|
|
1605
1605
|
}
|
|
1606
1606
|
function Vn(r) {
|
|
@@ -1621,7 +1621,7 @@ function sx() {
|
|
|
1621
1621
|
if (typeof r == "boolean") return st;
|
|
1622
1622
|
if (typeof r == "number") return Fe;
|
|
1623
1623
|
if (r instanceof ut) return rr;
|
|
1624
|
-
if (r instanceof fr) return
|
|
1624
|
+
if (r instanceof fr) return Pa;
|
|
1625
1625
|
if (r instanceof Qo) return Re;
|
|
1626
1626
|
if (r instanceof wr) return We;
|
|
1627
1627
|
if (r instanceof nr) return Vt;
|
|
@@ -1747,7 +1747,7 @@ function sx() {
|
|
|
1747
1747
|
if (typeof i == "string") {
|
|
1748
1748
|
const u = e.parseColor(i);
|
|
1749
1749
|
if (u) return u;
|
|
1750
|
-
} else if (Array.isArray(i) && (a = i.length < 3 || i.length > 4 ? `Invalid rgba value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.` :
|
|
1750
|
+
} else if (Array.isArray(i) && (a = i.length < 3 || i.length > 4 ? `Invalid rgba value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.` : Ea(i[0], i[1], i[2], i[3]), !a)) return new ut(i[0] / 255, i[1] / 255, i[2] / 255, i[3]);
|
|
1751
1751
|
}
|
|
1752
1752
|
throw new jt(a || `Could not parse color from value '${typeof i == "string" ? i : JSON.stringify(i)}'`);
|
|
1753
1753
|
}
|
|
@@ -1920,14 +1920,14 @@ function sx() {
|
|
|
1920
1920
|
return this.result.outputDefined();
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
|
-
class
|
|
1923
|
+
class Aa {
|
|
1924
1924
|
constructor(e, i) {
|
|
1925
1925
|
this.type = i.type, this.name = e, this.boundExpression = i;
|
|
1926
1926
|
}
|
|
1927
1927
|
static parse(e, i) {
|
|
1928
1928
|
if (e.length !== 2 || typeof e[1] != "string") return i.error("'var' expression requires exactly one string literal argument.");
|
|
1929
1929
|
const a = e[1];
|
|
1930
|
-
return i.scope.has(a) ? new
|
|
1930
|
+
return i.scope.has(a) ? new Aa(a, i.scope.get(a)) : i.error(`Unknown variable "${a}". Make sure "${a}" has been bound in an enclosing "let" expression before using it.`, 1);
|
|
1931
1931
|
}
|
|
1932
1932
|
evaluate(e) {
|
|
1933
1933
|
return this.boundExpression.evaluate(e);
|
|
@@ -1984,7 +1984,7 @@ function sx() {
|
|
|
1984
1984
|
return !0;
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
|
-
class
|
|
1987
|
+
class Ca {
|
|
1988
1988
|
constructor(e, i, a) {
|
|
1989
1989
|
this.type = Fe, this.needle = e, this.haystack = i, this.fromIndex = a;
|
|
1990
1990
|
}
|
|
@@ -1995,9 +1995,9 @@ function sx() {
|
|
|
1995
1995
|
if (!Bn(a.type, [st, at, Fe, fi, te])) return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Pt(a.type)} instead`);
|
|
1996
1996
|
if (e.length === 4) {
|
|
1997
1997
|
const u = i.parse(e[3], 3, Fe);
|
|
1998
|
-
return u ? new
|
|
1998
|
+
return u ? new Ca(a, o, u) : null;
|
|
1999
1999
|
}
|
|
2000
|
-
return new
|
|
2000
|
+
return new Ca(a, o);
|
|
2001
2001
|
}
|
|
2002
2002
|
evaluate(e) {
|
|
2003
2003
|
const i = this.needle.evaluate(e), a = this.haystack.evaluate(e);
|
|
@@ -2063,7 +2063,7 @@ function sx() {
|
|
|
2063
2063
|
return this.outputs.every(((e) => e.outputDefined())) && this.otherwise.outputDefined();
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
|
-
class
|
|
2066
|
+
class os {
|
|
2067
2067
|
constructor(e, i, a) {
|
|
2068
2068
|
this.type = e, this.branches = i, this.otherwise = a;
|
|
2069
2069
|
}
|
|
@@ -2083,7 +2083,7 @@ function sx() {
|
|
|
2083
2083
|
const u = i.parse(e[e.length - 1], e.length - 1, a);
|
|
2084
2084
|
if (!u) return null;
|
|
2085
2085
|
if (!a) throw new Error("Can't infer output type");
|
|
2086
|
-
return new
|
|
2086
|
+
return new os(a, o, u);
|
|
2087
2087
|
}
|
|
2088
2088
|
evaluate(e) {
|
|
2089
2089
|
for (const [i, a] of this.branches) if (i.evaluate(e)) return a.evaluate(e);
|
|
@@ -2126,7 +2126,7 @@ function sx() {
|
|
|
2126
2126
|
return !1;
|
|
2127
2127
|
}
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function Da(r, e) {
|
|
2130
2130
|
const i = r.length - 1;
|
|
2131
2131
|
let a, o, u = 0, h = i, f = 0;
|
|
2132
2132
|
for (; u <= h; ) if (f = Math.floor((u + h) / 2), a = r[f], o = r[f + 1], a <= e) {
|
|
@@ -2167,7 +2167,7 @@ function sx() {
|
|
|
2167
2167
|
const o = this.input.evaluate(e);
|
|
2168
2168
|
if (o <= i[0]) return a[0].evaluate(e);
|
|
2169
2169
|
const u = i.length;
|
|
2170
|
-
return o >= i[u - 1] ? a[u - 1].evaluate(e) : a[
|
|
2170
|
+
return o >= i[u - 1] ? a[u - 1].evaluate(e) : a[Da(i, o)].evaluate(e);
|
|
2171
2171
|
}
|
|
2172
2172
|
eachChild(e) {
|
|
2173
2173
|
e(this.input);
|
|
@@ -2180,12 +2180,12 @@ function sx() {
|
|
|
2180
2180
|
function zc(r) {
|
|
2181
2181
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2182
2182
|
}
|
|
2183
|
-
var
|
|
2184
|
-
if (il) return
|
|
2183
|
+
var ls, il, lh = (function() {
|
|
2184
|
+
if (il) return ls;
|
|
2185
2185
|
function r(e, i, a, o) {
|
|
2186
2186
|
this.cx = 3 * e, this.bx = 3 * (a - e) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * i, this.by = 3 * (o - i) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = e, this.p1y = i, this.p2x = a, this.p2y = o;
|
|
2187
2187
|
}
|
|
2188
|
-
return il = 1,
|
|
2188
|
+
return il = 1, ls = r, r.prototype = { sampleCurveX: function(e) {
|
|
2189
2189
|
return ((this.ax * e + this.bx) * e + this.cx) * e;
|
|
2190
2190
|
}, sampleCurveY: function(e) {
|
|
2191
2191
|
return ((this.ay * e + this.by) * e + this.cy) * e;
|
|
@@ -2206,7 +2206,7 @@ function sx() {
|
|
|
2206
2206
|
return a;
|
|
2207
2207
|
}, solve: function(e, i) {
|
|
2208
2208
|
return this.sampleCurveY(this.solveCurveX(e, i));
|
|
2209
|
-
} },
|
|
2209
|
+
} }, ls;
|
|
2210
2210
|
})(), kc = zc(lh);
|
|
2211
2211
|
class mr {
|
|
2212
2212
|
constructor(e, i, a, o, u) {
|
|
@@ -2253,7 +2253,7 @@ function sx() {
|
|
|
2253
2253
|
if (!A) return null;
|
|
2254
2254
|
g = g || A.type, f.push([v, A]);
|
|
2255
2255
|
}
|
|
2256
|
-
return sn(g, Fe) || sn(g,
|
|
2256
|
+
return sn(g, Fe) || sn(g, Pa) || sn(g, rr) || sn(g, Vt) || sn(g, Wt) || sn(g, oi) || sn(g, pr) || sn(g, mi(Fe)) ? new mr(g, a, o, u, f) : i.error(`Type ${Pt(g)} is not interpolatable.`);
|
|
2257
2257
|
}
|
|
2258
2258
|
evaluate(e) {
|
|
2259
2259
|
const i = this.labels, a = this.outputs;
|
|
@@ -2262,7 +2262,7 @@ function sx() {
|
|
|
2262
2262
|
if (o <= i[0]) return a[0].evaluate(e);
|
|
2263
2263
|
const u = i.length;
|
|
2264
2264
|
if (o >= i[u - 1]) return a[u - 1].evaluate(e);
|
|
2265
|
-
const h =
|
|
2265
|
+
const h = Da(i, o), f = mr.interpolationFactor(this.interpolation, o, i[h], i[h + 1]), g = a[h].evaluate(e), y = a[h + 1].evaluate(e);
|
|
2266
2266
|
switch (this.operator) {
|
|
2267
2267
|
case "interpolate":
|
|
2268
2268
|
switch (this.type.kind) {
|
|
@@ -2279,7 +2279,7 @@ function sx() {
|
|
|
2279
2279
|
case "variableAnchorOffsetCollection":
|
|
2280
2280
|
return dr.interpolate(g, y, f);
|
|
2281
2281
|
case "array":
|
|
2282
|
-
return
|
|
2282
|
+
return Ma(g, y, f);
|
|
2283
2283
|
case "projectionDefinition":
|
|
2284
2284
|
return fr.interpolate(g, y, f);
|
|
2285
2285
|
}
|
|
@@ -2311,7 +2311,7 @@ function sx() {
|
|
|
2311
2311
|
const o = a - i, u = r - i;
|
|
2312
2312
|
return o === 0 ? 0 : e === 1 ? u / o : (Math.pow(e, u) - 1) / (Math.pow(e, o) - 1);
|
|
2313
2313
|
}
|
|
2314
|
-
const Jt = { color: ut.interpolate, number: On, padding: nr.interpolate, numberArray: ii.interpolate, colorArray: it.interpolate, variableAnchorOffsetCollection: dr.interpolate, array:
|
|
2314
|
+
const Jt = { color: ut.interpolate, number: On, padding: nr.interpolate, numberArray: ii.interpolate, colorArray: it.interpolate, variableAnchorOffsetCollection: dr.interpolate, array: Ma };
|
|
2315
2315
|
class Qn {
|
|
2316
2316
|
constructor(e, i) {
|
|
2317
2317
|
this.type = e, this.args = i;
|
|
@@ -2346,7 +2346,7 @@ function sx() {
|
|
|
2346
2346
|
function rl(r, e) {
|
|
2347
2347
|
return r === "==" || r === "!=" ? e.kind === "boolean" || e.kind === "string" || e.kind === "number" || e.kind === "null" || e.kind === "value" : e.kind === "string" || e.kind === "number" || e.kind === "value";
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function cs(r, e, i, a) {
|
|
2350
2350
|
return a.compare(e, i) === 0;
|
|
2351
2351
|
}
|
|
2352
2352
|
function ci(r, e, i) {
|
|
@@ -2395,10 +2395,10 @@ function sx() {
|
|
|
2395
2395
|
}
|
|
2396
2396
|
const Rc = ci("==", (function(r, e, i) {
|
|
2397
2397
|
return e === i;
|
|
2398
|
-
}),
|
|
2398
|
+
}), cs), nl = ci("!=", (function(r, e, i) {
|
|
2399
2399
|
return e !== i;
|
|
2400
2400
|
}), (function(r, e, i, a) {
|
|
2401
|
-
return !
|
|
2401
|
+
return !cs(0, e, i, a);
|
|
2402
2402
|
})), Lc = ci("<", (function(r, e, i) {
|
|
2403
2403
|
return e < i;
|
|
2404
2404
|
}), (function(r, e, i, a) {
|
|
@@ -2407,7 +2407,7 @@ function sx() {
|
|
|
2407
2407
|
return e > i;
|
|
2408
2408
|
}), (function(r, e, i, a) {
|
|
2409
2409
|
return a.compare(e, i) > 0;
|
|
2410
|
-
})),
|
|
2410
|
+
})), za = ci("<=", (function(r, e, i) {
|
|
2411
2411
|
return e <= i;
|
|
2412
2412
|
}), (function(r, e, i, a) {
|
|
2413
2413
|
return a.compare(e, i) <= 0;
|
|
@@ -2416,7 +2416,7 @@ function sx() {
|
|
|
2416
2416
|
}), (function(r, e, i, a) {
|
|
2417
2417
|
return a.compare(e, i) >= 0;
|
|
2418
2418
|
}));
|
|
2419
|
-
class
|
|
2419
|
+
class ka {
|
|
2420
2420
|
constructor(e, i, a) {
|
|
2421
2421
|
this.type = Re, this.locale = a, this.caseSensitive = e, this.diacriticSensitive = i;
|
|
2422
2422
|
}
|
|
@@ -2429,7 +2429,7 @@ function sx() {
|
|
|
2429
2429
|
const u = i.parse(a["diacritic-sensitive"] !== void 0 && a["diacritic-sensitive"], 1, st);
|
|
2430
2430
|
if (!u) return null;
|
|
2431
2431
|
let h = null;
|
|
2432
|
-
return a.locale && (h = i.parse(a.locale, 1, at), !h) ? null : new
|
|
2432
|
+
return a.locale && (h = i.parse(a.locale, 1, at), !h) ? null : new ka(o, u, h);
|
|
2433
2433
|
}
|
|
2434
2434
|
evaluate(e) {
|
|
2435
2435
|
return new Qo(this.caseSensitive.evaluate(e), this.diacriticSensitive.evaluate(e), this.locale ? this.locale.evaluate(e) : null);
|
|
@@ -2470,7 +2470,7 @@ function sx() {
|
|
|
2470
2470
|
return !1;
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
class
|
|
2473
|
+
class us {
|
|
2474
2474
|
constructor(e) {
|
|
2475
2475
|
this.type = We, this.sections = e;
|
|
2476
2476
|
}
|
|
@@ -2505,7 +2505,7 @@ function sx() {
|
|
|
2505
2505
|
u = !0, o.push({ content: g, scale: null, font: null, textColor: null, verticalAlign: null });
|
|
2506
2506
|
}
|
|
2507
2507
|
}
|
|
2508
|
-
return new
|
|
2508
|
+
return new us(o);
|
|
2509
2509
|
}
|
|
2510
2510
|
evaluate(e) {
|
|
2511
2511
|
return new wr(this.sections.map(((i) => {
|
|
@@ -2520,14 +2520,14 @@ function sx() {
|
|
|
2520
2520
|
return !1;
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
|
-
class
|
|
2523
|
+
class Ra {
|
|
2524
2524
|
constructor(e) {
|
|
2525
2525
|
this.type = Mi, this.input = e;
|
|
2526
2526
|
}
|
|
2527
2527
|
static parse(e, i) {
|
|
2528
2528
|
if (e.length !== 2) return i.error("Expected two arguments.");
|
|
2529
2529
|
const a = i.parse(e[1], 1, at);
|
|
2530
|
-
return a ? new
|
|
2530
|
+
return a ? new Ra(a) : i.error("No image name provided.");
|
|
2531
2531
|
}
|
|
2532
2532
|
evaluate(e) {
|
|
2533
2533
|
const i = this.input.evaluate(e), a = Lr.fromString(i);
|
|
@@ -2540,14 +2540,14 @@ function sx() {
|
|
|
2540
2540
|
return !1;
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
class
|
|
2543
|
+
class La {
|
|
2544
2544
|
constructor(e) {
|
|
2545
2545
|
this.type = Fe, this.input = e;
|
|
2546
2546
|
}
|
|
2547
2547
|
static parse(e, i) {
|
|
2548
2548
|
if (e.length !== 2) return i.error(`Expected 1 argument, but found ${e.length - 1} instead.`);
|
|
2549
2549
|
const a = i.parse(e[1], 1);
|
|
2550
|
-
return a ? a.type.kind !== "array" && a.type.kind !== "string" && a.type.kind !== "value" ? i.error(`Expected argument of type string or array, but found ${Pt(a.type)} instead.`) : new
|
|
2550
|
+
return a ? a.type.kind !== "array" && a.type.kind !== "string" && a.type.kind !== "value" ? i.error(`Expected argument of type string or array, but found ${Pt(a.type)} instead.`) : new La(a) : null;
|
|
2551
2551
|
}
|
|
2552
2552
|
evaluate(e) {
|
|
2553
2553
|
const i = this.input.evaluate(e);
|
|
@@ -2567,12 +2567,12 @@ function sx() {
|
|
|
2567
2567
|
const i = (180 + r[0]) / 360, a = (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + r[1] * Math.PI / 360))) / 360, o = Math.pow(2, e.z);
|
|
2568
2568
|
return [Math.round(i * o * Di), Math.round(a * o * Di)];
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function Fa(r, e) {
|
|
2571
2571
|
const i = Math.pow(2, e.z);
|
|
2572
2572
|
return [(o = (r[0] / Di + e.x) / i, 360 * o - 180), (a = (r[1] / Di + e.y) / i, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * a) * Math.PI / 180)) - 90)];
|
|
2573
2573
|
var a, o;
|
|
2574
2574
|
}
|
|
2575
|
-
function
|
|
2575
|
+
function hs(r, e) {
|
|
2576
2576
|
r[0] = Math.min(r[0], e[0]), r[1] = Math.min(r[1], e[1]), r[2] = Math.max(r[2], e[0]), r[3] = Math.max(r[3], e[1]);
|
|
2577
2577
|
}
|
|
2578
2578
|
function ea(r, e) {
|
|
@@ -2590,7 +2590,7 @@ function sx() {
|
|
|
2590
2590
|
for (const a of i) for (let o = 0; o < a.length - 1; ++o) if (Xs(r, e, a[o], a[o + 1])) return !0;
|
|
2591
2591
|
return !1;
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function Ba(r, e, i = !1) {
|
|
2594
2594
|
let a = !1;
|
|
2595
2595
|
for (const f of e) for (let g = 0; g < f.length - 1; g++) {
|
|
2596
2596
|
if (uh(r, f[g], f[g + 1])) return i;
|
|
@@ -2600,11 +2600,11 @@ function sx() {
|
|
|
2600
2600
|
return a;
|
|
2601
2601
|
}
|
|
2602
2602
|
function Ys(r, e) {
|
|
2603
|
-
for (const i of e) if (
|
|
2603
|
+
for (const i of e) if (Ba(r, i)) return !0;
|
|
2604
2604
|
return !1;
|
|
2605
2605
|
}
|
|
2606
2606
|
function Bc(r, e) {
|
|
2607
|
-
for (const i of r) if (!
|
|
2607
|
+
for (const i of r) if (!Ba(i, e)) return !1;
|
|
2608
2608
|
for (let i = 0; i < r.length - 1; ++i) if (hh(r[i], r[i + 1], e)) return !1;
|
|
2609
2609
|
return !0;
|
|
2610
2610
|
}
|
|
@@ -2622,7 +2622,7 @@ function sx() {
|
|
|
2622
2622
|
const u = [];
|
|
2623
2623
|
for (let h = 0; h < r[o].length; h++) {
|
|
2624
2624
|
const f = Fc(r[o][h], i);
|
|
2625
|
-
|
|
2625
|
+
hs(e, f), u.push(f);
|
|
2626
2626
|
}
|
|
2627
2627
|
a.push(u);
|
|
2628
2628
|
}
|
|
@@ -2642,7 +2642,7 @@ function sx() {
|
|
|
2642
2642
|
let u = r[0] - i[0] > o ? -a : i[0] - r[0] > o ? a : 0;
|
|
2643
2643
|
u === 0 && (u = r[0] - i[2] > o ? -a : i[2] - r[0] > o ? a : 0), r[0] += u;
|
|
2644
2644
|
}
|
|
2645
|
-
|
|
2645
|
+
hs(e, r);
|
|
2646
2646
|
}
|
|
2647
2647
|
function Vc(r, e, i, a) {
|
|
2648
2648
|
const o = Math.pow(2, a.z) * Di, u = [a.x * Di, a.y * Di], h = [];
|
|
@@ -2658,7 +2658,7 @@ function sx() {
|
|
|
2658
2658
|
const y = [];
|
|
2659
2659
|
for (const v of g) {
|
|
2660
2660
|
const w = [v.x + u[0], v.y + u[1]];
|
|
2661
|
-
|
|
2661
|
+
hs(e, w), y.push(w);
|
|
2662
2662
|
}
|
|
2663
2663
|
h.push(y);
|
|
2664
2664
|
}
|
|
@@ -2698,7 +2698,7 @@ function sx() {
|
|
|
2698
2698
|
if (a.type === "Polygon") {
|
|
2699
2699
|
const f = ol(a.coordinates, u, h), g = Vc(i.geometry(), o, u, h);
|
|
2700
2700
|
if (!ea(o, u)) return !1;
|
|
2701
|
-
for (const y of g) if (!
|
|
2701
|
+
for (const y of g) if (!Ba(y, f)) return !1;
|
|
2702
2702
|
}
|
|
2703
2703
|
if (a.type === "MultiPolygon") {
|
|
2704
2704
|
const f = ll(a.coordinates, u, h), g = Vc(i.geometry(), o, u, h);
|
|
@@ -2773,14 +2773,14 @@ function sx() {
|
|
|
2773
2773
|
}
|
|
2774
2774
|
const u = r[e];
|
|
2775
2775
|
let h = i, f = a;
|
|
2776
|
-
for (
|
|
2777
|
-
for (
|
|
2776
|
+
for (Oa(r, i, e), o(r[a], u) > 0 && Oa(r, i, a); h < f; ) {
|
|
2777
|
+
for (Oa(r, h, f), h++, f--; o(r[h], u) < 0; ) h++;
|
|
2778
2778
|
for (; o(r[f], u) > 0; ) f--;
|
|
2779
2779
|
}
|
|
2780
|
-
o(r[i], u) === 0 ?
|
|
2780
|
+
o(r[i], u) === 0 ? Oa(r, i, f) : (f++, Oa(r, f, a)), f <= e && (i = f + 1), e <= f && (a = f - 1);
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
|
-
function
|
|
2783
|
+
function Oa(r, e, i) {
|
|
2784
2784
|
const a = r[e];
|
|
2785
2785
|
r[e] = r[i], r[i] = a;
|
|
2786
2786
|
}
|
|
@@ -2806,11 +2806,11 @@ function sx() {
|
|
|
2806
2806
|
for (let i, a, o = 0, u = r.length, h = u - 1; o < u; h = o++) i = r[o], a = r[h], e += (a.x - i.x) * (i.y + a.y);
|
|
2807
2807
|
return e;
|
|
2808
2808
|
}
|
|
2809
|
-
const $c = 1 / 298.257223563,
|
|
2809
|
+
const $c = 1 / 298.257223563, ps = $c * (2 - $c), Zc = Math.PI / 180;
|
|
2810
2810
|
class ul {
|
|
2811
2811
|
constructor(e) {
|
|
2812
|
-
const i = 6378.137 * Zc * 1e3, a = Math.cos(e * Zc), o = 1 / (1 -
|
|
2813
|
-
this.kx = i * u * a, this.ky = i * u * o * (1 -
|
|
2812
|
+
const i = 6378.137 * Zc * 1e3, a = Math.cos(e * Zc), o = 1 / (1 - ps * (1 - a * a)), u = Math.sqrt(o);
|
|
2813
|
+
this.kx = i * u * a, this.ky = i * u * o * (1 - ps);
|
|
2814
2814
|
}
|
|
2815
2815
|
distance(e, i) {
|
|
2816
2816
|
const a = this.wrap(e[0] - i[0]) * this.kx, o = (e[1] - i[1]) * this.ky;
|
|
@@ -2856,12 +2856,12 @@ function sx() {
|
|
|
2856
2856
|
function hl(r, e) {
|
|
2857
2857
|
if (!on(e, r.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2858
2858
|
const i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2859
|
-
for (let a = e[0]; a <= e[1]; ++a)
|
|
2859
|
+
for (let a = e[0]; a <= e[1]; ++a) hs(i, r[a]);
|
|
2860
2860
|
return i;
|
|
2861
2861
|
}
|
|
2862
2862
|
function pl(r) {
|
|
2863
2863
|
const e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2864
|
-
for (const i of r) for (const a of i)
|
|
2864
|
+
for (const i of r) for (const a of i) hs(e, a);
|
|
2865
2865
|
return e;
|
|
2866
2866
|
}
|
|
2867
2867
|
function dl(r) {
|
|
@@ -2900,7 +2900,7 @@ function sx() {
|
|
|
2900
2900
|
return u;
|
|
2901
2901
|
}
|
|
2902
2902
|
function mh(r, e, i) {
|
|
2903
|
-
if (
|
|
2903
|
+
if (Ba(r, e, !0)) return 0;
|
|
2904
2904
|
let a = 1 / 0;
|
|
2905
2905
|
for (const o of e) {
|
|
2906
2906
|
const u = o[0], h = o[o.length - 1];
|
|
@@ -2912,7 +2912,7 @@ function sx() {
|
|
|
2912
2912
|
}
|
|
2913
2913
|
function gh(r, e, i, a) {
|
|
2914
2914
|
if (!on(e, r.length)) return NaN;
|
|
2915
|
-
for (let u = e[0]; u <= e[1]; ++u) if (
|
|
2915
|
+
for (let u = e[0]; u <= e[1]; ++u) if (Ba(r[u], i, !0)) return 0;
|
|
2916
2916
|
let o = 1 / 0;
|
|
2917
2917
|
for (let u = e[0]; u < e[1]; ++u) {
|
|
2918
2918
|
const h = r[u], f = r[u + 1];
|
|
@@ -2925,7 +2925,7 @@ function sx() {
|
|
|
2925
2925
|
return o;
|
|
2926
2926
|
}
|
|
2927
2927
|
function Hc(r, e) {
|
|
2928
|
-
for (const i of r) for (const a of i) if (
|
|
2928
|
+
for (const i of r) for (const a of i) if (Ba(a, e, !0)) return !0;
|
|
2929
2929
|
return !1;
|
|
2930
2930
|
}
|
|
2931
2931
|
function _h(r, e, i, a = 1 / 0) {
|
|
@@ -3026,7 +3026,7 @@ function sx() {
|
|
|
3026
3026
|
evaluate(e) {
|
|
3027
3027
|
if (e.geometry() != null && e.canonicalID() != null) {
|
|
3028
3028
|
if (e.geometryType() === "Point") return (function(i, a) {
|
|
3029
|
-
const o = i.geometry(), u = o.flat().map(((g) =>
|
|
3029
|
+
const o = i.geometry(), u = o.flat().map(((g) => Fa([g.x, g.y], i.canonical)));
|
|
3030
3030
|
if (o.length === 0) return NaN;
|
|
3031
3031
|
const h = new ul(u[0][1]);
|
|
3032
3032
|
let f = 1 / 0;
|
|
@@ -3046,7 +3046,7 @@ function sx() {
|
|
|
3046
3046
|
return f;
|
|
3047
3047
|
})(e, this.geometries);
|
|
3048
3048
|
if (e.geometryType() === "LineString") return (function(i, a) {
|
|
3049
|
-
const o = i.geometry(), u = o.flat().map(((g) =>
|
|
3049
|
+
const o = i.geometry(), u = o.flat().map(((g) => Fa([g.x, g.y], i.canonical)));
|
|
3050
3050
|
if (o.length === 0) return NaN;
|
|
3051
3051
|
const h = new ul(u[0][1]);
|
|
3052
3052
|
let f = 1 / 0;
|
|
@@ -3068,7 +3068,7 @@ function sx() {
|
|
|
3068
3068
|
if (e.geometryType() === "Polygon") return (function(i, a) {
|
|
3069
3069
|
const o = i.geometry();
|
|
3070
3070
|
if (o.length === 0 || o[0].length === 0) return NaN;
|
|
3071
|
-
const u = Ks(o, 0).map(((g) => g.map(((y) => y.map(((v) =>
|
|
3071
|
+
const u = Ks(o, 0).map(((g) => g.map(((y) => y.map(((v) => Fa([v.x, v.y], i.canonical))))))), h = new ul(u[0][0][0][1]);
|
|
3072
3072
|
let f = 1 / 0;
|
|
3073
3073
|
for (const g of a) for (const y of u) {
|
|
3074
3074
|
switch (g.type) {
|
|
@@ -3094,19 +3094,19 @@ function sx() {
|
|
|
3094
3094
|
return !0;
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
|
-
class
|
|
3097
|
+
class ds {
|
|
3098
3098
|
constructor(e) {
|
|
3099
3099
|
this.type = te, this.key = e;
|
|
3100
3100
|
}
|
|
3101
3101
|
static parse(e, i) {
|
|
3102
3102
|
if (e.length !== 2) return i.error(`Expected 1 argument, but found ${e.length - 1} instead.`);
|
|
3103
3103
|
const a = e[1];
|
|
3104
|
-
return a == null ? i.error("Global state property must be defined.") : typeof a != "string" ? i.error(`Global state property must be string, but found ${typeof e[1]} instead.`) : new
|
|
3104
|
+
return a == null ? i.error("Global state property must be defined.") : typeof a != "string" ? i.error(`Global state property must be string, but found ${typeof e[1]} instead.`) : new ds(a);
|
|
3105
3105
|
}
|
|
3106
3106
|
evaluate(e) {
|
|
3107
3107
|
var i;
|
|
3108
3108
|
const a = (i = e.globals) === null || i === void 0 ? void 0 : i.globalState;
|
|
3109
|
-
return a && Object.keys(a).length !== 0 ?
|
|
3109
|
+
return a && Object.keys(a).length !== 0 ? as(a, this.key) : null;
|
|
3110
3110
|
}
|
|
3111
3111
|
eachChild() {
|
|
3112
3112
|
}
|
|
@@ -3114,7 +3114,7 @@ function sx() {
|
|
|
3114
3114
|
return !1;
|
|
3115
3115
|
}
|
|
3116
3116
|
}
|
|
3117
|
-
const
|
|
3117
|
+
const Na = { "==": Rc, "!=": nl, ">": ch, "<": Lc, ">=": Hs, "<=": za, array: Tr, at: yt, boolean: Tr, case: os, coalesce: Qn, collator: ka, format: us, image: Ra, in: lt, "index-of": Ca, interpolate: mr, "interpolate-hcl": mr, "interpolate-lab": mr, length: La, let: Ut, literal: gn, match: wt, number: Tr, "number-format": al, object: Tr, slice: Hr, step: jn, string: Tr, "to-boolean": In, "to-color": In, "to-number": In, "to-string": In, var: Aa, within: ta, distance: ra, "global-state": ds };
|
|
3118
3118
|
class Xr {
|
|
3119
3119
|
constructor(e, i, a, o) {
|
|
3120
3120
|
this.name = e, this.type = i, this._evaluate = a, this.args = o;
|
|
@@ -3176,7 +3176,7 @@ function sx() {
|
|
|
3176
3176
|
}
|
|
3177
3177
|
function Xc(r, [e, i, a, o]) {
|
|
3178
3178
|
e = e.evaluate(r), i = i.evaluate(r), a = a.evaluate(r);
|
|
3179
|
-
const u = o ? o.evaluate(r) : 1, h =
|
|
3179
|
+
const u = o ? o.evaluate(r) : 1, h = Ea(e, i, a, u);
|
|
3180
3180
|
if (h) throw new jt(h);
|
|
3181
3181
|
return new ut(e / 255, i / 255, a / 255, u, !1);
|
|
3182
3182
|
}
|
|
@@ -3191,8 +3191,8 @@ function sx() {
|
|
|
3191
3191
|
return { type: r };
|
|
3192
3192
|
}
|
|
3193
3193
|
function no(r) {
|
|
3194
|
-
if (r instanceof
|
|
3195
|
-
if (r instanceof Xr && r.name === "error" || r instanceof
|
|
3194
|
+
if (r instanceof Aa) return no(r.boundExpression);
|
|
3195
|
+
if (r instanceof Xr && r.name === "error" || r instanceof ka || r instanceof ta || r instanceof ra || r instanceof ds) return !1;
|
|
3196
3196
|
const e = r instanceof In || r instanceof Tr;
|
|
3197
3197
|
let i = !0;
|
|
3198
3198
|
return r.eachChild(((a) => {
|
|
@@ -3206,11 +3206,11 @@ function sx() {
|
|
|
3206
3206
|
e && !ao(i) && (e = !1);
|
|
3207
3207
|
})), e;
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function fs(r) {
|
|
3210
3210
|
if (r instanceof Xr && r.name === "feature-state") return !1;
|
|
3211
3211
|
let e = !0;
|
|
3212
3212
|
return r.eachChild(((i) => {
|
|
3213
|
-
e && !
|
|
3213
|
+
e && !fs(i) && (e = !1);
|
|
3214
3214
|
})), e;
|
|
3215
3215
|
}
|
|
3216
3216
|
function so(r, e) {
|
|
@@ -3223,10 +3223,10 @@ function sx() {
|
|
|
3223
3223
|
function Kc(r) {
|
|
3224
3224
|
return { result: "success", value: r };
|
|
3225
3225
|
}
|
|
3226
|
-
function
|
|
3226
|
+
function Va(r) {
|
|
3227
3227
|
return { result: "error", value: r };
|
|
3228
3228
|
}
|
|
3229
|
-
function
|
|
3229
|
+
function ja(r) {
|
|
3230
3230
|
return r["property-type"] === "data-driven" || r["property-type"] === "cross-faded-data-driven";
|
|
3231
3231
|
}
|
|
3232
3232
|
function Jc(r) {
|
|
@@ -3298,30 +3298,30 @@ function sx() {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
return { kind: "source", evaluate(v, w) {
|
|
3300
3300
|
const S = w && w.properties ? w.properties[r.property] : void 0;
|
|
3301
|
-
return S === void 0 ?
|
|
3301
|
+
return S === void 0 ? ms(r.default, e.default) : f(r, e, S, g, y);
|
|
3302
3302
|
} };
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3304
|
+
function ms(r, e, i) {
|
|
3305
3305
|
return r !== void 0 ? r : e !== void 0 ? e : i !== void 0 ? i : void 0;
|
|
3306
3306
|
}
|
|
3307
3307
|
function xh(r, e, i, a, o) {
|
|
3308
|
-
return
|
|
3308
|
+
return ms(typeof i === o ? a[i] : void 0, r.default, e.default);
|
|
3309
3309
|
}
|
|
3310
3310
|
function vh(r, e, i) {
|
|
3311
|
-
if (ft(i) !== "number") return
|
|
3311
|
+
if (ft(i) !== "number") return ms(r.default, e.default);
|
|
3312
3312
|
const a = r.stops.length;
|
|
3313
3313
|
if (a === 1 || i <= r.stops[0][0]) return r.stops[0][1];
|
|
3314
3314
|
if (i >= r.stops[a - 1][0]) return r.stops[a - 1][1];
|
|
3315
|
-
const o =
|
|
3315
|
+
const o = Da(r.stops.map(((u) => u[0])), i);
|
|
3316
3316
|
return r.stops[o][1];
|
|
3317
3317
|
}
|
|
3318
3318
|
function eu(r, e, i) {
|
|
3319
3319
|
const a = r.base !== void 0 ? r.base : 1;
|
|
3320
|
-
if (ft(i) !== "number") return
|
|
3320
|
+
if (ft(i) !== "number") return ms(r.default, e.default);
|
|
3321
3321
|
const o = r.stops.length;
|
|
3322
3322
|
if (o === 1 || i <= r.stops[0][0]) return r.stops[0][1];
|
|
3323
3323
|
if (i >= r.stops[o - 1][0]) return r.stops[o - 1][1];
|
|
3324
|
-
const u =
|
|
3324
|
+
const u = Da(r.stops.map(((v) => v[0])), i), h = (function(v, w, S, P) {
|
|
3325
3325
|
const A = P - S, C = v - S;
|
|
3326
3326
|
return A === 0 ? 0 : w === 1 ? C / A : (Math.pow(w, C) - 1) / (Math.pow(w, A) - 1);
|
|
3327
3327
|
})(i, a, r.stops[u][0], r.stops[u + 1][0]), f = r.stops[u][1], g = r.stops[u + 1][1], y = Jt[e.type] || yh;
|
|
@@ -3353,9 +3353,9 @@ function sx() {
|
|
|
3353
3353
|
default:
|
|
3354
3354
|
ft(i) === e.type || e.type === "enum" && e.values[i] || (i = void 0);
|
|
3355
3355
|
}
|
|
3356
|
-
return
|
|
3356
|
+
return ms(i, r.default, e.default);
|
|
3357
3357
|
}
|
|
3358
|
-
Xr.register(
|
|
3358
|
+
Xr.register(Na, { error: [{ kind: "error" }, [at], (r, [e]) => {
|
|
3359
3359
|
throw new jt(e.evaluate(r));
|
|
3360
3360
|
}], typeof: [at, [te], (r, [e]) => Pt(_i(e.evaluate(r)))], "to-rgba": [mi(Fe, 4), [rr], (r, [e]) => {
|
|
3361
3361
|
const [i, a, o, u] = e.evaluate(r).rgb;
|
|
@@ -3449,19 +3449,19 @@ function sx() {
|
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
3451
|
}
|
|
3452
|
-
function
|
|
3453
|
-
return Array.isArray(r) && r.length > 0 && typeof r[0] == "string" && r[0] in
|
|
3452
|
+
function Ua(r) {
|
|
3453
|
+
return Array.isArray(r) && r.length > 0 && typeof r[0] == "string" && r[0] in Na;
|
|
3454
3454
|
}
|
|
3455
3455
|
function lo(r, e, i) {
|
|
3456
|
-
const a = new Jn(
|
|
3457
|
-
const h = { color: rr, string: at, number: Fe, enum: at, boolean: st, formatted: We, padding: Vt, numberArray: Wt, colorArray: oi, projectionDefinition:
|
|
3456
|
+
const a = new Jn(Na, no, [], e ? (function(u) {
|
|
3457
|
+
const h = { color: rr, string: at, number: Fe, enum: at, boolean: st, formatted: We, padding: Vt, numberArray: Wt, colorArray: oi, projectionDefinition: Pa, resolvedImage: Mi, variableAnchorOffsetCollection: pr };
|
|
3458
3458
|
return u.type === "array" ? mi(h[u.value] || te, u.length) : h[u.type];
|
|
3459
3459
|
})(e) : void 0), o = a.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
|
3460
|
-
return o ? Kc(new yl(o, e, i)) :
|
|
3460
|
+
return o ? Kc(new yl(o, e, i)) : Va(a.errors);
|
|
3461
3461
|
}
|
|
3462
3462
|
class co {
|
|
3463
3463
|
constructor(e, i, a) {
|
|
3464
|
-
this.kind = e, this._styleExpression = i, this.isStateDependent = e !== "constant" && !
|
|
3464
|
+
this.kind = e, this._styleExpression = i, this.isStateDependent = e !== "constant" && !fs(i.expression), this.globalStateRefs = aa(i.expression), this._globalState = a;
|
|
3465
3465
|
}
|
|
3466
3466
|
evaluateWithoutErrorHandling(e, i, a, o, u, h) {
|
|
3467
3467
|
return this._globalState && (e = sa(e, this._globalState)), this._styleExpression.evaluateWithoutErrorHandling(e, i, a, o, u, h);
|
|
@@ -3472,7 +3472,7 @@ function sx() {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
class xl {
|
|
3474
3474
|
constructor(e, i, a, o, u) {
|
|
3475
|
-
this.kind = e, this.zoomStops = a, this._styleExpression = i, this.isStateDependent = e !== "camera" && !
|
|
3475
|
+
this.kind = e, this.zoomStops = a, this._styleExpression = i, this.isStateDependent = e !== "camera" && !fs(i.expression), this.globalStateRefs = aa(i.expression), this.interpolationType = o, this._globalState = u;
|
|
3476
3476
|
}
|
|
3477
3477
|
evaluateWithoutErrorHandling(e, i, a, o, u, h) {
|
|
3478
3478
|
return this._globalState && (e = sa(e, this._globalState)), this._styleExpression.evaluateWithoutErrorHandling(e, i, a, o, u, h);
|
|
@@ -3488,11 +3488,11 @@ function sx() {
|
|
|
3488
3488
|
const a = lo(r, e, i);
|
|
3489
3489
|
if (a.result === "error") return a;
|
|
3490
3490
|
const o = a.value.expression, u = ao(o);
|
|
3491
|
-
if (!u && !
|
|
3491
|
+
if (!u && !ja(e)) return Va([new Bi("", "data expressions not supported")]);
|
|
3492
3492
|
const h = so(o, ["zoom"]);
|
|
3493
|
-
if (!h && !Jc(e)) return
|
|
3493
|
+
if (!h && !Jc(e)) return Va([new Bi("", "zoom expressions not supported")]);
|
|
3494
3494
|
const f = ho(o);
|
|
3495
|
-
return f || h ? f instanceof Bi ?
|
|
3495
|
+
return f || h ? f instanceof Bi ? Va([f]) : f instanceof mr && !_l(e) ? Va([new Bi("", '"interpolate" expressions cannot be used with this property')]) : Kc(f ? new xl(u ? "camera" : "composite", a.value, f.labels, f instanceof mr ? f.interpolation : void 0, i) : new co(u ? "constant" : "source", a.value, i)) : Va([new Bi("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
|
3496
3496
|
}
|
|
3497
3497
|
class uo {
|
|
3498
3498
|
constructor(e, i) {
|
|
@@ -3517,7 +3517,7 @@ function sx() {
|
|
|
3517
3517
|
})), e;
|
|
3518
3518
|
}
|
|
3519
3519
|
function aa(r, e = /* @__PURE__ */ new Set()) {
|
|
3520
|
-
return r instanceof
|
|
3520
|
+
return r instanceof ds && e.add(r.key), r.eachChild(((i) => {
|
|
3521
3521
|
aa(i, e);
|
|
3522
3522
|
})), e;
|
|
3523
3523
|
}
|
|
@@ -3553,9 +3553,9 @@ function sx() {
|
|
|
3553
3553
|
}
|
|
3554
3554
|
}
|
|
3555
3555
|
const wh = { type: "boolean", default: !1, transition: !1, "property-type": "data-driven", expression: { interpolated: !1, parameters: ["zoom", "feature"] } };
|
|
3556
|
-
function
|
|
3556
|
+
function gs(r, e) {
|
|
3557
3557
|
if (r == null) return { filter: () => !0, needGeometry: !1, getGlobalStateRefs: () => /* @__PURE__ */ new Set() };
|
|
3558
|
-
bl(r) || (r =
|
|
3558
|
+
bl(r) || (r = _s(r));
|
|
3559
3559
|
const i = lo(r, wh, e);
|
|
3560
3560
|
if (i.result === "error") throw new Error(i.value.map(((a) => `${a.key}: ${a.message}`)).join(", "));
|
|
3561
3561
|
return { filter: (a, o, u) => i.value.evaluate(a, o, {}, u), needGeometry: tu(r), getGlobalStateRefs: () => aa(i.value.expression) };
|
|
@@ -3569,10 +3569,10 @@ function sx() {
|
|
|
3569
3569
|
for (let e = 1; e < r.length; e++) if (tu(r[e])) return !0;
|
|
3570
3570
|
return !1;
|
|
3571
3571
|
}
|
|
3572
|
-
function
|
|
3572
|
+
function _s(r) {
|
|
3573
3573
|
if (!r) return !0;
|
|
3574
3574
|
const e = r[0];
|
|
3575
|
-
return r.length <= 1 ? e !== "any" : e === "==" ? po(r[1], r[2], "==") : e === "!=" ?
|
|
3575
|
+
return r.length <= 1 ? e !== "any" : e === "==" ? po(r[1], r[2], "==") : e === "!=" ? ys(po(r[1], r[2], "==")) : e === "<" || e === ">" || e === "<=" || e === ">=" ? po(r[1], r[2], e) : e === "any" ? (i = r.slice(1), ["any"].concat(i.map(_s))) : e === "all" ? ["all"].concat(r.slice(1).map(_s)) : e === "none" ? ["all"].concat(r.slice(1).map(_s).map(ys)) : e === "in" ? iu(r[1], r.slice(2)) : e === "!in" ? ys(iu(r[1], r.slice(2))) : e === "has" ? ru(r[1]) : e !== "!has" || ys(ru(r[1]));
|
|
3576
3576
|
var i;
|
|
3577
3577
|
}
|
|
3578
3578
|
function po(r, e, i) {
|
|
@@ -3606,7 +3606,7 @@ function sx() {
|
|
|
3606
3606
|
return ["filter-has", r];
|
|
3607
3607
|
}
|
|
3608
3608
|
}
|
|
3609
|
-
function
|
|
3609
|
+
function ys(r) {
|
|
3610
3610
|
return ["!", r];
|
|
3611
3611
|
}
|
|
3612
3612
|
function fo(r) {
|
|
@@ -3649,10 +3649,10 @@ function sx() {
|
|
|
3649
3649
|
const y = ft(i);
|
|
3650
3650
|
if (y !== "object") return [new De(e, i, `object expected, ${y} found`)];
|
|
3651
3651
|
for (const v in i) {
|
|
3652
|
-
const w = v.split(".")[0], S =
|
|
3652
|
+
const w = v.split(".")[0], S = as(a, w) || a["*"];
|
|
3653
3653
|
let P;
|
|
3654
|
-
if (
|
|
3655
|
-
else if (
|
|
3654
|
+
if (as(o, w)) P = o[w];
|
|
3655
|
+
else if (as(a, w)) P = f;
|
|
3656
3656
|
else if (o["*"]) P = o["*"];
|
|
3657
3657
|
else {
|
|
3658
3658
|
if (!a["*"]) {
|
|
@@ -3677,7 +3677,7 @@ function sx() {
|
|
|
3677
3677
|
for (let y = 0; y < e.length; y++) g = g.concat(h({ array: e, arrayIndex: y, value: e[y], valueSpec: f, validateSpec: r.validateSpec, style: a, styleSpec: o, key: `${u}[${y}]` }));
|
|
3678
3678
|
return g;
|
|
3679
3679
|
}
|
|
3680
|
-
function
|
|
3680
|
+
function xs(r) {
|
|
3681
3681
|
const e = r.key, i = r.value, a = r.valueSpec;
|
|
3682
3682
|
let o = ft(i);
|
|
3683
3683
|
return o === "number" && i != i && (o = "NaN"), o !== "number" ? [new De(e, i, `number expected, ${o} found`)] : "minimum" in a && i < a.minimum ? [new De(e, i, `${i} is less than the minimum value ${a.minimum}`)] : "maximum" in a && i > a.maximum ? [new De(e, i, `${i} is greater than the maximum value ${a.maximum}`)] : [];
|
|
@@ -3693,7 +3693,7 @@ function sx() {
|
|
|
3693
3693
|
}, default: function(P) {
|
|
3694
3694
|
return P.validateSpec({ key: P.key, value: P.value, valueSpec: e, validateSpec: P.validateSpec, style: P.style, styleSpec: P.styleSpec });
|
|
3695
3695
|
} } });
|
|
3696
|
-
return i === "identity" && f && v.push(new De(r.key, r.value, 'missing required property "property"')), i === "identity" || r.value.stops || v.push(new De(r.key, r.value, 'missing required property "stops"')), i === "exponential" && r.valueSpec.expression && !_l(r.valueSpec) && v.push(new De(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (g && !
|
|
3696
|
+
return i === "identity" && f && v.push(new De(r.key, r.value, 'missing required property "property"')), i === "identity" || r.value.stops || v.push(new De(r.key, r.value, 'missing required property "stops"')), i === "exponential" && r.valueSpec.expression && !_l(r.valueSpec) && v.push(new De(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (g && !ja(r.valueSpec) ? v.push(new De(r.key, r.value, "property functions not supported")) : f && !Jc(r.valueSpec) && v.push(new De(r.key, r.value, "zoom functions not supported"))), i !== "categorical" && !y || r.value.property !== void 0 || v.push(new De(r.key, r.value, '"property" property is required')), v;
|
|
3697
3697
|
function w(P) {
|
|
3698
3698
|
let A = [];
|
|
3699
3699
|
const C = P.value, z = P.key;
|
|
@@ -3704,9 +3704,9 @@ function sx() {
|
|
|
3704
3704
|
if (C[0].zoom === void 0) return [new De(z, C, "object stop key must have zoom")];
|
|
3705
3705
|
if (C[0].value === void 0) return [new De(z, C, "object stop key must have value")];
|
|
3706
3706
|
if (u && u > yi(C[0].zoom)) return [new De(z, C[0].zoom, "stop zoom values must appear in ascending order")];
|
|
3707
|
-
yi(C[0].zoom) !== u && (u = yi(C[0].zoom), o = void 0, h = {}), A = A.concat(Yr({ key: `${z}[0]`, value: C[0], valueSpec: { zoom: {} }, validateSpec: P.validateSpec, style: P.style, styleSpec: P.styleSpec, objectElementValidators: { zoom:
|
|
3707
|
+
yi(C[0].zoom) !== u && (u = yi(C[0].zoom), o = void 0, h = {}), A = A.concat(Yr({ key: `${z}[0]`, value: C[0], valueSpec: { zoom: {} }, validateSpec: P.validateSpec, style: P.style, styleSpec: P.styleSpec, objectElementValidators: { zoom: xs, value: S } }));
|
|
3708
3708
|
} else A = A.concat(S({ key: `${z}[0]`, value: C[0], validateSpec: P.validateSpec, style: P.style, styleSpec: P.styleSpec }, C));
|
|
3709
|
-
return
|
|
3709
|
+
return Ua(oa(C[1])) ? A.concat([new De(`${z}[1]`, C[1], "expressions are not allowed in function stops.")]) : A.concat(P.validateSpec({ key: `${z}[1]`, value: C[1], valueSpec: e, validateSpec: P.validateSpec, style: P.style, styleSpec: P.styleSpec }));
|
|
3710
3710
|
}
|
|
3711
3711
|
function S(P, A) {
|
|
3712
3712
|
const C = ft(P.value), z = yi(P.value), B = P.value !== null ? P.value : A;
|
|
@@ -3716,7 +3716,7 @@ function sx() {
|
|
|
3716
3716
|
if (C !== "number" && C !== "string" && C !== "boolean") return [new De(P.key, B, "stop domain value must be a number, string, or boolean")];
|
|
3717
3717
|
if (C !== "number" && i !== "categorical") {
|
|
3718
3718
|
let q = `number expected, ${C} found`;
|
|
3719
|
-
return
|
|
3719
|
+
return ja(e) && i === void 0 && (q += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new De(P.key, B, q)];
|
|
3720
3720
|
}
|
|
3721
3721
|
return i !== "categorical" || C !== "number" || isFinite(z) && Math.floor(z) === z ? i !== "categorical" && C === "number" && o !== void 0 && z < o ? [new De(P.key, B, "stop domain values must appear in ascending order")] : (o = z, i === "categorical" && z in h ? [new De(P.key, B, "stop domain values must be unique")] : (h[z] = !0, [])) : [new De(P.key, B, `integer expected, found ${z}`)];
|
|
3722
3722
|
}
|
|
@@ -3726,15 +3726,15 @@ function sx() {
|
|
|
3726
3726
|
if (e.result === "error") return e.value.map(((a) => new De(`${r.key}${a.key}`, r.value, a.message)));
|
|
3727
3727
|
const i = e.value.expression || e.value._styleExpression.expression;
|
|
3728
3728
|
if (r.expressionContext === "property" && r.propertyKey === "text-font" && !i.outputDefined()) return [new De(r.key, r.value, `Invalid data expression for "${r.propertyKey}". Output values must be contained as literals within the expression.`)];
|
|
3729
|
-
if (r.expressionContext === "property" && r.propertyType === "layout" && !
|
|
3730
|
-
if (r.expressionContext === "filter" && !
|
|
3729
|
+
if (r.expressionContext === "property" && r.propertyType === "layout" && !fs(i)) return [new De(r.key, r.value, '"feature-state" data expressions are not supported with layout properties.')];
|
|
3730
|
+
if (r.expressionContext === "filter" && !fs(i)) return [new De(r.key, r.value, '"feature-state" data expressions are not supported with filters.')];
|
|
3731
3731
|
if (r.expressionContext && r.expressionContext.indexOf("cluster") === 0) {
|
|
3732
3732
|
if (!so(i, ["zoom", "feature-state"])) return [new De(r.key, r.value, '"zoom" and "feature-state" expressions are not supported with cluster properties.')];
|
|
3733
3733
|
if (r.expressionContext === "cluster-initial" && !ao(i)) return [new De(r.key, r.value, "Feature data expressions are not supported with initial expression part of cluster properties.")];
|
|
3734
3734
|
}
|
|
3735
3735
|
return [];
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function vs(r) {
|
|
3738
3738
|
const e = r.key, i = r.value, a = ft(i);
|
|
3739
3739
|
return a !== "string" ? [new De(e, i, `color expected, ${a} found`)] : ut.parse(String(i)) ? [] : [new De(e, i, `color expected, "${i}" found`)];
|
|
3740
3740
|
}
|
|
@@ -3742,7 +3742,7 @@ function sx() {
|
|
|
3742
3742
|
const e = r.key, i = r.value, a = r.valueSpec, o = [];
|
|
3743
3743
|
return Array.isArray(a.values) ? a.values.indexOf(yi(i)) === -1 && o.push(new De(e, i, `expected one of [${a.values.join(", ")}], ${JSON.stringify(i)} found`)) : Object.keys(a.values).indexOf(yi(i)) === -1 && o.push(new De(e, i, `expected one of [${Object.keys(a.values).join(", ")}], ${JSON.stringify(i)} found`)), o;
|
|
3744
3744
|
}
|
|
3745
|
-
function
|
|
3745
|
+
function Ga(r) {
|
|
3746
3746
|
return bl(oa(r.value)) ? Un(Vi({}, r, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : su(r);
|
|
3747
3747
|
}
|
|
3748
3748
|
function su(r) {
|
|
@@ -3784,7 +3784,7 @@ function sx() {
|
|
|
3784
3784
|
const v = r.valueSpec || g[f];
|
|
3785
3785
|
if (!v) return [new De(i, h, `unknown property "${f}"`)];
|
|
3786
3786
|
let w;
|
|
3787
|
-
if (ft(h) === "string" &&
|
|
3787
|
+
if (ft(h) === "string" && ja(v) && !v.tokens && (w = /^{([^}]+)}$/.exec(h))) return [new De(i, h, `"${f}" does not support interpolation syntax
|
|
3788
3788
|
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(w[1])} }\`.`)];
|
|
3789
3789
|
const S = [];
|
|
3790
3790
|
return r.layerType === "symbol" && f === "text-font" && oo(oa(h)) && yi(h.type) === "identity" && S.push(new De(i, h, '"text-font" does not support identity functions')), S.concat(a({ key: r.key, value: h, valueSpec: v, style: o, styleSpec: u, expressionContext: "property", propertyType: e, propertyKey: f }));
|
|
@@ -3820,7 +3820,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
3820
3820
|
const g = o.sources && o.sources[i.source], y = g && yi(g.type);
|
|
3821
3821
|
g ? y === "vector" && h === "raster" ? e.push(new De(a, i.source, `layer "${i.id}" requires a raster source`)) : y !== "raster-dem" && h === "hillshade" || y !== "raster-dem" && h === "color-relief" ? e.push(new De(a, i.source, `layer "${i.id}" requires a raster-dem source`)) : y === "raster" && h !== "raster" ? e.push(new De(a, i.source, `layer "${i.id}" requires a vector source`)) : y !== "vector" || i["source-layer"] ? y === "raster-dem" && h !== "hillshade" && h !== "color-relief" ? e.push(new De(a, i.source, "raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")) : h !== "line" || !i.paint || !i.paint["line-gradient"] || y === "geojson" && g.lineMetrics || e.push(new De(a, i, `layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new De(a, i, `layer "${i.id}" must specify a "source-layer"`)) : e.push(new De(a, i.source, `source "${i.source}" not found`));
|
|
3822
3822
|
} else e.push(new De(a, i, 'missing required property "source"'));
|
|
3823
|
-
return e = e.concat(Yr({ key: a, value: i, valueSpec: u.layer, style: r.style, styleSpec: r.styleSpec, validateSpec: r.validateSpec, objectElementValidators: { "*": () => [], type: () => r.validateSpec({ key: `${a}.type`, value: i.type, valueSpec: u.layer.type, style: r.style, styleSpec: r.styleSpec, validateSpec: r.validateSpec, object: i, objectKey: "type" }), filter:
|
|
3823
|
+
return e = e.concat(Yr({ key: a, value: i, valueSpec: u.layer, style: r.style, styleSpec: r.styleSpec, validateSpec: r.validateSpec, objectElementValidators: { "*": () => [], type: () => r.validateSpec({ key: `${a}.type`, value: i.type, valueSpec: u.layer.type, style: r.style, styleSpec: r.styleSpec, validateSpec: r.validateSpec, object: i, objectKey: "type" }), filter: Ga, layout: (g) => Yr({ layer: i, key: g.key, value: g.value, style: g.style, styleSpec: g.styleSpec, validateSpec: g.validateSpec, objectElementValidators: { "*": (y) => cu(Vi({ layerType: h }, y)) } }), paint: (g) => Yr({ layer: i, key: g.key, value: g.value, style: g.style, styleSpec: g.styleSpec, validateSpec: g.validateSpec, objectElementValidators: { "*": (y) => lu(Vi({ layerType: h }, y)) } }) } })), e;
|
|
3824
3824
|
}
|
|
3825
3825
|
function ca(r) {
|
|
3826
3826
|
const e = r.value, i = r.key, a = ft(e);
|
|
@@ -3871,7 +3871,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
3871
3871
|
return la({ key: `${i}.type`, value: e.type, valueSpec: { values: ["vector", "raster", "raster-dem", "geojson", "video", "image"] } });
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
|
-
function
|
|
3874
|
+
function bs(r) {
|
|
3875
3875
|
const e = r.value, i = r.styleSpec, a = i.light, o = r.style;
|
|
3876
3876
|
let u = [];
|
|
3877
3877
|
const h = ft(e);
|
|
@@ -3917,7 +3917,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
3917
3917
|
const Il = { "*": () => [], array: mo, boolean: function(r) {
|
|
3918
3918
|
const e = r.value, i = r.key, a = ft(e);
|
|
3919
3919
|
return a !== "boolean" ? [new De(i, e, `boolean expected, ${a} found`)] : [];
|
|
3920
|
-
}, number:
|
|
3920
|
+
}, number: xs, color: vs, constants: au, enum: la, filter: Ga, function: go, layer: uu, object: Yr, source: Tl, light: bs, sky: hu, terrain: Sl, projection: function(r) {
|
|
3921
3921
|
const e = r.value, i = r.styleSpec, a = i.projection, o = r.style, u = ft(e);
|
|
3922
3922
|
if (e === void 0) return [];
|
|
3923
3923
|
if (u !== "object") return [new De("projection", e, `object expected, ${u} found`)];
|
|
@@ -3947,7 +3947,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
3947
3947
|
for (let u = 0; u < i.length; u++) o = o.concat(r.validateSpec({ key: `${e}[${u}]`, value: i[u], validateSpec: r.validateSpec, valueSpec: a }));
|
|
3948
3948
|
return o;
|
|
3949
3949
|
}
|
|
3950
|
-
return
|
|
3950
|
+
return xs({ key: e, value: i, valueSpec: {} });
|
|
3951
3951
|
}, numberArray: function(r) {
|
|
3952
3952
|
const e = r.key, i = r.value;
|
|
3953
3953
|
if (ft(i) === "array") {
|
|
@@ -3957,16 +3957,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
3957
3957
|
for (let u = 0; u < i.length; u++) o = o.concat(r.validateSpec({ key: `${e}[${u}]`, value: i[u], validateSpec: r.validateSpec, valueSpec: a }));
|
|
3958
3958
|
return o;
|
|
3959
3959
|
}
|
|
3960
|
-
return
|
|
3960
|
+
return xs({ key: e, value: i, valueSpec: {} });
|
|
3961
3961
|
}, colorArray: function(r) {
|
|
3962
3962
|
const e = r.key, i = r.value;
|
|
3963
3963
|
if (ft(i) === "array") {
|
|
3964
3964
|
if (i.length < 1) return [new De(e, i, "array length at least 1 expected, length 0 found")];
|
|
3965
3965
|
let a = [];
|
|
3966
|
-
for (let o = 0; o < i.length; o++) a = a.concat(
|
|
3966
|
+
for (let o = 0; o < i.length; o++) a = a.concat(vs({ key: `${e}[${o}]`, value: i[o] }));
|
|
3967
3967
|
return a;
|
|
3968
3968
|
}
|
|
3969
|
-
return
|
|
3969
|
+
return vs({ key: e, value: i });
|
|
3970
3970
|
}, variableAnchorOffsetCollection: function(r) {
|
|
3971
3971
|
const e = r.key, i = r.value, a = ft(i), o = r.styleSpec;
|
|
3972
3972
|
if (a !== "array" || i.length < 1 || i.length % 2 != 0) return [new De(e, i, "variableAnchorOffsetCollection requires a non-empty array of even length")];
|
|
@@ -3974,21 +3974,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
3974
3974
|
for (let h = 0; h < i.length; h += 2) u = u.concat(la({ key: `${e}[${h}]`, value: i[h], valueSpec: o.layout_symbol["text-anchor"] })), u = u.concat(mo({ key: `${e}[${h + 1}]`, value: i[h + 1], valueSpec: { length: 2, value: "number" }, validateSpec: r.validateSpec, style: r.style, styleSpec: o }));
|
|
3975
3975
|
return u;
|
|
3976
3976
|
}, sprite: Pl, state: pu };
|
|
3977
|
-
function
|
|
3977
|
+
function ws(r) {
|
|
3978
3978
|
const e = r.value, i = r.valueSpec, a = r.styleSpec;
|
|
3979
|
-
return r.validateSpec =
|
|
3979
|
+
return r.validateSpec = ws, i.expression && oo(yi(e)) ? go(r) : i.expression && Ua(oa(e)) ? Un(r) : i.type && Il[i.type] ? Il[i.type](r) : Yr(Vi({}, r, { valueSpec: i.type ? a[i.type] : i }));
|
|
3980
3980
|
}
|
|
3981
|
-
function
|
|
3981
|
+
function $a(r) {
|
|
3982
3982
|
const e = r.value, i = r.key, a = ca(r);
|
|
3983
3983
|
return a.length || (e.indexOf("{fontstack}") === -1 && a.push(new De(i, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && a.push(new De(i, e, '"glyphs" url must include a "{range}" token'))), a;
|
|
3984
3984
|
}
|
|
3985
3985
|
function Kr(r, e = de) {
|
|
3986
3986
|
let i = [];
|
|
3987
|
-
return i = i.concat(
|
|
3987
|
+
return i = i.concat(ws({ key: "", value: r, valueSpec: e.$root, styleSpec: e, style: r, validateSpec: ws, objectElementValidators: { glyphs: $a, "*": () => [] } })), r.constants && (i = i.concat(au({ key: "constants", value: r.constants }))), du(i);
|
|
3988
3988
|
}
|
|
3989
3989
|
function ln(r) {
|
|
3990
3990
|
return function(e) {
|
|
3991
|
-
return r(Object.assign({}, e, { validateSpec:
|
|
3991
|
+
return r(Object.assign({}, e, { validateSpec: ws }));
|
|
3992
3992
|
};
|
|
3993
3993
|
}
|
|
3994
3994
|
function du(r) {
|
|
@@ -3999,14 +3999,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
3999
3999
|
return du(r.apply(this, e));
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
4002
|
-
Kr.source = cn(ln(Tl)), Kr.sprite = cn(ln(Pl)), Kr.glyphs = cn(ln(
|
|
4003
|
-
const Sh = de,
|
|
4002
|
+
Kr.source = cn(ln(Tl)), Kr.sprite = cn(ln(Pl)), Kr.glyphs = cn(ln($a)), Kr.light = cn(ln(bs)), Kr.sky = cn(ln(hu)), Kr.terrain = cn(ln(Sl)), Kr.state = cn(ln(pu)), Kr.layer = cn(ln(uu)), Kr.filter = cn(ln(Ga)), Kr.paintProperty = cn(ln(lu)), Kr.layoutProperty = cn(ln(cu));
|
|
4003
|
+
const Sh = de, Za = Kr, Ts = Za.light, Ss = Za.sky, Fr = Za.paintProperty, Ps = Za.layoutProperty;
|
|
4004
4004
|
function Ml(r, e) {
|
|
4005
4005
|
let i = !1;
|
|
4006
4006
|
if (e && e.length) for (const a of e) r.fire(new Ct(new Error(a.message))), i = !0;
|
|
4007
4007
|
return i;
|
|
4008
4008
|
}
|
|
4009
|
-
class
|
|
4009
|
+
class Is {
|
|
4010
4010
|
constructor(e, i, a) {
|
|
4011
4011
|
const o = this.cells = [];
|
|
4012
4012
|
if (e instanceof ArrayBuffer) {
|
|
@@ -4090,7 +4090,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4090
4090
|
return i && i.push(a), { buffer: a };
|
|
4091
4091
|
}
|
|
4092
4092
|
static deserialize(e) {
|
|
4093
|
-
return new
|
|
4093
|
+
return new Is(e.buffer);
|
|
4094
4094
|
}
|
|
4095
4095
|
}
|
|
4096
4096
|
const Mn = {};
|
|
@@ -4098,18 +4098,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4098
4098
|
if (Mn[r]) throw new Error(`${r} is already registered.`);
|
|
4099
4099
|
Object.defineProperty(e, "_classRegistryKey", { value: r, writeable: !1 }), Mn[r] = { klass: e, omit: i.omit || [], shallow: i.shallow || [] };
|
|
4100
4100
|
}
|
|
4101
|
-
Ne("Object", Object), Ne("Set", Set), Ne("TransferableGridIndex",
|
|
4102
|
-
for (const r in
|
|
4101
|
+
Ne("Object", Object), Ne("Set", Set), Ne("TransferableGridIndex", Is), Ne("Color", ut), Ne("Error", Error), Ne("AJAXError", ae), Ne("ResolvedImage", Lr), Ne("StylePropertyFunction", uo), Ne("StyleExpression", yl, { omit: ["_evaluator"] }), Ne("ZoomDependentExpression", xl), Ne("ZoomConstantExpression", co), Ne("CompoundExpression", Xr, { omit: ["_evaluate"] });
|
|
4102
|
+
for (const r in Na) Na[r]._classRegistryKey || Ne(`Expression_${r}`, Na[r]);
|
|
4103
4103
|
function El(r) {
|
|
4104
4104
|
return r && typeof ArrayBuffer < "u" && (r instanceof ArrayBuffer || r.constructor && r.constructor.name === "ArrayBuffer");
|
|
4105
4105
|
}
|
|
4106
|
-
function
|
|
4106
|
+
function Ms(r) {
|
|
4107
4107
|
return r.$name || r.constructor._classRegistryKey;
|
|
4108
4108
|
}
|
|
4109
4109
|
function fu(r) {
|
|
4110
4110
|
return !(function(e) {
|
|
4111
4111
|
if (e === null || typeof e != "object") return !1;
|
|
4112
|
-
const i =
|
|
4112
|
+
const i = Ms(e);
|
|
4113
4113
|
return !(!i || i === "Object");
|
|
4114
4114
|
})(r) && (r == null || typeof r == "boolean" || typeof r == "number" || typeof r == "string" || r instanceof Boolean || r instanceof Number || r instanceof String || r instanceof Date || r instanceof RegExp || r instanceof Blob || r instanceof Error || El(r) || zr(r) || ArrayBuffer.isView(r) || r instanceof ImageData);
|
|
4115
4115
|
}
|
|
@@ -4121,7 +4121,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4121
4121
|
return u;
|
|
4122
4122
|
}
|
|
4123
4123
|
if (typeof r != "object") throw new Error("can't serialize object of type " + typeof r);
|
|
4124
|
-
const i =
|
|
4124
|
+
const i = Ms(r);
|
|
4125
4125
|
if (!i) throw new Error(`can't serialize object of unregistered class ${r.constructor.name}`);
|
|
4126
4126
|
if (!Mn[i]) throw new Error(`${i} is not registered.`);
|
|
4127
4127
|
const { klass: a } = Mn[i], o = a.serialize ? a.serialize(r, e) : {};
|
|
@@ -4138,11 +4138,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4138
4138
|
if (o.$name) throw new Error("$name property is reserved for worker serialization logic.");
|
|
4139
4139
|
return i !== "Object" && (o.$name = i), o;
|
|
4140
4140
|
}
|
|
4141
|
-
function
|
|
4141
|
+
function Es(r) {
|
|
4142
4142
|
if (fu(r)) return r;
|
|
4143
|
-
if (Array.isArray(r)) return r.map(
|
|
4143
|
+
if (Array.isArray(r)) return r.map(Es);
|
|
4144
4144
|
if (typeof r != "object") throw new Error("can't deserialize object of type " + typeof r);
|
|
4145
|
-
const e =
|
|
4145
|
+
const e = Ms(r) || "Object";
|
|
4146
4146
|
if (!Mn[e]) throw new Error(`can't deserialize unregistered class ${e}`);
|
|
4147
4147
|
const { klass: i } = Mn[e];
|
|
4148
4148
|
if (!i) throw new Error(`can't deserialize unregistered class ${e}`);
|
|
@@ -4151,7 +4151,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4151
4151
|
for (const o of Object.keys(r)) {
|
|
4152
4152
|
if (o === "$name") continue;
|
|
4153
4153
|
const u = r[o];
|
|
4154
|
-
a[o] = Mn[e].shallow.indexOf(o) >= 0 ? u :
|
|
4154
|
+
a[o] = Mn[e].shallow.indexOf(o) >= 0 ? u : Es(u);
|
|
4155
4155
|
}
|
|
4156
4156
|
return a;
|
|
4157
4157
|
}
|
|
@@ -4267,11 +4267,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4267
4267
|
})(r, En.getRTLTextPluginStatus() === "loaded");
|
|
4268
4268
|
}
|
|
4269
4269
|
const vo = "-transition";
|
|
4270
|
-
class
|
|
4270
|
+
class As {
|
|
4271
4271
|
constructor(e, i, a) {
|
|
4272
4272
|
this.property = e, this.value = i, this.expression = (function(o, u, h) {
|
|
4273
4273
|
if (oo(o)) return new uo(o, u);
|
|
4274
|
-
if (
|
|
4274
|
+
if (Ua(o)) {
|
|
4275
4275
|
const f = vl(o, u, h);
|
|
4276
4276
|
if (f.result === "error") throw new Error(f.value.map(((g) => `${g.key}: ${g.message}`)).join(", "));
|
|
4277
4277
|
return f.value;
|
|
@@ -4294,7 +4294,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4294
4294
|
}
|
|
4295
4295
|
class Dl {
|
|
4296
4296
|
constructor(e, i) {
|
|
4297
|
-
this.property = e, this.value = new
|
|
4297
|
+
this.property = e, this.value = new As(e, void 0, i);
|
|
4298
4298
|
}
|
|
4299
4299
|
transitioned(e, i) {
|
|
4300
4300
|
return new vu(this.property, this.value, i, Si({}, e.transition, this.transition), e.now);
|
|
@@ -4311,7 +4311,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4311
4311
|
return Pi(this._values[e].value.value);
|
|
4312
4312
|
}
|
|
4313
4313
|
setValue(e, i) {
|
|
4314
|
-
Object.prototype.hasOwnProperty.call(this._values, e) || (this._values[e] = new Dl(this._values[e].property, this._globalState)), this._values[e].value = new
|
|
4314
|
+
Object.prototype.hasOwnProperty.call(this._values, e) || (this._values[e] = new Dl(this._values[e].property, this._globalState)), this._values[e].value = new As(this._values[e].property, i === null ? void 0 : Pi(i), this._globalState);
|
|
4315
4315
|
}
|
|
4316
4316
|
getTransition(e) {
|
|
4317
4317
|
return Pi(this._values[e].transition);
|
|
@@ -4383,7 +4383,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4383
4383
|
return Pi(this._values[e].value);
|
|
4384
4384
|
}
|
|
4385
4385
|
setValue(e, i) {
|
|
4386
|
-
this._values[e] = new
|
|
4386
|
+
this._values[e] = new As(this._values[e].property, i === null ? void 0 : Pi(i), this._globalState);
|
|
4387
4387
|
}
|
|
4388
4388
|
serialize() {
|
|
4389
4389
|
const e = {};
|
|
@@ -4455,7 +4455,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4455
4455
|
return e.kind === "constant" ? e.value : e.evaluate(i, a, o, u, h);
|
|
4456
4456
|
}
|
|
4457
4457
|
}
|
|
4458
|
-
class
|
|
4458
|
+
class qa extends Ke {
|
|
4459
4459
|
possiblyEvaluate(e, i, a, o) {
|
|
4460
4460
|
if (e.value === void 0) return new yn(this, { kind: "constant", value: void 0 }, i);
|
|
4461
4461
|
if (e.expression.kind === "constant") {
|
|
@@ -4519,15 +4519,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4519
4519
|
for (const i in e) {
|
|
4520
4520
|
const a = e[i];
|
|
4521
4521
|
a.specification.overridable && this.overridableProperties.push(i);
|
|
4522
|
-
const o = this.defaultPropertyValues[i] = new
|
|
4522
|
+
const o = this.defaultPropertyValues[i] = new As(a, void 0, void 0), u = this.defaultTransitionablePropertyValues[i] = new Dl(a, void 0);
|
|
4523
4523
|
this.defaultTransitioningPropertyValues[i] = u.untransitioned(), this.defaultPossiblyEvaluatedValues[i] = o.possiblyEvaluate({});
|
|
4524
4524
|
}
|
|
4525
4525
|
}
|
|
4526
4526
|
}
|
|
4527
|
-
Ne("DataDrivenProperty", Ke), Ne("DataConstantProperty", qe), Ne("CrossFadedDataDrivenProperty",
|
|
4527
|
+
Ne("DataDrivenProperty", Ke), Ne("DataConstantProperty", qe), Ne("CrossFadedDataDrivenProperty", qa), Ne("CrossFadedProperty", Rl), Ne("ColorRampProperty", da);
|
|
4528
4528
|
class Br extends gt {
|
|
4529
4529
|
constructor(e, i, a) {
|
|
4530
|
-
if (super(), this.id = e.id, this.type = e.type, this._globalState = a, this._featureFilter = { filter: () => !0, needGeometry: !1, getGlobalStateRefs: () => /* @__PURE__ */ new Set() }, e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter, this._featureFilter =
|
|
4530
|
+
if (super(), this.id = e.id, this.type = e.type, this._globalState = a, this._featureFilter = { filter: () => !0, needGeometry: !1, getGlobalStateRefs: () => /* @__PURE__ */ new Set() }, e.type !== "custom" && (this.metadata = e.metadata, this.minzoom = e.minzoom, this.maxzoom = e.maxzoom, e.type !== "background" && (this.source = e.source, this.sourceLayer = e["source-layer"], this.filter = e.filter, this._featureFilter = gs(e.filter, a)), i.layout && (this._unevaluatedLayout = new bu(i.layout, a)), i.paint)) {
|
|
4531
4531
|
this._transitionablePaint = new zl(i.paint, a);
|
|
4532
4532
|
for (const o in e.paint) this.setPaintProperty(o, e.paint[o], { validate: !1 });
|
|
4533
4533
|
for (const o in e.layout) this.setLayoutProperty(o, e.layout[o], { validate: !1 });
|
|
@@ -4535,7 +4535,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4535
4535
|
}
|
|
4536
4536
|
}
|
|
4537
4537
|
setFilter(e) {
|
|
4538
|
-
this.filter = e, this._featureFilter =
|
|
4538
|
+
this.filter = e, this._featureFilter = gs(e, this._globalState);
|
|
4539
4539
|
}
|
|
4540
4540
|
getCrossfadeParameters() {
|
|
4541
4541
|
return this._crossfadeParameters;
|
|
@@ -4565,7 +4565,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4565
4565
|
return i;
|
|
4566
4566
|
}
|
|
4567
4567
|
setLayoutProperty(e, i, a = {}) {
|
|
4568
|
-
i != null && this._validate(
|
|
4568
|
+
i != null && this._validate(Ps, `layers.${this.id}.layout.${e}`, e, i, a) || (e !== "visibility" ? this._unevaluatedLayout.setValue(e, i) : this.visibility = i);
|
|
4569
4569
|
}
|
|
4570
4570
|
getPaintProperty(e) {
|
|
4571
4571
|
return e.endsWith(vo) ? this._transitionablePaint.getTransition(e.slice(0, -11)) : this._transitionablePaint.getValue(e);
|
|
@@ -4602,7 +4602,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4602
4602
|
return this.visibility && (e.layout = e.layout || {}, e.layout.visibility = this.visibility), nn(e, ((i, a) => !(i === void 0 || a === "layout" && !Object.keys(i).length || a === "paint" && !Object.keys(i).length)));
|
|
4603
4603
|
}
|
|
4604
4604
|
_validate(e, i, a, o, u = {}) {
|
|
4605
|
-
return (!u || u.validate !== !1) && Ml(this, e.call(
|
|
4605
|
+
return (!u || u.validate !== !1) && Ml(this, e.call(Za, { key: i, layerType: this.type, objectKey: a, value: o, styleSpec: de, style: { glyphs: !0, sprite: !0 } }));
|
|
4606
4606
|
}
|
|
4607
4607
|
is3D() {
|
|
4608
4608
|
return !1;
|
|
@@ -4618,7 +4618,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4618
4618
|
isStateDependent() {
|
|
4619
4619
|
for (const e in this.paint._values) {
|
|
4620
4620
|
const i = this.paint.get(e);
|
|
4621
|
-
if (i instanceof yn &&
|
|
4621
|
+
if (i instanceof yn && ja(i.property.specification) && (i.value.kind === "source" || i.value.kind === "composite") && i.value.isStateDependent) return !0;
|
|
4622
4622
|
}
|
|
4623
4623
|
return !1;
|
|
4624
4624
|
}
|
|
@@ -4633,7 +4633,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
4635
|
const Su = { Int8: Int8Array, Uint8: Uint8Array, Int16: Int16Array, Uint16: Uint16Array, Int32: Int32Array, Uint32: Uint32Array, Float32: Float32Array };
|
|
4636
|
-
class
|
|
4636
|
+
class Wa {
|
|
4637
4637
|
constructor(e, i) {
|
|
4638
4638
|
this._structArray = e, this._pos1 = i * this.size, this._pos2 = this._pos1 / 2, this._pos4 = this._pos1 / 4, this._pos8 = this._pos1 / 8;
|
|
4639
4639
|
}
|
|
@@ -4679,7 +4679,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4679
4679
|
function Pu(r, e) {
|
|
4680
4680
|
return Math.ceil(r / e) * e;
|
|
4681
4681
|
}
|
|
4682
|
-
class
|
|
4682
|
+
class Cs extends ri {
|
|
4683
4683
|
_refreshViews() {
|
|
4684
4684
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
|
4685
4685
|
}
|
|
@@ -4692,7 +4692,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4692
4692
|
return this.int16[o + 0] = i, this.int16[o + 1] = a, e;
|
|
4693
4693
|
}
|
|
4694
4694
|
}
|
|
4695
|
-
|
|
4695
|
+
Cs.prototype.bytesPerElement = 4, Ne("StructArrayLayout2i4", Cs);
|
|
4696
4696
|
class wo extends ri {
|
|
4697
4697
|
_refreshViews() {
|
|
4698
4698
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
|
@@ -4749,7 +4749,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4749
4749
|
}
|
|
4750
4750
|
}
|
|
4751
4751
|
Fl.prototype.bytesPerElement = 8, Ne("StructArrayLayout2i4ub8", Fl);
|
|
4752
|
-
class
|
|
4752
|
+
class Ds extends ri {
|
|
4753
4753
|
_refreshViews() {
|
|
4754
4754
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
4755
4755
|
}
|
|
@@ -4762,7 +4762,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4762
4762
|
return this.float32[o + 0] = i, this.float32[o + 1] = a, e;
|
|
4763
4763
|
}
|
|
4764
4764
|
}
|
|
4765
|
-
|
|
4765
|
+
Ds.prototype.bytesPerElement = 8, Ne("StructArrayLayout2f8", Ds);
|
|
4766
4766
|
class To extends ri {
|
|
4767
4767
|
_refreshViews() {
|
|
4768
4768
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
@@ -4832,7 +4832,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4832
4832
|
}
|
|
4833
4833
|
}
|
|
4834
4834
|
So.prototype.bytesPerElement = 4, Ne("StructArrayLayout1ul4", So);
|
|
4835
|
-
class
|
|
4835
|
+
class zs extends ri {
|
|
4836
4836
|
_refreshViews() {
|
|
4837
4837
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
4838
4838
|
}
|
|
@@ -4845,7 +4845,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4845
4845
|
return this.int16[w + 0] = i, this.int16[w + 1] = a, this.int16[w + 2] = o, this.int16[w + 3] = u, this.int16[w + 4] = h, this.int16[w + 5] = f, this.uint32[S + 3] = g, this.uint16[w + 8] = y, this.uint16[w + 9] = v, e;
|
|
4846
4846
|
}
|
|
4847
4847
|
}
|
|
4848
|
-
|
|
4848
|
+
zs.prototype.bytesPerElement = 20, Ne("StructArrayLayout6i1ul2ui20", zs);
|
|
4849
4849
|
class Po extends ri {
|
|
4850
4850
|
_refreshViews() {
|
|
4851
4851
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
|
@@ -4860,7 +4860,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4860
4860
|
}
|
|
4861
4861
|
}
|
|
4862
4862
|
Po.prototype.bytesPerElement = 12, Ne("StructArrayLayout2i2i2i12", Po);
|
|
4863
|
-
class
|
|
4863
|
+
class ks extends ri {
|
|
4864
4864
|
_refreshViews() {
|
|
4865
4865
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
|
4866
4866
|
}
|
|
@@ -4873,7 +4873,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4873
4873
|
return this.float32[f + 0] = i, this.float32[f + 1] = a, this.float32[f + 2] = o, this.int16[g + 6] = u, this.int16[g + 7] = h, e;
|
|
4874
4874
|
}
|
|
4875
4875
|
}
|
|
4876
|
-
|
|
4876
|
+
ks.prototype.bytesPerElement = 16, Ne("StructArrayLayout2f1f2i16", ks);
|
|
4877
4877
|
class Nl extends ri {
|
|
4878
4878
|
_refreshViews() {
|
|
4879
4879
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer);
|
|
@@ -4930,7 +4930,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4930
4930
|
}
|
|
4931
4931
|
}
|
|
4932
4932
|
Vl.prototype.bytesPerElement = 64, Ne("StructArrayLayout8i15ui1ul2f2ui64", Vl);
|
|
4933
|
-
class
|
|
4933
|
+
class Rs extends ri {
|
|
4934
4934
|
_refreshViews() {
|
|
4935
4935
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
4936
4936
|
}
|
|
@@ -4942,7 +4942,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
4942
4942
|
return this.float32[1 * e + 0] = i, e;
|
|
4943
4943
|
}
|
|
4944
4944
|
}
|
|
4945
|
-
|
|
4945
|
+
Rs.prototype.bytesPerElement = 4, Ne("StructArrayLayout1f4", Rs);
|
|
4946
4946
|
class ga extends ri {
|
|
4947
4947
|
_refreshViews() {
|
|
4948
4948
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
@@ -5012,7 +5012,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5012
5012
|
}
|
|
5013
5013
|
}
|
|
5014
5014
|
Gl.prototype.bytesPerElement = 16, Ne("StructArrayLayout4f16", Gl);
|
|
5015
|
-
class p extends
|
|
5015
|
+
class p extends Wa {
|
|
5016
5016
|
get anchorPointX() {
|
|
5017
5017
|
return this._structArray.int16[this._pos2 + 0];
|
|
5018
5018
|
}
|
|
@@ -5045,13 +5045,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5045
5045
|
}
|
|
5046
5046
|
}
|
|
5047
5047
|
p.prototype.size = 20;
|
|
5048
|
-
class t extends
|
|
5048
|
+
class t extends zs {
|
|
5049
5049
|
get(e) {
|
|
5050
5050
|
return new p(this, e);
|
|
5051
5051
|
}
|
|
5052
5052
|
}
|
|
5053
5053
|
Ne("CollisionBoxArray", t);
|
|
5054
|
-
class n extends
|
|
5054
|
+
class n extends Wa {
|
|
5055
5055
|
get anchorX() {
|
|
5056
5056
|
return this._structArray.int16[this._pos2 + 0];
|
|
5057
5057
|
}
|
|
@@ -5120,7 +5120,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5120
5120
|
}
|
|
5121
5121
|
}
|
|
5122
5122
|
Ne("PlacedSymbolArray", s);
|
|
5123
|
-
class l extends
|
|
5123
|
+
class l extends Wa {
|
|
5124
5124
|
get anchorX() {
|
|
5125
5125
|
return this._structArray.int16[this._pos2 + 0];
|
|
5126
5126
|
}
|
|
@@ -5216,7 +5216,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5216
5216
|
}
|
|
5217
5217
|
}
|
|
5218
5218
|
Ne("SymbolInstanceArray", d);
|
|
5219
|
-
class m extends
|
|
5219
|
+
class m extends Rs {
|
|
5220
5220
|
getoffsetX(e) {
|
|
5221
5221
|
return this.float32[1 * e + 0];
|
|
5222
5222
|
}
|
|
@@ -5234,7 +5234,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5234
5234
|
}
|
|
5235
5235
|
}
|
|
5236
5236
|
Ne("SymbolLineVertexArray", _);
|
|
5237
|
-
class x extends
|
|
5237
|
+
class x extends Wa {
|
|
5238
5238
|
get textAnchor() {
|
|
5239
5239
|
return this._structArray.uint16[this._pos2 + 0];
|
|
5240
5240
|
}
|
|
@@ -5252,7 +5252,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
5254
|
Ne("TextAnchorOffsetArray", b);
|
|
5255
|
-
class T extends
|
|
5255
|
+
class T extends Wa {
|
|
5256
5256
|
get featureIndex() {
|
|
5257
5257
|
return this._structArray.uint32[this._pos4 + 0];
|
|
5258
5258
|
}
|
|
@@ -5270,17 +5270,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5270
5270
|
}
|
|
5271
5271
|
}
|
|
5272
5272
|
Ne("FeatureIndexArray", M);
|
|
5273
|
-
class I extends
|
|
5273
|
+
class I extends Cs {
|
|
5274
5274
|
}
|
|
5275
|
-
class D extends
|
|
5275
|
+
class D extends Cs {
|
|
5276
5276
|
}
|
|
5277
|
-
class F extends
|
|
5277
|
+
class F extends Cs {
|
|
5278
5278
|
}
|
|
5279
5279
|
class j extends Ll {
|
|
5280
5280
|
}
|
|
5281
5281
|
class G extends Fl {
|
|
5282
5282
|
}
|
|
5283
|
-
class U extends
|
|
5283
|
+
class U extends Ds {
|
|
5284
5284
|
}
|
|
5285
5285
|
class $ extends To {
|
|
5286
5286
|
}
|
|
@@ -5447,7 +5447,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5447
5447
|
}
|
|
5448
5448
|
}
|
|
5449
5449
|
const Mo = new Float32Array(16);
|
|
5450
|
-
function
|
|
5450
|
+
function Ha(r) {
|
|
5451
5451
|
return [ze(255 * r.r, 255 * r.g), ze(255 * r.b, 255 * r.a)];
|
|
5452
5452
|
}
|
|
5453
5453
|
class vn {
|
|
@@ -5493,7 +5493,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5493
5493
|
}
|
|
5494
5494
|
_setPaintValue(e, i, a) {
|
|
5495
5495
|
if (this.type === "color") {
|
|
5496
|
-
const o =
|
|
5496
|
+
const o = Ha(a);
|
|
5497
5497
|
for (let u = e; u < i; u++) this.paintVertexArray.emplace(u, o[0], o[1]);
|
|
5498
5498
|
} else {
|
|
5499
5499
|
for (let o = e; o < i; o++) this.paintVertexArray.emplace(o, a);
|
|
@@ -5521,7 +5521,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5521
5521
|
}
|
|
5522
5522
|
_setPaintValue(e, i, a, o) {
|
|
5523
5523
|
if (this.type === "color") {
|
|
5524
|
-
const u =
|
|
5524
|
+
const u = Ha(a), h = Ha(o);
|
|
5525
5525
|
for (let f = e; f < i; f++) this.paintVertexArray.emplace(f, u[0], u[1], h[0], h[1]);
|
|
5526
5526
|
} else {
|
|
5527
5527
|
for (let u = e; u < i; u++) this.paintVertexArray.emplace(u, a, o);
|
|
@@ -5604,7 +5604,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5604
5604
|
for (const u in e.paint._values) {
|
|
5605
5605
|
if (!a(u)) continue;
|
|
5606
5606
|
const h = e.paint.get(u);
|
|
5607
|
-
if (!(h instanceof yn &&
|
|
5607
|
+
if (!(h instanceof yn && ja(h.property.specification))) continue;
|
|
5608
5608
|
const f = Ah(u, e.type), g = h.value, y = h.property.specification.type, v = h.property.useIntegerZoom, w = h.property.specification["property-type"], S = w === "cross-faded" || w === "cross-faded-data-driven";
|
|
5609
5609
|
if (g.kind === "constant") this.binders[u] = S ? new ji(g.value, f) : new vn(g.value, f, y), o.push(`/u_${u}`);
|
|
5610
5610
|
else if (g.kind === "source" || S) {
|
|
@@ -5757,7 +5757,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5757
5757
|
return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-dasharray": ["dasharray_to", "dasharray_from"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[r] || [r.replace(`${e}-`, "").replace(/-/g, "_")];
|
|
5758
5758
|
}
|
|
5759
5759
|
function Iu(r, e, i) {
|
|
5760
|
-
const a = { color: { source:
|
|
5760
|
+
const a = { color: { source: Ds, composite: Gl }, number: { source: Rs, composite: Ds } }, o = (function(u) {
|
|
5761
5761
|
return { "line-pattern": { source: $, composite: $ }, "fill-pattern": { source: $, composite: $ }, "fill-extrusion-pattern": { source: $, composite: $ }, "line-dasharray": { source: K, composite: K } }[u];
|
|
5762
5762
|
})(r);
|
|
5763
5763
|
return o && o[i] || a[e][i];
|
|
@@ -5859,7 +5859,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5859
5859
|
for (let i = 0; i < e.length; i++) if (Ao(r, e[i])) return !0;
|
|
5860
5860
|
return !!Ch(r, e);
|
|
5861
5861
|
}
|
|
5862
|
-
function
|
|
5862
|
+
function Xa(r, e, i) {
|
|
5863
5863
|
return !!Ao(r, e) || !!Dh(e, r, i);
|
|
5864
5864
|
}
|
|
5865
5865
|
function ql(r, e) {
|
|
@@ -5949,17 +5949,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
5949
5949
|
return e;
|
|
5950
5950
|
}
|
|
5951
5951
|
function Um({ queryGeometry: r, size: e }, i) {
|
|
5952
|
-
return
|
|
5952
|
+
return Xa(r, i, e);
|
|
5953
5953
|
}
|
|
5954
5954
|
function Gm({ queryGeometry: r, size: e, transform: i, unwrappedTileID: a, getElevation: o }, u) {
|
|
5955
|
-
return
|
|
5955
|
+
return Xa(r, u, e * (i.projectTileCoordinates(u.x, u.y, a, o).signedDistanceFromCamera / i.cameraToCenterDistance));
|
|
5956
5956
|
}
|
|
5957
5957
|
function $m({ queryGeometry: r, size: e, transform: i, unwrappedTileID: a, getElevation: o }, u) {
|
|
5958
5958
|
const h = i.projectTileCoordinates(u.x, u.y, a, o).signedDistanceFromCamera, f = e * (i.cameraToCenterDistance / h);
|
|
5959
|
-
return
|
|
5959
|
+
return Xa(r, zh(u, i, a, o), f);
|
|
5960
5960
|
}
|
|
5961
5961
|
function Zm({ queryGeometry: r, size: e, transform: i, unwrappedTileID: a, getElevation: o }, u) {
|
|
5962
|
-
return
|
|
5962
|
+
return Xa(r, zh(u, i, a, o), e);
|
|
5963
5963
|
}
|
|
5964
5964
|
function Hp({ queryGeometry: r, size: e, transform: i, unwrappedTileID: a, getElevation: o, pitchAlignment: u = "map", pitchScale: h = "map" }, f) {
|
|
5965
5965
|
const g = u === "map" ? h === "map" ? Um : Gm : h === "map" ? $m : Zm, y = { queryGeometry: r, size: e, transform: i, unwrappedTileID: a, getElevation: o };
|
|
@@ -6288,7 +6288,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6288
6288
|
else for (let h = i - a; h >= e; h -= a) u = cd(h / a | 0, r[h], r[h + 1], u);
|
|
6289
6289
|
return u && Do(u, u.next) && (Jl(u), u = u.next), u;
|
|
6290
6290
|
}
|
|
6291
|
-
function
|
|
6291
|
+
function Ls(r, e) {
|
|
6292
6292
|
if (!r) return r;
|
|
6293
6293
|
e || (e = r);
|
|
6294
6294
|
let i, a = r;
|
|
@@ -6331,7 +6331,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6331
6331
|
const g = r.prev, y = r.next;
|
|
6332
6332
|
if (u ? rg(r, a, o, u) : ig(r)) e.push(g.i, r.i, y.i), Jl(r), r = y.next, f = y.next;
|
|
6333
6333
|
else if ((r = y) === f) {
|
|
6334
|
-
h ? h === 1 ? Xl(r = ng(
|
|
6334
|
+
h ? h === 1 ? Xl(r = ng(Ls(r), e), e, i, a, o, u, 2) : h === 2 && ag(r, e, i, a, o, u) : Xl(Ls(r), e, i, a, o, u, 1);
|
|
6335
6335
|
break;
|
|
6336
6336
|
}
|
|
6337
6337
|
}
|
|
@@ -6372,7 +6372,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6372
6372
|
const a = i.prev, o = i.next.next;
|
|
6373
6373
|
!Do(a, o) && od(a, i, i.next, o) && Kl(a, o) && Kl(o, a) && (e.push(a.i, i.i, o.i), Jl(i), Jl(i.next), i = r = o), i = i.next;
|
|
6374
6374
|
} while (i !== r);
|
|
6375
|
-
return
|
|
6375
|
+
return Ls(i);
|
|
6376
6376
|
}
|
|
6377
6377
|
function ag(r, e, i, a, o, u) {
|
|
6378
6378
|
let h = r;
|
|
@@ -6381,7 +6381,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6381
6381
|
for (; f !== h.prev; ) {
|
|
6382
6382
|
if (h.i !== f.i && ug(h, f)) {
|
|
6383
6383
|
let g = ld(h, f);
|
|
6384
|
-
return h =
|
|
6384
|
+
return h = Ls(h, h.next), g = Ls(g, g.next), Xl(h, e, i, a, o, u, 0), void Xl(g, e, i, a, o, u, 0);
|
|
6385
6385
|
}
|
|
6386
6386
|
f = f.next;
|
|
6387
6387
|
}
|
|
@@ -6421,7 +6421,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6421
6421
|
})(r, e);
|
|
6422
6422
|
if (!i) return e;
|
|
6423
6423
|
const a = ld(i, r);
|
|
6424
|
-
return
|
|
6424
|
+
return Ls(a, a.next), Ls(i, i.next);
|
|
6425
6425
|
}
|
|
6426
6426
|
function lg(r, e) {
|
|
6427
6427
|
return Ei(r.prev, r, e.prev) < 0 && Ei(e.next, r, r.next) < 0;
|
|
@@ -6590,7 +6590,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6590
6590
|
_generateOutline(e) {
|
|
6591
6591
|
const i = [];
|
|
6592
6592
|
for (const a of e) {
|
|
6593
|
-
const o =
|
|
6593
|
+
const o = Fs(a, this._granularity, !0), u = this._pointArrayToIndices(o), h = [];
|
|
6594
6594
|
for (let f = 1; f < u.length; f++) h.push(u[f - 1]), h.push(u[f]);
|
|
6595
6595
|
i.push(h);
|
|
6596
6596
|
}
|
|
@@ -6684,7 +6684,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6684
6684
|
function ud(r, e, i, a = !0) {
|
|
6685
6685
|
return new hg(i, e).subdividePolygonInternal(r, a);
|
|
6686
6686
|
}
|
|
6687
|
-
function
|
|
6687
|
+
function Fs(r, e, i = !1) {
|
|
6688
6688
|
if (!r || r.length < 1) return [];
|
|
6689
6689
|
if (r.length < 2) return [];
|
|
6690
6690
|
const a = r[0], o = r[r.length - 1], u = i && (a.x !== o.x || a.y !== o.y);
|
|
@@ -6846,7 +6846,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
6846
6846
|
let pd, dd;
|
|
6847
6847
|
Ne("FillBucket", Vh, { omit: ["layers", "patternFeatures"] });
|
|
6848
6848
|
var dg = { get paint() {
|
|
6849
|
-
return dd = dd || new gr({ "fill-antialias": new qe(de.paint_fill["fill-antialias"]), "fill-opacity": new Ke(de.paint_fill["fill-opacity"]), "fill-color": new Ke(de.paint_fill["fill-color"]), "fill-outline-color": new Ke(de.paint_fill["fill-outline-color"]), "fill-translate": new qe(de.paint_fill["fill-translate"]), "fill-translate-anchor": new qe(de.paint_fill["fill-translate-anchor"]), "fill-pattern": new
|
|
6849
|
+
return dd = dd || new gr({ "fill-antialias": new qe(de.paint_fill["fill-antialias"]), "fill-opacity": new Ke(de.paint_fill["fill-opacity"]), "fill-color": new Ke(de.paint_fill["fill-color"]), "fill-outline-color": new Ke(de.paint_fill["fill-outline-color"]), "fill-translate": new qe(de.paint_fill["fill-translate"]), "fill-translate-anchor": new qe(de.paint_fill["fill-translate-anchor"]), "fill-pattern": new qa(de.paint_fill["fill-pattern"]) });
|
|
6850
6850
|
}, get layout() {
|
|
6851
6851
|
return pd = pd || new gr({ "fill-sort-key": new Ke(de.layout_fill["fill-sort-key"]) });
|
|
6852
6852
|
} };
|
|
@@ -7052,7 +7052,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7052
7052
|
const h = { segment: this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray) }, f = u.fill.getGranularityForZoomLevel(i.z), g = tc.types[a.type] === "Polygon";
|
|
7053
7053
|
for (const w of o) {
|
|
7054
7054
|
if (w.length === 0 || gd(w)) continue;
|
|
7055
|
-
const S =
|
|
7055
|
+
const S = Fs(w, f, g);
|
|
7056
7056
|
this._generateSideFaces(S, h);
|
|
7057
7057
|
}
|
|
7058
7058
|
if (!g) return;
|
|
@@ -7089,7 +7089,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7089
7089
|
let _d;
|
|
7090
7090
|
Ne("FillExtrusionBucket", Uh, { omit: ["layers", "features"] });
|
|
7091
7091
|
var Pg = { get paint() {
|
|
7092
|
-
return _d = _d || new gr({ "fill-extrusion-opacity": new qe(de["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new Ke(de["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new qe(de["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new qe(de["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new
|
|
7092
|
+
return _d = _d || new gr({ "fill-extrusion-opacity": new qe(de["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new Ke(de["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new qe(de["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new qe(de["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new qa(de["paint_fill-extrusion"]["fill-extrusion-pattern"]), "fill-extrusion-height": new Ke(de["paint_fill-extrusion"]["fill-extrusion-height"]), "fill-extrusion-base": new Ke(de["paint_fill-extrusion"]["fill-extrusion-base"]), "fill-extrusion-vertical-gradient": new qe(de["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) });
|
|
7093
7093
|
} };
|
|
7094
7094
|
class Ig extends Br {
|
|
7095
7095
|
constructor(e, i) {
|
|
@@ -7211,7 +7211,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7211
7211
|
this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, a, { imagePositions: u, dashPositions: h, canonical: o });
|
|
7212
7212
|
}
|
|
7213
7213
|
addLine(e, i, a, o, u, h, f, g) {
|
|
7214
|
-
if (this.distance = 0, this.scaledDistance = 0, this.totalDistance = 0, e =
|
|
7214
|
+
if (this.distance = 0, this.scaledDistance = 0, this.totalDistance = 0, e = Fs(e, f ? g.line.getGranularityForZoomLevel(f.z) : 1), this.lineClips) {
|
|
7215
7215
|
this.lineClipsArray.push(this.lineClips);
|
|
7216
7216
|
for (let O = 0; O < e.length - 1; O++) this.totalDistance += e[O].dist(e[O + 1]);
|
|
7217
7217
|
this.updateScaledDistance(), this.maxLineLength = Math.max(this.maxLineLength, this.totalDistance);
|
|
@@ -7313,7 +7313,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7313
7313
|
let vd, bd;
|
|
7314
7314
|
Ne("LineBucket", Gh, { omit: ["layers", "patternFeatures"] });
|
|
7315
7315
|
var wd = { get paint() {
|
|
7316
|
-
return bd = bd || new gr({ "line-opacity": new Ke(de.paint_line["line-opacity"]), "line-color": new Ke(de.paint_line["line-color"]), "line-translate": new qe(de.paint_line["line-translate"]), "line-translate-anchor": new qe(de.paint_line["line-translate-anchor"]), "line-width": new Ke(de.paint_line["line-width"]), "line-gap-width": new Ke(de.paint_line["line-gap-width"]), "line-offset": new Ke(de.paint_line["line-offset"]), "line-blur": new Ke(de.paint_line["line-blur"]), "line-dasharray": new
|
|
7316
|
+
return bd = bd || new gr({ "line-opacity": new Ke(de.paint_line["line-opacity"]), "line-color": new Ke(de.paint_line["line-color"]), "line-translate": new qe(de.paint_line["line-translate"]), "line-translate-anchor": new qe(de.paint_line["line-translate-anchor"]), "line-width": new Ke(de.paint_line["line-width"]), "line-gap-width": new Ke(de.paint_line["line-gap-width"]), "line-offset": new Ke(de.paint_line["line-offset"]), "line-blur": new Ke(de.paint_line["line-blur"]), "line-dasharray": new qa(de.paint_line["line-dasharray"]), "line-pattern": new qa(de.paint_line["line-pattern"]), "line-gradient": new da(de.paint_line["line-gradient"]) });
|
|
7317
7317
|
}, get layout() {
|
|
7318
7318
|
return vd = vd || new gr({ "line-cap": new qe(de.layout_line["line-cap"]), "line-join": new Ke(de.layout_line["line-join"]), "line-miter-limit": new qe(de.layout_line["line-miter-limit"]), "line-round-limit": new qe(de.layout_line["line-round-limit"]), "line-sort-key": new Ke(de.layout_line["line-sort-key"]) });
|
|
7319
7319
|
} };
|
|
@@ -7936,7 +7936,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7936
7936
|
a.update(i.data, void 0, { x: o, y: u });
|
|
7937
7937
|
}
|
|
7938
7938
|
}
|
|
7939
|
-
var
|
|
7939
|
+
var Ya;
|
|
7940
7940
|
function Bu(r, e, i, a, o, u, h, f, g, y, v, w, S, P, A) {
|
|
7941
7941
|
const C = Ro.fromFeature(r, o);
|
|
7942
7942
|
let z;
|
|
@@ -7995,8 +7995,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7995
7995
|
if (J.iconsInText = !0, ai.scale *= lr, wa = r_(ai, hi, ui, cr, be), !wa) continue;
|
|
7996
7996
|
Vr = Math.max(Vr, wa.imageOffset), qi.imageName = ai.imageName;
|
|
7997
7997
|
}
|
|
7998
|
-
const { rect: zn, metrics: pc, baselineOffset:
|
|
7999
|
-
qi.y +=
|
|
7998
|
+
const { rect: zn, metrics: pc, baselineOffset: ts } = wa;
|
|
7999
|
+
qi.y += ts, qi.scale = ai.scale, qi.metrics = pc, qi.rect = zn, Zt.push(qi), hi ? (J.verticalizable = !0, Be += ("imageName" in ai ? pc.advance : Ui) * ai.scale + je) : Be += pc.advance * ai.scale + je, jr++;
|
|
8000
8000
|
}
|
|
8001
8001
|
Zt.length !== 0 && (Tt = Math.max(Be - je, Tt), n_(Zt, 0, Zt.length - 1, ei)), Be = 0, wi.lineOffset = Math.max(Vr, (ui - 1) * Ui);
|
|
8002
8002
|
const bn = Le * ui + Vr;
|
|
@@ -8122,8 +8122,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8122
8122
|
const A = e.top * u, C = e.bottom * u;
|
|
8123
8123
|
return i === "height" || i === "both" ? (v = o[1] + A - a[0], S = o[1] + C + a[2]) : (v = o[1] + (A + C - h.displaySize[1]) / 2, S = v + h.displaySize[1]), { image: h, top: v, right: w, bottom: S, left: P, collisionPadding: f };
|
|
8124
8124
|
}
|
|
8125
|
-
Ne("ImagePosition", Zh), Ne("ImageAtlas", kd), E.aA = void 0, (
|
|
8126
|
-
const va = 128,
|
|
8125
|
+
Ne("ImagePosition", Zh), Ne("ImageAtlas", kd), E.aA = void 0, (Ya = E.aA || (E.aA = {}))[Ya.none = 0] = "none", Ya[Ya.horizontal = 1] = "horizontal", Ya[Ya.vertical = 2] = "vertical", Ya[Ya.horizontalOnly = 3] = "horizontalOnly";
|
|
8126
|
+
const va = 128, Ka = 32640;
|
|
8127
8127
|
function Bd(r, e) {
|
|
8128
8128
|
const { expression: i } = e;
|
|
8129
8129
|
if (i.kind === "constant") return { kind: "constant", layoutSize: i.evaluate(new Nt(r + 1)) };
|
|
@@ -8147,7 +8147,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8147
8147
|
}
|
|
8148
8148
|
const s_ = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
|
|
8149
8149
|
function Ou(r, e, i, a, o, u, h, f, g, y, v, w, S) {
|
|
8150
|
-
const P = f ? Math.min(
|
|
8150
|
+
const P = f ? Math.min(Ka, Math.round(f[0])) : 0, A = f ? Math.min(Ka, Math.round(f[1])) : 0;
|
|
8151
8151
|
r.emplaceBack(e, i, Math.round(32 * a), Math.round(32 * o), u, h, (P << 1) + (g ? 1 : 0), A, 16 * y, 16 * v, 256 * w, 256 * S);
|
|
8152
8152
|
}
|
|
8153
8153
|
function Hh(r, e, i) {
|
|
@@ -8448,7 +8448,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8448
8448
|
}
|
|
8449
8449
|
getValueAndResolveTokens(e, i, a, o) {
|
|
8450
8450
|
const u = this.layout.get(e).evaluate(i, {}, a, o), h = this._unevaluatedLayout._values[e];
|
|
8451
|
-
return h.isDataDriven() ||
|
|
8451
|
+
return h.isDataDriven() || Ua(h.value) || !u ? u : (function(f, g) {
|
|
8452
8452
|
return g.replace(/{([^{}]+)}/g, ((y, v) => f && v in f ? String(f[v]) : ""));
|
|
8453
8453
|
})(i.properties, u);
|
|
8454
8454
|
}
|
|
@@ -8481,7 +8481,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8481
8481
|
if (a.value.kind === "constant" && a.value.value instanceof wr) h(a.value.value.sections);
|
|
8482
8482
|
else if (a.value.kind === "source" || a.value.kind === "composite") {
|
|
8483
8483
|
const f = (y) => {
|
|
8484
|
-
u || (y instanceof gn && _i(y.value) === We ? h(y.value.sections) : y instanceof
|
|
8484
|
+
u || (y instanceof gn && _i(y.value) === We ? h(y.value.sections) : y instanceof us ? h(y.sections) : y.eachChild(f));
|
|
8485
8485
|
}, g = a.value;
|
|
8486
8486
|
g._styleExpression && f(g._styleExpression.expression);
|
|
8487
8487
|
}
|
|
@@ -8539,13 +8539,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8539
8539
|
}
|
|
8540
8540
|
}
|
|
8541
8541
|
const p_ = { once: !0 }, Jh = 63710088e-1;
|
|
8542
|
-
class
|
|
8542
|
+
class Ja {
|
|
8543
8543
|
constructor(e, i) {
|
|
8544
8544
|
if (isNaN(e) || isNaN(i)) throw new Error(`Invalid LngLat object: (${e}, ${i})`);
|
|
8545
8545
|
if (this.lng = +e, this.lat = +i, this.lat > 90 || this.lat < -90) throw new Error("Invalid LngLat latitude value: must be between -90 and 90");
|
|
8546
8546
|
}
|
|
8547
8547
|
wrap() {
|
|
8548
|
-
return new
|
|
8548
|
+
return new Ja(Hi(this.lng, -180, 180), this.lat);
|
|
8549
8549
|
}
|
|
8550
8550
|
toArray() {
|
|
8551
8551
|
return [this.lng, this.lat];
|
|
@@ -8558,9 +8558,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8558
8558
|
return Jh * Math.acos(Math.min(u, 1));
|
|
8559
8559
|
}
|
|
8560
8560
|
static convert(e) {
|
|
8561
|
-
if (e instanceof
|
|
8562
|
-
if (Array.isArray(e) && (e.length === 2 || e.length === 3)) return new
|
|
8563
|
-
if (!Array.isArray(e) && typeof e == "object" && e !== null) return new
|
|
8561
|
+
if (e instanceof Ja) return e;
|
|
8562
|
+
if (Array.isArray(e) && (e.length === 2 || e.length === 3)) return new Ja(Number(e[0]), Number(e[1]));
|
|
8563
|
+
if (!Array.isArray(e) && typeof e == "object" && e !== null) return new Ja(Number("lng" in e ? e.lng : e.lon), Number(e.lat));
|
|
8564
8564
|
throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]");
|
|
8565
8565
|
}
|
|
8566
8566
|
}
|
|
@@ -8591,11 +8591,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8591
8591
|
this.x = +e, this.y = +i, this.z = +a;
|
|
8592
8592
|
}
|
|
8593
8593
|
static fromLngLat(e, i = 0) {
|
|
8594
|
-
const a =
|
|
8594
|
+
const a = Ja.convert(e);
|
|
8595
8595
|
return new ac($d(a.lng), Zd(a.lat), qd(i, a.lat));
|
|
8596
8596
|
}
|
|
8597
8597
|
toLngLat() {
|
|
8598
|
-
return new
|
|
8598
|
+
return new Ja(Wd(this.x), Vu(this.y));
|
|
8599
8599
|
}
|
|
8600
8600
|
toAltitude() {
|
|
8601
8601
|
return Hd(this.z, this.y);
|
|
@@ -8927,7 +8927,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8927
8927
|
this.value += e;
|
|
8928
8928
|
}
|
|
8929
8929
|
}
|
|
8930
|
-
var mt, ba, sr, Cn,
|
|
8930
|
+
var mt, ba, sr, Cn, Bs, Qr, Gi, $i, tf, hn;
|
|
8931
8931
|
function Ki(r, e, i) {
|
|
8932
8932
|
const a = new Int32Array(i);
|
|
8933
8933
|
let o = 0, u = e.get();
|
|
@@ -8953,7 +8953,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
8953
8953
|
function rf(r, e, i, a) {
|
|
8954
8954
|
throw new Error("FastPFor is not implemented yet.");
|
|
8955
8955
|
}
|
|
8956
|
-
function
|
|
8956
|
+
function Os(r) {
|
|
8957
8957
|
return r >>> 1 ^ -(1 & r);
|
|
8958
8958
|
}
|
|
8959
8959
|
function No(r) {
|
|
@@ -9044,7 +9044,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9044
9044
|
f = new ap(Object.values(Cn)[15 & u]);
|
|
9045
9045
|
break;
|
|
9046
9046
|
case sr.OFFSET:
|
|
9047
|
-
f = new ap(null, Object.values(
|
|
9047
|
+
f = new ap(null, Object.values(Bs)[15 & u]);
|
|
9048
9048
|
break;
|
|
9049
9049
|
case sr.LENGTH:
|
|
9050
9050
|
f = new ap(null, null, Object.values(Qr)[15 & u]);
|
|
@@ -9067,7 +9067,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9067
9067
|
r.NONE = "NONE", r.SINGLE = "SINGLE", r.SHARED = "SHARED", r.VERTEX = "VERTEX", r.MORTON = "MORTON", r.FSST = "FSST";
|
|
9068
9068
|
})(Cn || (Cn = {})), (function(r) {
|
|
9069
9069
|
r.VERTEX = "VERTEX", r.INDEX = "INDEX", r.STRING = "STRING", r.KEY = "KEY";
|
|
9070
|
-
})(
|
|
9070
|
+
})(Bs || (Bs = {})), (function(r) {
|
|
9071
9071
|
r.VAR_BINARY = "VAR_BINARY", r.GEOMETRIES = "GEOMETRIES", r.PARTS = "PARTS", r.RINGS = "RINGS", r.TRIANGLES = "TRIANGLES", r.SYMBOL = "SYMBOL", r.DICTIONARY = "DICTIONARY";
|
|
9072
9072
|
})(Qr || (Qr = {})), (function(r) {
|
|
9073
9073
|
r[r.FLAT = 0] = "FLAT", r[r.CONST = 1] = "CONST", r[r.SEQUENCE = 2] = "SEQUENCE", r[r.DICTIONARY = 3] = "DICTIONARY", r[r.FSST_DICTIONARY = 4] = "FSST_DICTIONARY";
|
|
@@ -9105,7 +9105,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9105
9105
|
const w = new Int32Array(v);
|
|
9106
9106
|
let S = 0, P = 0;
|
|
9107
9107
|
for (let A = 0; A < y; A++) {
|
|
9108
|
-
const C = g[A], z =
|
|
9108
|
+
const C = g[A], z = Os(g[A + y]);
|
|
9109
9109
|
for (let B = 0; B < C; B++) P += z, w[S++] = P;
|
|
9110
9110
|
}
|
|
9111
9111
|
return w;
|
|
@@ -9148,12 +9148,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9148
9148
|
}
|
|
9149
9149
|
})(Gu(r, e, i), i, a);
|
|
9150
9150
|
}
|
|
9151
|
-
function
|
|
9151
|
+
function Qa(r, e, i) {
|
|
9152
9152
|
return (function(a, o) {
|
|
9153
9153
|
if (o.logicalLevelTechnique1 === mt.DELTA && o.logicalLevelTechnique2 === mt.NONE)
|
|
9154
9154
|
return (function(h) {
|
|
9155
9155
|
const f = new Int32Array(h.length + 1);
|
|
9156
|
-
f[0] = 0, f[1] =
|
|
9156
|
+
f[0] = 0, f[1] = Os(h[0]);
|
|
9157
9157
|
let g = f[1], y = 2;
|
|
9158
9158
|
for (; y != f.length; ++y) {
|
|
9159
9159
|
const v = h[y - 1];
|
|
@@ -9216,10 +9216,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9216
9216
|
const o = Gu(r, e, i);
|
|
9217
9217
|
if (o.length === 1) {
|
|
9218
9218
|
const u = o[0];
|
|
9219
|
-
return a ?
|
|
9219
|
+
return a ? Os(u) : u;
|
|
9220
9220
|
}
|
|
9221
9221
|
return a ? (function(u) {
|
|
9222
|
-
return
|
|
9222
|
+
return Os(u[1]);
|
|
9223
9223
|
})(o) : (function(u) {
|
|
9224
9224
|
return u[1];
|
|
9225
9225
|
})(o);
|
|
@@ -9227,10 +9227,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9227
9227
|
function lf(r, e, i) {
|
|
9228
9228
|
return (function(a) {
|
|
9229
9229
|
if (a.length == 2) {
|
|
9230
|
-
const o =
|
|
9230
|
+
const o = Os(a[1]);
|
|
9231
9231
|
return [o, o];
|
|
9232
9232
|
}
|
|
9233
|
-
return [
|
|
9233
|
+
return [Os(a[2]), Os(a[3])];
|
|
9234
9234
|
})(Gu(r, e, i));
|
|
9235
9235
|
}
|
|
9236
9236
|
function cf(r, e, i) {
|
|
@@ -9796,24 +9796,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9796
9796
|
case sr.LENGTH:
|
|
9797
9797
|
switch (B.logicalStreamType.lengthType) {
|
|
9798
9798
|
case Qr.GEOMETRIES:
|
|
9799
|
-
h =
|
|
9799
|
+
h = Qa(r, i, B);
|
|
9800
9800
|
break;
|
|
9801
9801
|
case Qr.PARTS:
|
|
9802
|
-
f =
|
|
9802
|
+
f = Qa(r, i, B);
|
|
9803
9803
|
break;
|
|
9804
9804
|
case Qr.RINGS:
|
|
9805
|
-
g =
|
|
9805
|
+
g = Qa(r, i, B);
|
|
9806
9806
|
break;
|
|
9807
9807
|
case Qr.TRIANGLES:
|
|
9808
|
-
S =
|
|
9808
|
+
S = Qa(r, i, B);
|
|
9809
9809
|
}
|
|
9810
9810
|
break;
|
|
9811
9811
|
case sr.OFFSET:
|
|
9812
9812
|
switch (B.logicalStreamType.offsetType) {
|
|
9813
|
-
case
|
|
9813
|
+
case Bs.VERTEX:
|
|
9814
9814
|
y = Pr(r, i, B, !1);
|
|
9815
9815
|
break;
|
|
9816
|
-
case
|
|
9816
|
+
case Bs.INDEX:
|
|
9817
9817
|
P = Pr(r, i, B, !1);
|
|
9818
9818
|
}
|
|
9819
9819
|
break;
|
|
@@ -9843,15 +9843,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
9843
9843
|
g = Pr(r, i, z, !1);
|
|
9844
9844
|
break;
|
|
9845
9845
|
case Qr.TRIANGLES:
|
|
9846
|
-
S =
|
|
9846
|
+
S = Qa(r, i, z);
|
|
9847
9847
|
}
|
|
9848
9848
|
break;
|
|
9849
9849
|
case sr.OFFSET:
|
|
9850
9850
|
switch (z.logicalStreamType.offsetType) {
|
|
9851
|
-
case
|
|
9851
|
+
case Bs.VERTEX:
|
|
9852
9852
|
y = Pr(r, i, z, !1);
|
|
9853
9853
|
break;
|
|
9854
|
-
case
|
|
9854
|
+
case Bs.INDEX:
|
|
9855
9855
|
P = Pr(r, i, z, !1);
|
|
9856
9856
|
}
|
|
9857
9857
|
break;
|
|
@@ -10069,7 +10069,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10069
10069
|
H = O != null || be != null ? op(z, B, we, !1, O ?? be) : Pr(z, B, we, !1);
|
|
10070
10070
|
break;
|
|
10071
10071
|
case sr.LENGTH: {
|
|
10072
|
-
const _e =
|
|
10072
|
+
const _e = Qa(z, B, we);
|
|
10073
10073
|
Qr.DICTIONARY === we.logicalStreamType.lengthType ? V = _e : Qr.SYMBOL === we.logicalStreamType.lengthType ? he = _e : Ie = _e;
|
|
10074
10074
|
break;
|
|
10075
10075
|
}
|
|
@@ -10225,7 +10225,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10225
10225
|
const q = Sr(h, f);
|
|
10226
10226
|
switch (q.physicalStreamType) {
|
|
10227
10227
|
case sr.LENGTH:
|
|
10228
|
-
Qr.DICTIONARY === q.logicalStreamType.lengthType ? v =
|
|
10228
|
+
Qr.DICTIONARY === q.logicalStreamType.lengthType ? v = Qa(h, f, q) : S = Qa(h, f, q);
|
|
10229
10229
|
break;
|
|
10230
10230
|
case sr.DATA:
|
|
10231
10231
|
Cn.SINGLE === q.logicalStreamType.dictionaryType || Cn.SHARED === q.logicalStreamType.dictionaryType ? (w = h.subarray(f.get(), f.get() + q.byteLength), A = !0) : P = h.subarray(f.get(), f.get() + q.byteLength), f.add(q.byteLength);
|
|
@@ -10549,7 +10549,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10549
10549
|
this.layers = i.reduce(((a, o) => Object.assign(Object.assign({}, a), { [o.name]: new z_(o) })), {});
|
|
10550
10550
|
}
|
|
10551
10551
|
}
|
|
10552
|
-
class
|
|
10552
|
+
class Ns {
|
|
10553
10553
|
constructor() {
|
|
10554
10554
|
this.minX = 1 / 0, this.maxX = -1 / 0, this.minY = 1 / 0, this.maxY = -1 / 0;
|
|
10555
10555
|
}
|
|
@@ -10563,11 +10563,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10563
10563
|
return this.expandBy(-e);
|
|
10564
10564
|
}
|
|
10565
10565
|
map(e) {
|
|
10566
|
-
const i = new
|
|
10566
|
+
const i = new Ns();
|
|
10567
10567
|
return i.extend(e(new Pe(this.minX, this.minY))), i.extend(e(new Pe(this.maxX, this.minY))), i.extend(e(new Pe(this.minX, this.maxY))), i.extend(e(new Pe(this.maxX, this.maxY))), i;
|
|
10568
10568
|
}
|
|
10569
10569
|
static fromPoints(e) {
|
|
10570
|
-
const i = new
|
|
10570
|
+
const i = new Ns();
|
|
10571
10571
|
for (const a of e) i.extend(a);
|
|
10572
10572
|
return i;
|
|
10573
10573
|
}
|
|
@@ -10656,7 +10656,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10656
10656
|
}
|
|
10657
10657
|
class Df {
|
|
10658
10658
|
constructor(e, i) {
|
|
10659
|
-
this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new
|
|
10659
|
+
this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new Is(ht, 16, 0), this.grid3D = new Is(ht, 16, 0), this.featureIndexArray = new M(), this.promoteId = i;
|
|
10660
10660
|
}
|
|
10661
10661
|
insert(e, i, a, o, u, h) {
|
|
10662
10662
|
const f = this.featureIndexArray.length;
|
|
@@ -10676,7 +10676,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10676
10676
|
}
|
|
10677
10677
|
query(e, i, a, o) {
|
|
10678
10678
|
this.loadVTLayers();
|
|
10679
|
-
const u = e.params, h = ht / e.tileSize / e.scale, f =
|
|
10679
|
+
const u = e.params, h = ht / e.tileSize / e.scale, f = gs(u.filter, u.globalState), g = e.queryGeometry, y = e.queryPadding * h, v = Ns.fromPoints(g), w = this.grid.query(v.minX - y, v.minY - y, v.maxX + y, v.maxY + y), S = Ns.fromPoints(e.cameraQueryGeometry).expandBy(y), P = this.grid3D.query(S.minX, S.minY, S.maxX, S.maxY, ((z, B, q, O) => (function(V, H, J, he, Te) {
|
|
10680
10680
|
for (const Ie of V) if (H <= Ie.x && J <= Ie.y && he >= Ie.x && Te >= Ie.y) return !0;
|
|
10681
10681
|
const be = [new Pe(H, J), new Pe(H, Te), new Pe(he, Te), new Pe(he, J)];
|
|
10682
10682
|
if (V.length > 2) {
|
|
@@ -10728,7 +10728,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10728
10728
|
lookupSymbolFeatures(e, i, a, o, u, h, f, g) {
|
|
10729
10729
|
const y = {};
|
|
10730
10730
|
this.loadVTLayers();
|
|
10731
|
-
const v =
|
|
10731
|
+
const v = gs(u.filterSpec, u.globalState);
|
|
10732
10732
|
for (const w of e) this.loadMatchingFeature(y, a, o, w, v, h, f, g, i);
|
|
10733
10733
|
return y;
|
|
10734
10734
|
}
|
|
@@ -10808,12 +10808,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10808
10808
|
return new Pe(r.x + (i - r.y) / (e.y - r.y) * (e.x - r.x), i);
|
|
10809
10809
|
}
|
|
10810
10810
|
Ne("FeatureIndex", Df, { omit: ["rawTileData", "sourceLayerCoder"] });
|
|
10811
|
-
class
|
|
10811
|
+
class es extends Pe {
|
|
10812
10812
|
constructor(e, i, a, o) {
|
|
10813
10813
|
super(e, i), this.angle = a, o !== void 0 && (this.segment = o);
|
|
10814
10814
|
}
|
|
10815
10815
|
clone() {
|
|
10816
|
-
return new
|
|
10816
|
+
return new es(this.x, this.y, this.angle, this.segment);
|
|
10817
10817
|
}
|
|
10818
10818
|
}
|
|
10819
10819
|
function Ff(r, e, i, a, o) {
|
|
@@ -10854,7 +10854,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10854
10854
|
for (let v = 0; v < r.length - 1; v++) {
|
|
10855
10855
|
const w = r[v], S = r[v + 1], P = w.dist(S);
|
|
10856
10856
|
if (g + P > y) {
|
|
10857
|
-
const A = (y - g) / P, C = Jt.number(w.x, S.x, A), z = Jt.number(w.y, S.y, A), B = new
|
|
10857
|
+
const A = (y - g) / P, C = Jt.number(w.x, S.x, A), z = Jt.number(w.y, S.y, A), B = new es(C, z, S.angleTo(w), v);
|
|
10858
10858
|
return B._round(), !h || Ff(r, B, f, h, e) ? B : void 0;
|
|
10859
10859
|
}
|
|
10860
10860
|
g += P;
|
|
@@ -10873,7 +10873,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10873
10873
|
S += i;
|
|
10874
10874
|
const O = (S - w) / B, V = Jt.number(C.x, z.x, O), H = Jt.number(C.y, z.y, O);
|
|
10875
10875
|
if (V >= 0 && V < g && H >= 0 && H < g && S - y >= 0 && S + y <= v) {
|
|
10876
|
-
const J = new
|
|
10876
|
+
const J = new es(V, H, q, A);
|
|
10877
10877
|
J._round(), a && !Ff(r, J, u, a, o) || P.push(J);
|
|
10878
10878
|
}
|
|
10879
10879
|
}
|
|
@@ -10927,7 +10927,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10927
10927
|
function Yu(r, e, i, a) {
|
|
10928
10928
|
return r - e * i / a;
|
|
10929
10929
|
}
|
|
10930
|
-
Ne("Anchor",
|
|
10930
|
+
Ne("Anchor", es);
|
|
10931
10931
|
class Ku {
|
|
10932
10932
|
constructor(e, i, a, o, u, h, f, g, y, v) {
|
|
10933
10933
|
var w;
|
|
@@ -10986,7 +10986,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
10986
10986
|
}
|
|
10987
10987
|
}
|
|
10988
10988
|
function q_(r, e = 1, i = !1) {
|
|
10989
|
-
const a =
|
|
10989
|
+
const a = Ns.fromPoints(r[0]), o = Math.min(a.width(), a.height());
|
|
10990
10990
|
let u = o / 2;
|
|
10991
10991
|
const h = new Z_([], W_), { minX: f, minY: g, maxX: y, maxY: v } = a;
|
|
10992
10992
|
if (o === 0) return new Pe(f, g);
|
|
@@ -11133,8 +11133,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11133
11133
|
a && Ce !== "none" && (r.allowVerticalPlacement && i.vertical && (we = Fd(a, i.vertical, Ce, P.get("icon-text-fit-padding"), A, z)), C && (a = Fd(a, C, Ce, P.get("icon-text-fit-padding"), A, z)));
|
|
11134
11134
|
const _e = v ? w.line.getGranularityForZoomLevel(v.z) : 1, je = (Oe, Ue) => {
|
|
11135
11135
|
Ue.x < 0 || Ue.x >= ht || Ue.y < 0 || Ue.y >= ht || (function(Be, He, Tt, dt, ei, lr, Ri, ti, Xt, At, ui, wi, Zt, Vr, cr, jr, bn, Zi, ai, Li, hi, qi, wa, zn, pc) {
|
|
11136
|
-
const
|
|
11137
|
-
let
|
|
11136
|
+
const ts = Be.addToLineVertexArray(He, Tt);
|
|
11137
|
+
let Vs, Go, $o, Zo, Yf = 0, Kf = 0, Jf = 0, Qf = 0, Pp = -1, Ip = -1;
|
|
11138
11138
|
const Ta = {};
|
|
11139
11139
|
let em = Ht("");
|
|
11140
11140
|
if (Be.allowVerticalPlacement && dt.vertical) {
|
|
@@ -11142,59 +11142,59 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11142
11142
|
$o = new Ku(Xt, He, At, ui, wi, dt.vertical, Zt, Vr, cr, yr), Ri && (Zo = new Ku(Xt, He, At, ui, wi, Ri, bn, Zi, cr, yr));
|
|
11143
11143
|
}
|
|
11144
11144
|
if (ei) {
|
|
11145
|
-
const yr = ti.layout.get("icon-rotate").evaluate(hi, {}), pn = ti.layout.get("icon-text-fit") !== "none",
|
|
11146
|
-
Go = new Ku(Xt, He, At, ui, wi, ei, bn, Zi, !1, yr), Yf = 4 *
|
|
11147
|
-
const
|
|
11145
|
+
const yr = ti.layout.get("icon-rotate").evaluate(hi, {}), pn = ti.layout.get("icon-text-fit") !== "none", js = jf(ei, yr, wa, pn), Rn = Ri ? jf(Ri, yr, wa, pn) : void 0;
|
|
11146
|
+
Go = new Ku(Xt, He, At, ui, wi, ei, bn, Zi, !1, yr), Yf = 4 * js.length;
|
|
11147
|
+
const Us = Be.iconSizeData;
|
|
11148
11148
|
let qn = null;
|
|
11149
|
-
|
|
11149
|
+
Us.kind === "source" ? (qn = [va * ti.layout.get("icon-size").evaluate(hi, {})], qn[0] > Ka && qt(`${Be.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : Us.kind === "composite" && (qn = [va * qi.compositeIconSizes[0].evaluate(hi, {}, zn), va * qi.compositeIconSizes[1].evaluate(hi, {}, zn)], (qn[0] > Ka || qn[1] > Ka) && qt(`${Be.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), Be.addSymbols(Be.icon, js, qn, Li, ai, hi, E.aA.none, He, ts.lineStartIndex, ts.lineLength, -1, zn), Pp = Be.icon.placedSymbolArray.length - 1, Rn && (Kf = 4 * Rn.length, Be.addSymbols(Be.icon, Rn, qn, Li, ai, hi, E.aA.vertical, He, ts.lineStartIndex, ts.lineLength, -1, zn), Ip = Be.icon.placedSymbolArray.length - 1);
|
|
11150
11150
|
}
|
|
11151
11151
|
const tm = Object.keys(dt.horizontal);
|
|
11152
11152
|
for (const yr of tm) {
|
|
11153
11153
|
const pn = dt.horizontal[yr];
|
|
11154
|
-
if (!
|
|
11154
|
+
if (!Vs) {
|
|
11155
11155
|
em = Ht(pn.text);
|
|
11156
11156
|
const Rn = ti.layout.get("text-rotate").evaluate(hi, {}, zn);
|
|
11157
|
-
|
|
11157
|
+
Vs = new Ku(Xt, He, At, ui, wi, pn, Zt, Vr, cr, Rn);
|
|
11158
11158
|
}
|
|
11159
|
-
const
|
|
11160
|
-
if (Jf += Zf(Be, He, pn, lr, ti, cr, hi, jr,
|
|
11159
|
+
const js = pn.positionedLines.length === 1;
|
|
11160
|
+
if (Jf += Zf(Be, He, pn, lr, ti, cr, hi, jr, ts, dt.vertical ? E.aA.horizontal : E.aA.horizontalOnly, js ? tm : [yr], Ta, Pp, qi, zn), js) break;
|
|
11161
11161
|
}
|
|
11162
|
-
dt.vertical && (Qf += Zf(Be, He, dt.vertical, lr, ti, cr, hi, jr,
|
|
11163
|
-
const K_ =
|
|
11162
|
+
dt.vertical && (Qf += Zf(Be, He, dt.vertical, lr, ti, cr, hi, jr, ts, E.aA.vertical, ["vertical"], Ta, Ip, qi, zn));
|
|
11163
|
+
const K_ = Vs ? Vs.boxStartIndex : Be.collisionBoxArray.length, J_ = Vs ? Vs.boxEndIndex : Be.collisionBoxArray.length, Q_ = $o ? $o.boxStartIndex : Be.collisionBoxArray.length, ey = $o ? $o.boxEndIndex : Be.collisionBoxArray.length, ty = Go ? Go.boxStartIndex : Be.collisionBoxArray.length, iy = Go ? Go.boxEndIndex : Be.collisionBoxArray.length, ry = Zo ? Zo.boxStartIndex : Be.collisionBoxArray.length, ny = Zo ? Zo.boxEndIndex : Be.collisionBoxArray.length;
|
|
11164
11164
|
let kn = -1;
|
|
11165
11165
|
const Qu = (yr, pn) => yr && yr.circleDiameter ? Math.max(yr.circleDiameter, pn) : pn;
|
|
11166
|
-
kn = Qu(
|
|
11166
|
+
kn = Qu(Vs, kn), kn = Qu($o, kn), kn = Qu(Go, kn), kn = Qu(Zo, kn);
|
|
11167
11167
|
const im = kn > -1 ? 1 : 0;
|
|
11168
11168
|
im && (kn *= pc / Ui), Be.glyphOffsetArray.length >= Fo.MAX_GLYPHS && qt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), hi.sortKey !== void 0 && Be.addToSortKeyRanges(Be.symbolInstances.length, hi.sortKey);
|
|
11169
11169
|
const ay = $f(ti, hi, zn), [sy, oy] = (function(yr, pn) {
|
|
11170
|
-
const
|
|
11171
|
-
if (Rn?.length > 0) for (let
|
|
11172
|
-
const qn = Rn[
|
|
11173
|
-
yr.emplaceBack(E.aQ[Rn[
|
|
11170
|
+
const js = yr.length, Rn = pn?.values;
|
|
11171
|
+
if (Rn?.length > 0) for (let Us = 0; Us < Rn.length; Us += 2) {
|
|
11172
|
+
const qn = Rn[Us + 1];
|
|
11173
|
+
yr.emplaceBack(E.aQ[Rn[Us]], qn[0], qn[1]);
|
|
11174
11174
|
}
|
|
11175
|
-
return [
|
|
11175
|
+
return [js, yr.length];
|
|
11176
11176
|
})(Be.textAnchorOffsets, ay);
|
|
11177
11177
|
Be.symbolInstances.emplaceBack(He.x, He.y, Ta.right >= 0 ? Ta.right : -1, Ta.center >= 0 ? Ta.center : -1, Ta.left >= 0 ? Ta.left : -1, Ta.vertical || -1, Pp, Ip, em, K_, J_, Q_, ey, ty, iy, ry, ny, At, Jf, Qf, Yf, Kf, im, 0, Zt, kn, sy, oy);
|
|
11178
11178
|
})(r, Ue, Oe, i, a, o, we, r.layers[0], r.collisionBoxArray, e.index, e.sourceLayerIndex, r.index, B, [H, H, H, H], Te, g, O, J, be, A, e, u, y, v, h);
|
|
11179
11179
|
};
|
|
11180
11180
|
if (Ie === "line") for (const Oe of kf(e.geometry, 0, 0, ht, ht)) {
|
|
11181
|
-
const Ue =
|
|
11181
|
+
const Ue = Fs(Oe, _e), Be = $_(Ue, V, he, i.vertical || C, a, 24, q, r.overscaling, ht);
|
|
11182
11182
|
for (const He of Be) C && X_(r, C.text, Le, He) || je(Ue, He);
|
|
11183
11183
|
}
|
|
11184
11184
|
else if (Ie === "line-center") {
|
|
11185
11185
|
for (const Oe of e.geometry) if (Oe.length > 1) {
|
|
11186
|
-
const Ue =
|
|
11186
|
+
const Ue = Fs(Oe, _e), Be = G_(Ue, he, i.vertical || C, a, 24, q);
|
|
11187
11187
|
Be && je(Ue, Be);
|
|
11188
11188
|
}
|
|
11189
11189
|
} else if (e.type === "Polygon") for (const Oe of Ks(e.geometry, 0)) {
|
|
11190
11190
|
const Ue = q_(Oe, 16);
|
|
11191
|
-
je(
|
|
11191
|
+
je(Fs(Oe[0], _e, !0), new es(Ue.x, Ue.y, 0));
|
|
11192
11192
|
}
|
|
11193
11193
|
else if (e.type === "LineString") for (const Oe of e.geometry) {
|
|
11194
|
-
const Ue =
|
|
11195
|
-
je(Ue, new
|
|
11194
|
+
const Ue = Fs(Oe, _e);
|
|
11195
|
+
je(Ue, new es(Ue[0].x, Ue[0].y, 0));
|
|
11196
11196
|
}
|
|
11197
|
-
else if (e.type === "Point") for (const Oe of e.geometry) for (const Ue of Oe) je([Ue], new
|
|
11197
|
+
else if (e.type === "Point") for (const Oe of e.geometry) for (const Ue of Oe) je([Ue], new es(Ue.x, Ue.y, 0));
|
|
11198
11198
|
}
|
|
11199
11199
|
function Zf(r, e, i, a, o, u, h, f, g, y, v, w, S, P, A) {
|
|
11200
11200
|
const C = (function(q, O, V, H, J, he, Te, be) {
|
|
@@ -11226,7 +11226,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11226
11226
|
return Le;
|
|
11227
11227
|
})(0, i, f, o, u, h, a, r.allowVerticalPlacement), z = r.textSizeData;
|
|
11228
11228
|
let B = null;
|
|
11229
|
-
z.kind === "source" ? (B = [va * o.layout.get("text-size").evaluate(h, {})], B[0] >
|
|
11229
|
+
z.kind === "source" ? (B = [va * o.layout.get("text-size").evaluate(h, {})], B[0] > Ka && qt(`${r.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)) : z.kind === "composite" && (B = [va * P.compositeTextSizes[0].evaluate(h, {}, A), va * P.compositeTextSizes[1].evaluate(h, {}, A)], (B[0] > Ka || B[1] > Ka) && qt(`${r.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)), r.addSymbols(r.text, C, B, f, u, h, y, e, g.lineStartIndex, g.lineLength, S, A);
|
|
11230
11230
|
for (const q of v) w[q] = r.text.placedSymbolArray.length - 1;
|
|
11231
11231
|
return 4 * C.length;
|
|
11232
11232
|
}
|
|
@@ -11350,9 +11350,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11350
11350
|
const r = performance.getEntriesByName(Tp)[0].duration, e = performance.getEntriesByName(Sp)[0].duration, i = hc.length, a = 1 / (hc.reduce(((u, h) => u + h), 0) / i / 1e3), o = hc.filter(((u) => u > wp)).reduce(((u, h) => u + (h - wp) / wp), 0);
|
|
11351
11351
|
return { loadTime: r, fullLoadTime: e, fps: a, percentDroppedFrames: o / (i + o) * 100, totalFrames: i };
|
|
11352
11352
|
} };
|
|
11353
|
-
E.$ = xe, E.A = ot, E.B = Ml, E.C =
|
|
11353
|
+
E.$ = xe, E.A = ot, E.B = Ml, E.C = Za, E.D = qe, E.E = gt, E.F = function([r, e, i]) {
|
|
11354
11354
|
return e += 90, e *= Math.PI / 180, i *= Math.PI / 180, { x: r * Math.cos(e) * Math.sin(i), y: r * Math.sin(e) * Math.sin(i), z: r * Math.cos(i) };
|
|
11355
|
-
}, E.G = Jt, E.H = Nt, E.I = Zh, E.J =
|
|
11355
|
+
}, E.G = Jt, E.H = Nt, E.I = Zh, E.J = Ss, E.K = function(r) {
|
|
11356
11356
|
if (Ft == null) {
|
|
11357
11357
|
const e = r.navigator ? r.navigator.userAgent : null;
|
|
11358
11358
|
Ft = !!r.safari || !(!e || !(/\b(iPad|iPhone|iPod)\b/.test(e) || e.match("Safari") && !e.match("Chrome")));
|
|
@@ -11405,10 +11405,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11405
11405
|
return c(this, void 0, void 0, (function* () {
|
|
11406
11406
|
if (e.type === "<response>") {
|
|
11407
11407
|
const o = this.resolveRejects[r];
|
|
11408
|
-
return delete this.resolveRejects[r], o ? void (e.error ? o.reject(
|
|
11408
|
+
return delete this.resolveRejects[r], o ? void (e.error ? o.reject(Es(e.error)) : o.resolve(Es(e.data))) : void 0;
|
|
11409
11409
|
}
|
|
11410
11410
|
if (!this.messageHandlers[e.type]) return void this.completeTask(r, new Error(`Could not find a registered handler for ${e.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));
|
|
11411
|
-
const i =
|
|
11411
|
+
const i = Es(e.data), a = new AbortController();
|
|
11412
11412
|
this.abortControllers[r] = a;
|
|
11413
11413
|
try {
|
|
11414
11414
|
const o = yield this.messageHandlers[e.type](e.sourceMapId, i, a);
|
|
@@ -11446,7 +11446,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11446
11446
|
o in r && (i[o] = r[o]);
|
|
11447
11447
|
}
|
|
11448
11448
|
return i;
|
|
11449
|
-
}, E.V =
|
|
11449
|
+
}, E.V = Ja, E.W = Hi, E.X = Zd, E.Y = $d, E.Z = Q, E._ = c, E.a = N, E.a$ = Hd, E.a0 = xr, E.a1 = Sn, E.a2 = un, E.a3 = Wd, E.a4 = Vu, E.a5 = ht, E.a6 = function(r, e, i) {
|
|
11450
11450
|
if (!r) return e || {};
|
|
11451
11451
|
if (!e) return r || {};
|
|
11452
11452
|
const a = Kd(r), o = Kd(e);
|
|
@@ -11528,7 +11528,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11528
11528
|
i = [i[0] * f - i[1] * h, i[0] * h + i[1] * f];
|
|
11529
11529
|
}
|
|
11530
11530
|
return [o ? i[0] : rn(e, i[0], r.zoom), o ? i[1] : rn(e, i[1], r.zoom)];
|
|
11531
|
-
}, E.aR = Wh, E.aS = _p, E.aT = qh, E.aU = yp, E.aV = xi, E.aW = Ru, E.aX = I, E.aY = Ae, E.aZ = ge, E.a_ = Ii, E.aa = cc, E.ab = ac, E.ac =
|
|
11531
|
+
}, E.aR = Wh, E.aS = _p, E.aT = qh, E.aU = yp, E.aV = xi, E.aW = Ru, E.aX = I, E.aY = Ae, E.aZ = ge, E.a_ = Ii, E.aa = cc, E.ab = ac, E.ac = Ns, E.ad = 25, E.ae = Qh, E.af = (r) => {
|
|
11532
11532
|
const e = window.document.createElement("video");
|
|
11533
11533
|
return e.muted = !0, new Promise(((i) => {
|
|
11534
11534
|
e.onloadstart = () => {
|
|
@@ -11541,7 +11541,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
11541
11541
|
}));
|
|
11542
11542
|
}, E.ag = De, E.ah = function() {
|
|
11543
11543
|
return vr++;
|
|
11544
|
-
}, E.ai = t, E.aj = Fo, E.ak =
|
|
11544
|
+
}, E.ai = t, E.aj = Fo, E.ak = gs, E.al = xa, E.am = Qd, E.an = function(r) {
|
|
11545
11545
|
const e = {};
|
|
11546
11546
|
if (r.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((i, a, o, u) => {
|
|
11547
11547
|
const h = o || u;
|
|
@@ -12005,7 +12005,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12005
12005
|
this.gl.uniform1fv(this.location, e);
|
|
12006
12006
|
}
|
|
12007
12007
|
}
|
|
12008
|
-
}, E.cb = class extends
|
|
12008
|
+
}, E.cb = class extends ks {
|
|
12009
12009
|
}, E.cc = Bg, E.cd = class extends fa {
|
|
12010
12010
|
}, E.ce = Lh, E.cf = function(r) {
|
|
12011
12011
|
return r <= 1 ? 1 : Math.pow(2, Math.ceil(Math.log(r) / Math.LN2));
|
|
@@ -12067,7 +12067,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12067
12067
|
return new Fu(r).readFields(Kg, []);
|
|
12068
12068
|
}, E.p = zd, E.q = function(r) {
|
|
12069
12069
|
return /[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(r));
|
|
12070
|
-
}, E.r = Hl, E.s = mn, E.t = gr, E.u = de, E.v = Sh, E.w = qt, E.x = zl, E.y =
|
|
12070
|
+
}, E.r = Hl, E.s = mn, E.t = gr, E.u = de, E.v = Sh, E.w = qt, E.x = zl, E.y = Ts, E.z = vo;
|
|
12071
12071
|
})), ve("worker", ["./shared"], (function(E) {
|
|
12072
12072
|
class c {
|
|
12073
12073
|
constructor(R, k) {
|
|
@@ -15330,7 +15330,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15330
15330
|
var l, d, m, _, x, b, T;
|
|
15331
15331
|
return c.Q(s, s, [1 / n, 1 / n, 1]), s;
|
|
15332
15332
|
}
|
|
15333
|
-
function
|
|
15333
|
+
function Pa(p, t, n, s) {
|
|
15334
15334
|
if (p) {
|
|
15335
15335
|
const l = c.N();
|
|
15336
15336
|
if (!t) {
|
|
@@ -15640,7 +15640,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15640
15640
|
return this.opacity === 0 && !this.placed;
|
|
15641
15641
|
}
|
|
15642
15642
|
}
|
|
15643
|
-
class
|
|
15643
|
+
class ns {
|
|
15644
15644
|
constructor(t, n, s, l, d) {
|
|
15645
15645
|
this.text = new Ic(t ? t.text : null, n, s, d), this.icon = new Ic(t ? t.icon : null, n, l, d);
|
|
15646
15646
|
}
|
|
@@ -15742,8 +15742,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15742
15742
|
let Zn = null, Eu = U === "never" ? 1 : 2, Eo = "never";
|
|
15743
15743
|
ki && Eu++;
|
|
15744
15744
|
for (let Zl = 0; Zl < Eu; Zl++) {
|
|
15745
|
-
for (let
|
|
15746
|
-
const ql = l.textAnchorOffsets.get(
|
|
15745
|
+
for (let Xa = Yi; Xa < Jr; Xa++) {
|
|
15746
|
+
const ql = l.textAnchorOffsets.get(Xa);
|
|
15747
15747
|
if (ki && ql.textAnchor !== ki) continue;
|
|
15748
15748
|
const Wl = this.attemptAnchorPlacement(ql, ni, $l, Mu, ya, ee, ne, T, me, x, F, Eo, Ee, l, Iu, m, _, xa, ye);
|
|
15749
15749
|
if (Wl && (Zn = Wl.placedGlyphBoxes, Zn && Zn.placeable)) return zt = !0, Oi = Wl.shift, Zn;
|
|
@@ -15771,8 +15771,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15771
15771
|
const ji = (ar) => this.collisionIndex.placeCollisionBox(ar, K, T, me, x, ne, ee, _, F.predicate, ye, X && Oi ? Oi : void 0, Ae);
|
|
15772
15772
|
zi && zi.placeable && $e.verticalIconBox ? (Xi = ji($e.verticalIconBox), Qt = Xi.placeable) : (Xi = ji($e.iconBox), Qt = Xi.placeable), Gt = Gt && Xi.offscreen;
|
|
15773
15773
|
}
|
|
15774
|
-
const Mo = j || Ee.numHorizontalGlyphVertices === 0 && Ee.numVerticalGlyphVertices === 0,
|
|
15775
|
-
Mo ||
|
|
15774
|
+
const Mo = j || Ee.numHorizontalGlyphVertices === 0 && Ee.numVerticalGlyphVertices === 0, Ha = G || Ee.numIconVertices === 0;
|
|
15775
|
+
Mo || Ha ? Ha ? Mo || (Qt = Qt && zt) : zt = Qt && zt : Qt = zt = Qt && zt;
|
|
15776
15776
|
const vn = Qt && Xi.placeable;
|
|
15777
15777
|
if (zt && vi.placeable && this.collisionIndex.insertCollisionBox(vi.box, U, d.get("text-ignore-placement"), l.bucketInstanceId, zi && zi.placeable && xn ? xn : _r, F.ID), vn && this.collisionIndex.insertCollisionBox(Xi.box, K, d.get("icon-ignore-placement"), l.bucketInstanceId, $n, F.ID), bi && zt && this.collisionIndex.insertCollisionCircles(bi.circles, U, d.get("text-ignore-placement"), l.bucketInstanceId, _r, F.ID), s && this.storeCollisionData(l.bucketInstanceId, nt, $e, vi, Xi, bi), Ee.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
|
|
15778
15778
|
if (l.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
|
|
@@ -15818,12 +15818,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15818
15818
|
const l = n ? n.symbolFadeChange(t) : 1, d = n ? n.opacities : {}, m = n ? n.variableOffsets : {}, _ = n ? n.placedOrientations : {};
|
|
15819
15819
|
for (const x in this.placements) {
|
|
15820
15820
|
const b = this.placements[x], T = d[x];
|
|
15821
|
-
T ? (this.opacities[x] = new
|
|
15821
|
+
T ? (this.opacities[x] = new ns(T, l, b.text, b.icon), s = s || b.text !== T.text.placed || b.icon !== T.icon.placed) : (this.opacities[x] = new ns(null, l, b.text, b.icon, b.skipFade), s = s || b.text || b.icon);
|
|
15822
15822
|
}
|
|
15823
15823
|
for (const x in d) {
|
|
15824
15824
|
const b = d[x];
|
|
15825
15825
|
if (!this.opacities[x]) {
|
|
15826
|
-
const T = new
|
|
15826
|
+
const T = new ns(b, l, !1, !1);
|
|
15827
15827
|
T.isHidden() || (this.opacities[x] = T, s = s || b.text.placed || b.icon.placed);
|
|
15828
15828
|
}
|
|
15829
15829
|
}
|
|
@@ -15841,11 +15841,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15841
15841
|
}
|
|
15842
15842
|
updateBucketOpacities(t, n, s, l) {
|
|
15843
15843
|
t.hasTextData() && (t.text.opacityVertexArray.clear(), t.text.hasVisibleVertices = !1), t.hasIconData() && (t.icon.opacityVertexArray.clear(), t.icon.hasVisibleVertices = !1), t.hasIconCollisionBoxData() && t.iconCollisionBox.collisionVertexArray.clear(), t.hasTextCollisionBoxData() && t.textCollisionBox.collisionVertexArray.clear();
|
|
15844
|
-
const d = t.layers[0], m = d.layout, _ = new
|
|
15844
|
+
const d = t.layers[0], m = d.layout, _ = new ns(null, 0, !1, !1, !0), x = m.get("text-allow-overlap"), b = m.get("icon-allow-overlap"), T = d._unevaluatedLayout.hasValue("text-variable-anchor") || d._unevaluatedLayout.hasValue("text-variable-anchor-offset"), M = m.get("text-rotation-alignment") === "map", I = m.get("text-pitch-alignment") === "map", D = m.get("icon-text-fit") !== "none", F = new ns(null, 0, x && (b || !t.hasIconData() || m.get("icon-optional")), b && (x || !t.hasTextData() || m.get("text-optional")), !0);
|
|
15845
15845
|
!t.collisionArrays && l && (t.hasIconCollisionBoxData() || t.hasTextCollisionBoxData()) && t.deserializeCollisionBoxes(l);
|
|
15846
15846
|
const j = (U, $, K) => {
|
|
15847
15847
|
for (let Z = 0; Z < $ / 4; Z++) U.opacityVertexArray.emplaceBack(K);
|
|
15848
|
-
U.hasVisibleVertices = U.hasVisibleVertices || K !==
|
|
15848
|
+
U.hasVisibleVertices = U.hasVisibleVertices || K !== ss;
|
|
15849
15849
|
}, G = this.collisionBoxArrays.get(t.bucketInstanceId);
|
|
15850
15850
|
for (let U = 0; U < t.symbolInstances.length; U++) {
|
|
15851
15851
|
const $ = t.symbolInstances.get(U), { numHorizontalGlyphVertices: K, numVerticalGlyphVertices: Z, crossTileID: ee } = $;
|
|
@@ -15854,7 +15854,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15854
15854
|
const X = $.numIconVertices > 0, oe = this.placedOrientations[$.crossTileID], ge = oe === c.aA.vertical, pe = oe === c.aA.horizontal || oe === c.aA.horizontalOnly;
|
|
15855
15855
|
if (K > 0 || Z > 0) {
|
|
15856
15856
|
const ye = Jo(ne.text);
|
|
15857
|
-
j(t.text, K, ge ?
|
|
15857
|
+
j(t.text, K, ge ? ss : ye), j(t.text, Z, pe ? ss : ye);
|
|
15858
15858
|
const Ae = ne.text.isHidden();
|
|
15859
15859
|
[$.rightJustifiedTextSymbolIndex, $.centerJustifiedTextSymbolIndex, $.leftJustifiedTextSymbolIndex].forEach((($e) => {
|
|
15860
15860
|
$e >= 0 && (t.text.placedSymbolArray.get($e).hidden = Ae || ge ? 1 : 0);
|
|
@@ -15866,7 +15866,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15866
15866
|
}
|
|
15867
15867
|
if (X) {
|
|
15868
15868
|
const ye = Jo(ne.icon), Ae = !(D && $.verticalPlacedIconSymbolIndex && ge);
|
|
15869
|
-
$.placedIconSymbolIndex >= 0 && (j(t.icon, $.numIconVertices, Ae ? ye :
|
|
15869
|
+
$.placedIconSymbolIndex >= 0 && (j(t.icon, $.numIconVertices, Ae ? ye : ss), t.icon.placedSymbolArray.get($.placedIconSymbolIndex).hidden = ne.icon.isHidden()), $.verticalPlacedIconSymbolIndex >= 0 && (j(t.icon, $.numVerticalIconVertices, Ae ? ss : ye), t.icon.placedSymbolArray.get($.verticalPlacedIconSymbolIndex).hidden = ne.icon.isHidden());
|
|
15870
15870
|
}
|
|
15871
15871
|
const me = G && G.has(U) ? G.get(U) : { text: null, icon: null };
|
|
15872
15872
|
if (t.hasIconCollisionBoxData() || t.hasTextCollisionBoxData()) {
|
|
@@ -15918,14 +15918,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15918
15918
|
const m = s[0] - li, _ = s[1] - li, x = s[2] - li, b = s[3] - li;
|
|
15919
15919
|
p.emplaceBack(t ? 1 : 0, n ? 1 : 0, l || 0, d || 0, m, _), p.emplaceBack(t ? 1 : 0, n ? 1 : 0, l || 0, d || 0, x, _), p.emplaceBack(t ? 1 : 0, n ? 1 : 0, l || 0, d || 0, x, b), p.emplaceBack(t ? 1 : 0, n ? 1 : 0, l || 0, d || 0, m, b);
|
|
15920
15920
|
}
|
|
15921
|
-
const Yo = Math.pow(2, 25), Ko = Math.pow(2, 24), sh = Math.pow(2, 17),
|
|
15921
|
+
const Yo = Math.pow(2, 25), Ko = Math.pow(2, 24), sh = Math.pow(2, 17), as = Math.pow(2, 16), qs = Math.pow(2, 9), Cc = Math.pow(2, 8), Ia = Math.pow(2, 1);
|
|
15922
15922
|
function Jo(p) {
|
|
15923
15923
|
if (p.opacity === 0 && !p.placed) return 0;
|
|
15924
15924
|
if (p.opacity === 1 && p.placed) return 4294967295;
|
|
15925
15925
|
const t = p.placed ? 1 : 0, n = Math.floor(127 * p.opacity);
|
|
15926
|
-
return n * Yo + t * Ko + n * sh + t *
|
|
15926
|
+
return n * Yo + t * Ko + n * sh + t * as + n * qs + t * Cc + n * Ia + t;
|
|
15927
15927
|
}
|
|
15928
|
-
const
|
|
15928
|
+
const ss = 0;
|
|
15929
15929
|
class On {
|
|
15930
15930
|
constructor(t) {
|
|
15931
15931
|
this._sortAcrossTiles = t.layout.get("symbol-z-order") !== "viewport-y" && !t.layout.get("symbol-sort-key").isConstant(), this._currentTileIndex = 0, this._currentPartIndex = 0, this._seenCrossTileIDs = {}, this._bucketParts = [];
|
|
@@ -15937,7 +15937,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15937
15937
|
return !1;
|
|
15938
15938
|
}
|
|
15939
15939
|
}
|
|
15940
|
-
class
|
|
15940
|
+
class Ma {
|
|
15941
15941
|
constructor(t, n, s, l, d, m, _, x) {
|
|
15942
15942
|
this.placement = new Ho(t, n, m, _, x), this._currentPlacementIndex = s.length - 1, this._forceFullPlacement = l, this._showCollisionBoxes = d, this._done = !1;
|
|
15943
15943
|
}
|
|
@@ -16971,7 +16971,7 @@ uniform ${T} ${M} u_${I};
|
|
|
16971
16971
|
setErrorQueryLatitudeDegrees(t) {
|
|
16972
16972
|
}
|
|
16973
16973
|
}
|
|
16974
|
-
class
|
|
16974
|
+
class Ea {
|
|
16975
16975
|
constructor(t = 0, n = 0, s = 0, l = 0) {
|
|
16976
16976
|
if (isNaN(t) || t < 0 || isNaN(n) || n < 0 || isNaN(s) || s < 0 || isNaN(l) || l < 0) throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");
|
|
16977
16977
|
this.top = t, this.bottom = n, this.left = s, this.right = l;
|
|
@@ -16987,7 +16987,7 @@ uniform ${T} ${M} u_${I};
|
|
|
16987
16987
|
return this.top === t.top && this.bottom === t.bottom && this.left === t.left && this.right === t.right;
|
|
16988
16988
|
}
|
|
16989
16989
|
clone() {
|
|
16990
|
-
return new
|
|
16990
|
+
return new Ea(this.top, this.bottom, this.left, this.right);
|
|
16991
16991
|
}
|
|
16992
16992
|
toJSON() {
|
|
16993
16993
|
return { top: this.top, bottom: this.bottom, left: this.left, right: this.right };
|
|
@@ -17004,10 +17004,10 @@ uniform ${T} ${M} u_${I};
|
|
|
17004
17004
|
class Yn {
|
|
17005
17005
|
constructor(t, n) {
|
|
17006
17006
|
var s;
|
|
17007
|
-
this.applyConstrain = (l, d) => this._constrainOverride !== null ? this._constrainOverride(l, d) : this._callbacks.defaultConstrain(l, d), this._callbacks = t, this._tileSize = 512, this._renderWorldCopies = n?.renderWorldCopies === void 0 || !!n?.renderWorldCopies, this._minZoom = n?.minZoom || 0, this._maxZoom = n?.maxZoom || 22, this._minPitch = n?.minPitch == null ? 0 : n?.minPitch, this._maxPitch = n?.maxPitch == null ? 60 : n?.maxPitch, this._constrainOverride = (s = n?.constrainOverride) !== null && s !== void 0 ? s : null, this.setMaxBounds(), this._width = 0, this._height = 0, this._center = new c.V(0, 0), this._elevation = 0, this._zoom = 0, this._tileZoom = _i(this._zoom), this._scale = c.ar(this._zoom), this._bearingInRadians = 0, this._fovInRadians = 0.6435011087932844, this._pitchInRadians = 0, this._rollInRadians = 0, this._unmodified = !0, this._edgeInsets = new
|
|
17007
|
+
this.applyConstrain = (l, d) => this._constrainOverride !== null ? this._constrainOverride(l, d) : this._callbacks.defaultConstrain(l, d), this._callbacks = t, this._tileSize = 512, this._renderWorldCopies = n?.renderWorldCopies === void 0 || !!n?.renderWorldCopies, this._minZoom = n?.minZoom || 0, this._maxZoom = n?.maxZoom || 22, this._minPitch = n?.minPitch == null ? 0 : n?.minPitch, this._maxPitch = n?.maxPitch == null ? 60 : n?.maxPitch, this._constrainOverride = (s = n?.constrainOverride) !== null && s !== void 0 ? s : null, this.setMaxBounds(), this._width = 0, this._height = 0, this._center = new c.V(0, 0), this._elevation = 0, this._zoom = 0, this._tileZoom = _i(this._zoom), this._scale = c.ar(this._zoom), this._bearingInRadians = 0, this._fovInRadians = 0.6435011087932844, this._pitchInRadians = 0, this._rollInRadians = 0, this._unmodified = !0, this._edgeInsets = new Ea(), this._minElevationForCurrentTile = 0, this._autoCalculateNearFarZ = !0;
|
|
17008
17008
|
}
|
|
17009
17009
|
apply(t, n, s) {
|
|
17010
|
-
this._constrainOverride = t.constrainOverride, this._latRange = t.latRange, this._lngRange = t.lngRange, this._width = t.width, this._height = t.height, this._center = t.center, this._elevation = t.elevation, this._minElevationForCurrentTile = t.minElevationForCurrentTile, this._zoom = t.zoom, this._tileZoom = _i(this._zoom), this._scale = c.ar(this._zoom), this._bearingInRadians = t.bearingInRadians, this._fovInRadians = t.fovInRadians, this._pitchInRadians = t.pitchInRadians, this._rollInRadians = t.rollInRadians, this._unmodified = t.unmodified, this._edgeInsets = new
|
|
17010
|
+
this._constrainOverride = t.constrainOverride, this._latRange = t.latRange, this._lngRange = t.lngRange, this._width = t.width, this._height = t.height, this._center = t.center, this._elevation = t.elevation, this._minElevationForCurrentTile = t.minElevationForCurrentTile, this._zoom = t.zoom, this._tileZoom = _i(this._zoom), this._scale = c.ar(this._zoom), this._bearingInRadians = t.bearingInRadians, this._fovInRadians = t.fovInRadians, this._pitchInRadians = t.pitchInRadians, this._rollInRadians = t.rollInRadians, this._unmodified = t.unmodified, this._edgeInsets = new Ea(t.padding.top, t.padding.bottom, t.padding.left, t.padding.right), this._minZoom = t.minZoom, this._maxZoom = t.maxZoom, this._minPitch = t.minPitch, this._maxPitch = t.maxPitch, this._renderWorldCopies = t.renderWorldCopies, this._cameraToCenterDistance = t.cameraToCenterDistance, this._nearZ = t.nearZ, this._farZ = t.farZ, this._autoCalculateNearFarZ = !s && t.autoCalculateNearFarZ, n && this.constrainInternal(), this._calcMatrices();
|
|
17011
17011
|
}
|
|
17012
17012
|
get pixelsToClipSpaceMatrix() {
|
|
17013
17013
|
return this._pixelsToClipSpaceMatrix;
|
|
@@ -17862,36 +17862,36 @@ uniform ${T} ${M} u_${I};
|
|
|
17862
17862
|
}
|
|
17863
17863
|
}
|
|
17864
17864
|
Ut.Replace = [1, 0], Ut.disabled = new Ut(Ut.Replace, c.bq.transparent, [!1, !1, !1, !1]), Ut.unblended = new Ut(Ut.Replace, c.bq.transparent, [!0, !0, !0, !0]), Ut.alphaBlended = new Ut([1, 771], c.bq.transparent, [!0, !0, !0, !0]);
|
|
17865
|
-
const
|
|
17865
|
+
const Aa = 2305;
|
|
17866
17866
|
class yt {
|
|
17867
17867
|
constructor(t, n, s) {
|
|
17868
17868
|
this.enable = t, this.mode = n, this.frontFace = s;
|
|
17869
17869
|
}
|
|
17870
17870
|
}
|
|
17871
|
-
yt.disabled = new yt(!1, 1029,
|
|
17871
|
+
yt.disabled = new yt(!1, 1029, Aa), yt.backCCW = new yt(!0, 1029, Aa), yt.frontCCW = new yt(!0, 1028, Aa);
|
|
17872
17872
|
class lt {
|
|
17873
17873
|
constructor(t, n, s) {
|
|
17874
17874
|
this.func = t, this.mask = n, this.range = s;
|
|
17875
17875
|
}
|
|
17876
17876
|
}
|
|
17877
17877
|
lt.ReadOnly = !1, lt.ReadWrite = !0, lt.disabled = new lt(519, lt.ReadOnly, [0, 1]);
|
|
17878
|
-
const
|
|
17878
|
+
const Ca = 7680;
|
|
17879
17879
|
class wt {
|
|
17880
17880
|
constructor(t, n, s, l, d, m) {
|
|
17881
17881
|
this.test = t, this.ref = n, this.mask = s, this.fail = l, this.depthFail = d, this.pass = m;
|
|
17882
17882
|
}
|
|
17883
17883
|
}
|
|
17884
|
-
wt.disabled = new wt({ func: 519, mask: 0 }, 0, 0,
|
|
17885
|
-
const
|
|
17884
|
+
wt.disabled = new wt({ func: 519, mask: 0 }, 0, 0, Ca, Ca, Ca);
|
|
17885
|
+
const os = /* @__PURE__ */ new WeakMap();
|
|
17886
17886
|
function Hr(p) {
|
|
17887
17887
|
var t;
|
|
17888
|
-
if (
|
|
17888
|
+
if (os.has(p)) return os.get(p);
|
|
17889
17889
|
{
|
|
17890
17890
|
const n = (t = p.getParameter(p.VERSION)) === null || t === void 0 ? void 0 : t.startsWith("WebGL 2.0");
|
|
17891
|
-
return
|
|
17891
|
+
return os.set(p, n), n;
|
|
17892
17892
|
}
|
|
17893
17893
|
}
|
|
17894
|
-
class
|
|
17894
|
+
class Da {
|
|
17895
17895
|
get awaitingQuery() {
|
|
17896
17896
|
return !!this._readbackQueue;
|
|
17897
17897
|
}
|
|
@@ -17934,7 +17934,7 @@ uniform ${T} ${M} u_${I};
|
|
|
17934
17934
|
if (n === t.TIMEOUT_EXPIRED) return;
|
|
17935
17935
|
t.bindBuffer(t.PIXEL_PACK_BUFFER, this._pbo), t.getBufferSubData(t.PIXEL_PACK_BUFFER, 0, this._resultBuffer, 0, 4), t.bindBuffer(t.PIXEL_PACK_BUFFER, null);
|
|
17936
17936
|
} else this._bindFramebuffer(), t.readPixels(0, 0, this._texWidth, this._texHeight, this._texFormat, this._texType, this._resultBuffer);
|
|
17937
|
-
this._readbackQueue = null, this._measuredError =
|
|
17937
|
+
this._readbackQueue = null, this._measuredError = Da._parseRGBA8float(this._resultBuffer), this._lastReadbackFrame = this._updateCount;
|
|
17938
17938
|
}
|
|
17939
17939
|
static _parseRGBA8float(t) {
|
|
17940
17940
|
let n = 0;
|
|
@@ -17961,7 +17961,7 @@ uniform ${T} ${M} u_${I};
|
|
|
17961
17961
|
}
|
|
17962
17962
|
return { vertices: j.buffer.slice(0), indices: U.buffer.slice(0), uses32bitIndices: F };
|
|
17963
17963
|
}
|
|
17964
|
-
const
|
|
17964
|
+
const ls = new c.aW({ fill: new c.bu(128, 2), line: new c.bu(512, 0), tile: new c.bu(128, 32), stencil: new c.bu(128, 1), circle: 3 });
|
|
17965
17965
|
class il {
|
|
17966
17966
|
constructor() {
|
|
17967
17967
|
this._tileMeshCache = {}, this._errorCorrectionUsable = 0, this._errorMeasurementLastValue = 0, this._errorCorrectionPreviousValue = 0, this._errorMeasurementLastChangeTime = -1e3;
|
|
@@ -17988,7 +17988,7 @@ uniform ${T} ${M} u_${I};
|
|
|
17988
17988
|
return ii.projectionMercator.vertexSource;
|
|
17989
17989
|
}
|
|
17990
17990
|
get subdivisionGranularity() {
|
|
17991
|
-
return
|
|
17991
|
+
return ls;
|
|
17992
17992
|
}
|
|
17993
17993
|
get useGlobeControls() {
|
|
17994
17994
|
return !0;
|
|
@@ -18000,7 +18000,7 @@ uniform ${T} ${M} u_${I};
|
|
|
18000
18000
|
this._errorMeasurement && this._errorMeasurement.destroy();
|
|
18001
18001
|
}
|
|
18002
18002
|
updateGPUdependent(t) {
|
|
18003
|
-
this._errorMeasurement || (this._errorMeasurement = new
|
|
18003
|
+
this._errorMeasurement || (this._errorMeasurement = new Da(t));
|
|
18004
18004
|
const n = c.X(this._errorQueryLatitudeDegrees), s = 2 * Math.atan(Math.exp(Math.PI - n * Math.PI * 2)) - 0.5 * Math.PI, l = this._errorMeasurement.updateErrorLoop(n, s), d = Ze();
|
|
18005
18005
|
l !== this._errorMeasurementLastValue && (this._errorCorrectionPreviousValue = this._errorCorrectionUsable, this._errorMeasurementLastValue = l, this._errorMeasurementLastChangeTime = d);
|
|
18006
18006
|
const m = Math.min(Math.max((d - this._errorMeasurementLastChangeTime) / 1e3 / 0.5, 0), 1);
|
|
@@ -18010,7 +18010,7 @@ uniform ${T} ${M} u_${I};
|
|
|
18010
18010
|
return `${t.granularity.toString(36)}_${t.generateBorders ? "b" : ""}${t.extendToNorthPole ? "n" : ""}${t.extendToSouthPole ? "s" : ""}`;
|
|
18011
18011
|
}
|
|
18012
18012
|
getMeshFromTileID(t, n, s, l, d) {
|
|
18013
|
-
const m = (d === "stencil" ?
|
|
18013
|
+
const m = (d === "stencil" ? ls.stencil : ls.tile).getGranularityForZoomLevel(n.z);
|
|
18014
18014
|
return this._getMesh(t, { granularity: m, generateBorders: s, extendToNorthPole: n.y === 0 && l, extendToSouthPole: n.y === (1 << n.z) - 1 && l });
|
|
18015
18015
|
}
|
|
18016
18016
|
_getMesh(t, n) {
|
|
@@ -18131,15 +18131,15 @@ uniform ${T} ${M} u_${I};
|
|
|
18131
18131
|
}
|
|
18132
18132
|
return new c.V(0, t);
|
|
18133
18133
|
}
|
|
18134
|
-
function
|
|
18134
|
+
function cs(p) {
|
|
18135
18135
|
return Math.cos(p * Math.PI / 180);
|
|
18136
18136
|
}
|
|
18137
18137
|
function ci(p, t) {
|
|
18138
|
-
const n =
|
|
18138
|
+
const n = cs(p), s = cs(t);
|
|
18139
18139
|
return c.au(s / n);
|
|
18140
18140
|
}
|
|
18141
18141
|
function Rc(p, t) {
|
|
18142
|
-
const n = p.rotate(t.bearingInRadians), s = t.zoom + ci(t.center.lat, 0), l = c.bv(1 /
|
|
18142
|
+
const n = p.rotate(t.bearingInRadians), s = t.zoom + ci(t.center.lat, 0), l = c.bv(1 / cs(t.center.lat), 1 / cs(Math.min(Math.abs(t.center.lat), 60)), c.by(s, 7, 3, 0, 1)), d = 360 / mr({ worldSize: t.worldSize, center: { lat: t.center.lat } });
|
|
18143
18143
|
return new c.V(t.center.lng - n.x * d * l, c.ao(t.center.lat + n.y * d, -c.ap, c.ap));
|
|
18144
18144
|
}
|
|
18145
18145
|
function nl(p) {
|
|
@@ -18172,14 +18172,14 @@ uniform ${T} ${M} u_${I};
|
|
|
18172
18172
|
return this._cache.set(d, x), this._hadAnyChanges = !0, x;
|
|
18173
18173
|
}
|
|
18174
18174
|
}
|
|
18175
|
-
class
|
|
18175
|
+
class za {
|
|
18176
18176
|
constructor(t, n, s, l) {
|
|
18177
18177
|
this.min = s, this.max = l, this.points = t, this.planes = n;
|
|
18178
18178
|
}
|
|
18179
18179
|
static fromAabb(t, n) {
|
|
18180
18180
|
const s = [];
|
|
18181
18181
|
for (let l = 0; l < 8; l++) s.push([1 & ~l ? t[0] : n[0], (l >> 1 & 1) == 1 ? n[1] : t[1], (l >> 2 & 1) == 1 ? n[2] : t[2]]);
|
|
18182
|
-
return new
|
|
18182
|
+
return new za(s, [[-1, 0, 0, n[0]], [1, 0, 0, -t[0]], [0, -1, 0, n[1]], [0, 1, 0, -t[1]], [0, 0, -1, n[2]], [0, 0, 1, -t[2]]], t, n);
|
|
18183
18183
|
}
|
|
18184
18184
|
static fromCenterSizeAngles(t, n, s) {
|
|
18185
18185
|
const l = c.bC([], s[0], s[1], s[2]), d = c.bD([], [n[0], 0, 0], l), m = c.bD([], [0, n[1], 0], l), _ = c.bD([], [0, 0, n[2]], l), x = [...t], b = [...t];
|
|
@@ -18192,7 +18192,7 @@ uniform ${T} ${M} u_${I};
|
|
|
18192
18192
|
const I = [...t];
|
|
18193
18193
|
c.b1(I, I, c.b0([], d, 1 & ~M ? -1 : 1)), c.b1(I, I, c.b0([], m, (M >> 1 & 1) == 1 ? 1 : -1)), c.b1(I, I, c.b0([], _, (M >> 2 & 1) == 1 ? 1 : -1)), T.push(I);
|
|
18194
18194
|
}
|
|
18195
|
-
return new
|
|
18195
|
+
return new za(T, [[...d, -c.b6(d, T[0])], [...m, -c.b6(m, T[0])], [..._, -c.b6(_, T[0])], [-d[0], -d[1], -d[2], -c.b6(d, T[7])], [-m[0], -m[1], -m[2], -c.b6(m, T[7])], [-_[0], -_[1], -_[2], -c.b6(_, T[7])]], x, b);
|
|
18196
18196
|
}
|
|
18197
18197
|
intersectsFrustum(t) {
|
|
18198
18198
|
let n = !0;
|
|
@@ -18233,7 +18233,7 @@ uniform ${T} ${M} u_${I};
|
|
|
18233
18233
|
const s = p - t;
|
|
18234
18234
|
return s < 0 ? -s : Math.max(0, s - n);
|
|
18235
18235
|
}
|
|
18236
|
-
function
|
|
18236
|
+
function ka(p, t, n, s, l) {
|
|
18237
18237
|
const d = p - n;
|
|
18238
18238
|
let m;
|
|
18239
18239
|
return m = d < 0 ? Math.min(-d, 1 + d - l) : d > 1 ? Math.min(Math.max(d - l, 0), 1 - d) : 0, Math.max(m, Hs(t, s, l));
|
|
@@ -18248,7 +18248,7 @@ uniform ${T} ${M} u_${I};
|
|
|
18248
18248
|
distanceToTile2d(t, n, s, l) {
|
|
18249
18249
|
const d = 1 << s.z, m = 1 / d, _ = s.x / d, x = s.y / d;
|
|
18250
18250
|
let b = 2;
|
|
18251
|
-
return b = Math.min(b,
|
|
18251
|
+
return b = Math.min(b, ka(t, n, _, x, m)), b = Math.min(b, ka(t, n, _ + 0.5, -x - m, m)), b = Math.min(b, ka(t, n, _ + 0.5, 2 - x - m, m)), b;
|
|
18252
18252
|
}
|
|
18253
18253
|
getWrap(t, n, s) {
|
|
18254
18254
|
const l = 1 << n.z, d = 1 / l, m = n.x / l, _ = Hs(t.x, m, d), x = Hs(t.x, m - 1, d), b = Hs(t.x, m + 1, d), T = Math.min(_, x, b);
|
|
@@ -18270,8 +18270,8 @@ uniform ${T} ${M} u_${I};
|
|
|
18270
18270
|
const b = new c.a2(t.z, n, t.z, t.x, t.y), T = l.terrain.getMinMaxElevation(b);
|
|
18271
18271
|
_ = (d = T.minElevation) !== null && d !== void 0 ? d : Math.min(0, s), x = (m = T.maxElevation) !== null && m !== void 0 ? m : Math.max(0, s);
|
|
18272
18272
|
}
|
|
18273
|
-
if (_ /= c.bF, x /= c.bF, _ += 1, x += 1, t.z <= 0) return
|
|
18274
|
-
if (t.z === 1) return
|
|
18273
|
+
if (_ /= c.bF, x /= c.bF, _ += 1, x += 1, t.z <= 0) return za.fromAabb([-x, -x, -x], [x, x, x]);
|
|
18274
|
+
if (t.z === 1) return za.fromAabb([t.x === 0 ? -x : 0, t.y === 0 ? 0 : -x, -x], [t.x === 0 ? 0 : x, t.y === 0 ? x : 0, x]);
|
|
18275
18275
|
{
|
|
18276
18276
|
const b = [_n(0, 0, t.x, t.y, t.z), _n(c.a5, 0, t.x, t.y, t.z), _n(c.a5, c.a5, t.x, t.y, t.z), _n(0, c.a5, t.x, t.y, t.z)], T = [];
|
|
18277
18277
|
for (const me of b) T.push(c.b0([], me, x));
|
|
@@ -18287,12 +18287,12 @@ uniform ${T} ${M} u_${I};
|
|
|
18287
18287
|
c.b4(G, G);
|
|
18288
18288
|
const U = c.b5([], b[0], b[3]);
|
|
18289
18289
|
c.b4(U, U), T.push(c.b0([], D, x)), t.y >= (1 << t.z) / 2 && T.push(c.b0([], _n(c.a5 / 2, 0, t.x, t.y, t.z), x)), t.y < (1 << t.z) / 2 && T.push(c.b0([], _n(c.a5 / 2, c.a5, t.x, t.y, t.z), x));
|
|
18290
|
-
const $ =
|
|
18291
|
-
return t.y === 0 ? pe.push(c.bE(ge, oe, Z), c.bE(ge, oe, ee)) : pe.push(c.bE(ne, oe, Z), c.bE(ne, oe, ee), c.bE(ne, ge, Z), c.bE(ne, ge, ee)), t.y === (1 << t.z) - 1 ? pe.push(c.bE(ge, oe, Z), c.bE(ge, oe, ee)) : pe.push(c.bE(X, oe, Z), c.bE(X, oe, ee), c.bE(X, ge, Z), c.bE(X, ge, ee)), new
|
|
18290
|
+
const $ = us(D, T), K = us(j, T), Z = [-D[0], -D[1], -D[2], $.max], ee = [D[0], D[1], D[2], -$.min], ne = [-j[0], -j[1], -j[2], K.max], X = [j[0], j[1], j[2], -K.min], oe = [...G, 0], ge = [...U, 0], pe = [];
|
|
18291
|
+
return t.y === 0 ? pe.push(c.bE(ge, oe, Z), c.bE(ge, oe, ee)) : pe.push(c.bE(ne, oe, Z), c.bE(ne, oe, ee), c.bE(ne, ge, Z), c.bE(ne, ge, ee)), t.y === (1 << t.z) - 1 ? pe.push(c.bE(ge, oe, Z), c.bE(ge, oe, ee)) : pe.push(c.bE(X, oe, Z), c.bE(X, oe, ee), c.bE(X, ge, Z), c.bE(X, ge, ee)), new za(pe, [Z, ee, ne, X, oe, ge], M, I);
|
|
18292
18292
|
}
|
|
18293
18293
|
}
|
|
18294
18294
|
}
|
|
18295
|
-
function
|
|
18295
|
+
function us(p, t) {
|
|
18296
18296
|
let n = 1 / 0, s = -1 / 0;
|
|
18297
18297
|
for (const l of t) {
|
|
18298
18298
|
const d = c.b6(p, l);
|
|
@@ -18300,7 +18300,7 @@ uniform ${T} ${M} u_${I};
|
|
|
18300
18300
|
}
|
|
18301
18301
|
return { min: n, max: s };
|
|
18302
18302
|
}
|
|
18303
|
-
class
|
|
18303
|
+
class Ra {
|
|
18304
18304
|
get pixelsToClipSpaceMatrix() {
|
|
18305
18305
|
return this._helper.pixelsToClipSpaceMatrix;
|
|
18306
18306
|
}
|
|
@@ -18498,7 +18498,7 @@ uniform ${T} ${M} u_${I};
|
|
|
18498
18498
|
}, defaultConstrain: (n, s) => this.defaultConstrain(n, s) }, t), this._coveringTilesDetailsProvider = new al();
|
|
18499
18499
|
}
|
|
18500
18500
|
clone() {
|
|
18501
|
-
const t = new
|
|
18501
|
+
const t = new Ra();
|
|
18502
18502
|
return t.apply(this), t;
|
|
18503
18503
|
}
|
|
18504
18504
|
apply(t, n) {
|
|
@@ -18746,7 +18746,7 @@ uniform ${T} ${M} u_${I};
|
|
|
18746
18746
|
getFastPathSimpleProjectionMatrix(t) {
|
|
18747
18747
|
}
|
|
18748
18748
|
}
|
|
18749
|
-
class
|
|
18749
|
+
class La {
|
|
18750
18750
|
get pixelsToClipSpaceMatrix() {
|
|
18751
18751
|
return this._helper.pixelsToClipSpaceMatrix;
|
|
18752
18752
|
}
|
|
@@ -18948,10 +18948,10 @@ uniform ${T} ${M} u_${I};
|
|
|
18948
18948
|
constructor(t) {
|
|
18949
18949
|
this._globeLatitudeErrorCorrectionRadians = 0, this._globeness = 1, this.defaultConstrain = (n, s) => this.currentTransform.defaultConstrain(n, s), this.applyConstrain = (n, s) => this._helper.applyConstrain(n, s), this._helper = new Yn({ calcMatrices: () => {
|
|
18950
18950
|
this._calcMatrices();
|
|
18951
|
-
}, defaultConstrain: (n, s) => this.defaultConstrain(n, s) }, t), this._globeness = 1, this._mercatorTransform = new Kn(), this._verticalPerspectiveTransform = new
|
|
18951
|
+
}, defaultConstrain: (n, s) => this.defaultConstrain(n, s) }, t), this._globeness = 1, this._mercatorTransform = new Kn(), this._verticalPerspectiveTransform = new Ra();
|
|
18952
18952
|
}
|
|
18953
18953
|
clone() {
|
|
18954
|
-
const t = new
|
|
18954
|
+
const t = new La();
|
|
18955
18955
|
return t._globeness = this._globeness, t._globeLatitudeErrorCorrectionRadians = this._globeLatitudeErrorCorrectionRadians, t.apply(this), t;
|
|
18956
18956
|
}
|
|
18957
18957
|
apply(t) {
|
|
@@ -19199,7 +19199,7 @@ uniform ${T} ${M} u_${I};
|
|
|
19199
19199
|
return this.currentHelper.handleFlyTo(t, n);
|
|
19200
19200
|
}
|
|
19201
19201
|
}
|
|
19202
|
-
const
|
|
19202
|
+
const Fa = (p, t) => c.B(p, t && t.filter(((n) => n.identifier !== "source.canvas"))), hs = c.bP();
|
|
19203
19203
|
class ea extends c.E {
|
|
19204
19204
|
constructor(t, n = {}) {
|
|
19205
19205
|
var s, l;
|
|
@@ -19272,12 +19272,12 @@ uniform ${T} ${M} u_${I};
|
|
|
19272
19272
|
}));
|
|
19273
19273
|
}
|
|
19274
19274
|
loadEmpty() {
|
|
19275
|
-
this.fire(new c.l("dataloading", { dataType: "style" })), this._load(
|
|
19275
|
+
this.fire(new c.l("dataloading", { dataType: "style" })), this._load(hs, { validate: !1 });
|
|
19276
19276
|
}
|
|
19277
19277
|
_load(t, n, s) {
|
|
19278
19278
|
var l, d;
|
|
19279
19279
|
let m = n.transformStyle ? n.transformStyle(s, t) : t;
|
|
19280
|
-
if (!n.validate || !
|
|
19280
|
+
if (!n.validate || !Fa(this, c.C(m))) {
|
|
19281
19281
|
m = Object.assign({}, m), this._loaded = !0, this.stylesheet = m;
|
|
19282
19282
|
for (const _ in m.sources) this.addSource(_, m.sources[_], { validate: !1 });
|
|
19283
19283
|
m.sprite ? this._loadSprite(m.sprite) : this.imageManager.setLoaded(!0), this.glyphManager.setURL(m.glyphs), this._createLayers(), this.light = new rn(this.stylesheet.light), this._setProjectionInternal(((l = this.stylesheet.projection) === null || l === void 0 ? void 0 : l.type) || "mercator"), this.sky = new Ar(this.stylesheet.sky), this.map.setTerrain((d = this.stylesheet.terrain) !== null && d !== void 0 ? d : null), this.fire(new c.l("data", { dataType: "style" })), this.fire(new c.l("style.load"));
|
|
@@ -19443,7 +19443,7 @@ uniform ${T} ${M} u_${I};
|
|
|
19443
19443
|
var s;
|
|
19444
19444
|
this._checkLoaded();
|
|
19445
19445
|
const l = this.serialize();
|
|
19446
|
-
if (t = n.transformStyle ? n.transformStyle(l, t) : t, ((s = n.validate) === null || s === void 0 || s) &&
|
|
19446
|
+
if (t = n.transformStyle ? n.transformStyle(l, t) : t, ((s = n.validate) === null || s === void 0 || s) && Fa(this, c.C(t))) return !1;
|
|
19447
19447
|
(t = c.bW(t)).layers = c.bT(t.layers);
|
|
19448
19448
|
const d = c.bX(l, t), m = this._getOperationsToPerform(d);
|
|
19449
19449
|
if (m.unimplemented.length > 0) throw new Error(`Unimplemented: ${m.unimplemented.join(", ")}.`);
|
|
@@ -19566,7 +19566,7 @@ uniform ${T} ${M} u_${I};
|
|
|
19566
19566
|
if (this.getLayer(l)) return void this.fire(new c.k(new Error(`Layer "${l}" already exists on this map.`)));
|
|
19567
19567
|
let d;
|
|
19568
19568
|
if (t.type === "custom") {
|
|
19569
|
-
if (
|
|
19569
|
+
if (Fa(this, c.bY(t))) return;
|
|
19570
19570
|
d = c.bU(t, this._globalState);
|
|
19571
19571
|
} else {
|
|
19572
19572
|
if ("source" in t && typeof t.source == "object" && (this.addSource(l, t.source), t = c.bW(t), t = c.e(t, { source: l })), this._validate(c.C.layer, `layers.${l}`, t, { arrayIndex: -1 }, s)) return;
|
|
@@ -19804,17 +19804,17 @@ uniform ${T} ${M} u_${I};
|
|
|
19804
19804
|
const d = { constrainOverride: l };
|
|
19805
19805
|
if (Array.isArray(s)) {
|
|
19806
19806
|
const m = new kc({ type: s });
|
|
19807
|
-
return { projection: m, transform: new
|
|
19807
|
+
return { projection: m, transform: new La(d), cameraHelper: new Fc(m) };
|
|
19808
19808
|
}
|
|
19809
19809
|
switch (s) {
|
|
19810
19810
|
case "mercator":
|
|
19811
19811
|
return { projection: new fr(), transform: new Kn(d), cameraHelper: new Jn() };
|
|
19812
19812
|
case "globe": {
|
|
19813
19813
|
const m = new kc({ type: ["interpolate", ["linear"], ["zoom"], 11, "vertical-perspective", 12, "mercator"] });
|
|
19814
|
-
return { projection: m, transform: new
|
|
19814
|
+
return { projection: m, transform: new La(d), cameraHelper: new Fc(m) };
|
|
19815
19815
|
}
|
|
19816
19816
|
case "vertical-perspective":
|
|
19817
|
-
return { projection: new il(), transform: new
|
|
19817
|
+
return { projection: new il(), transform: new Ra(d), cameraHelper: new Di() };
|
|
19818
19818
|
default:
|
|
19819
19819
|
return c.w(`Unknown projection name: ${s}. Falling back to mercator projection.`), { projection: new fr(), transform: new Kn(d), cameraHelper: new Jn() };
|
|
19820
19820
|
}
|
|
@@ -19823,7 +19823,7 @@ uniform ${T} ${M} u_${I};
|
|
|
19823
19823
|
for (const s in this.tileManagers) this.tileManagers[s].reload();
|
|
19824
19824
|
}
|
|
19825
19825
|
_validate(t, n, s, l, d = {}) {
|
|
19826
|
-
return (!d || d.validate !== !1) &&
|
|
19826
|
+
return (!d || d.validate !== !1) && Fa(this, t.call(c.C, c.e({ key: n, style: this.serialize(), value: s, styleSpec: c.u }, l)));
|
|
19827
19827
|
}
|
|
19828
19828
|
_remove(t = !0) {
|
|
19829
19829
|
this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), le().off(Q, this._rtlPluginLoaded);
|
|
@@ -19859,7 +19859,7 @@ uniform ${T} ${M} u_${I};
|
|
|
19859
19859
|
const M = this.crossTileSymbolIndex.addLayer(T, x[T.source], t.center.lng);
|
|
19860
19860
|
m = m || M;
|
|
19861
19861
|
}
|
|
19862
|
-
if (this.crossTileSymbolIndex.pruneUnusedLayers(this._order), ((d = d || this._layerOrderChanged || s === 0) || !this.pauseablePlacement || this.pauseablePlacement.isDone() && !this.placement.stillRecent(Ze(), t.zoom)) && (this.pauseablePlacement = new
|
|
19862
|
+
if (this.crossTileSymbolIndex.pruneUnusedLayers(this._order), ((d = d || this._layerOrderChanged || s === 0) || !this.pauseablePlacement || this.pauseablePlacement.isDone() && !this.placement.stillRecent(Ze(), t.zoom)) && (this.pauseablePlacement = new Ma(t, this.map.terrain, this._order, d, n, s, l, this.placement), this._layerOrderChanged = !1), this.pauseablePlacement.isDone() ? this.placement.setStale() : (this.pauseablePlacement.continuePlacement(this._order, this._layers, x), this.pauseablePlacement.isDone() && (this.placement = this.pauseablePlacement.commit(Ze()), _ = !0), m && this.pauseablePlacement.placement.setStale()), _ || m) for (const b of this._order) {
|
|
19863
19863
|
const T = this._layers[b];
|
|
19864
19864
|
T.type === "symbol" && this.placement.updateLayerOpacities(T, x[T.source]);
|
|
19865
19865
|
}
|
|
@@ -19951,7 +19951,7 @@ uniform ${T} ${M} u_${I};
|
|
|
19951
19951
|
this.vao && (this.context.deleteVertexArray(this.vao), this.vao = null);
|
|
19952
19952
|
}
|
|
19953
19953
|
}
|
|
19954
|
-
const hh = (p, t, n, s, l) => ({ u_texture: 0, u_ele_delta: p, u_fog_matrix: t, u_fog_color: n ? n.properties.get("fog-color") : c.bq.white, u_fog_ground_blend: n ? n.properties.get("fog-ground-blend") : 1, u_fog_ground_blend_opacity: l ? 0 : n ? n.calculateFogBlendOpacity(s) : 0, u_horizon_color: n ? n.properties.get("horizon-color") : c.bq.white, u_horizon_fog_blend: n ? n.properties.get("horizon-fog-blend") : 1, u_is_globe_mode: l ? 1 : 0 }),
|
|
19954
|
+
const hh = (p, t, n, s, l) => ({ u_texture: 0, u_ele_delta: p, u_fog_matrix: t, u_fog_color: n ? n.properties.get("fog-color") : c.bq.white, u_fog_ground_blend: n ? n.properties.get("fog-ground-blend") : 1, u_fog_ground_blend_opacity: l ? 0 : n ? n.calculateFogBlendOpacity(s) : 0, u_horizon_color: n ? n.properties.get("horizon-color") : c.bq.white, u_horizon_fog_blend: n ? n.properties.get("horizon-fog-blend") : 1, u_is_globe_mode: l ? 1 : 0 }), Ba = { mainMatrix: "u_projection_matrix", tileMercatorCoords: "u_projection_tile_mercator_coords", clippingPlane: "u_projection_clipping_plane", projectionTransition: "u_projection_transition", fallbackMatrix: "u_projection_fallback_matrix" };
|
|
19955
19955
|
function Ys(p) {
|
|
19956
19956
|
const t = [];
|
|
19957
19957
|
for (let n = 0; n < p.length; n++) {
|
|
@@ -20006,7 +20006,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20006
20006
|
t.activeTexture.set(Z.TEXTURE2), Z.bindTexture(Z.TEXTURE_2D, x.depthTexture), t.activeTexture.set(Z.TEXTURE3), Z.bindTexture(Z.TEXTURE_2D, x.texture);
|
|
20007
20007
|
for (const ne in this.terrainUniforms) this.terrainUniforms[ne].set(x[ne]);
|
|
20008
20008
|
}
|
|
20009
|
-
if (b) for (const ne in b) this.projectionUniforms[
|
|
20009
|
+
if (b) for (const ne in b) this.projectionUniforms[Ba[ne]].set(b[ne]);
|
|
20010
20010
|
if (_) for (const ne in this.fixedUniforms) this.fixedUniforms[ne].set(_[ne]);
|
|
20011
20011
|
G && G.setUniforms(t, this.binderUniforms, F, { zoom: j });
|
|
20012
20012
|
let ee = 0;
|
|
@@ -20043,7 +20043,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20043
20043
|
m = !0, _ = [b, b], x = b / (c.a5 * Math.pow(2, t.tileID.overscaledZ)) * 2 * Math.PI * l;
|
|
20044
20044
|
} else m = !1, _ = d.pixelsToGLUnits;
|
|
20045
20045
|
return { u_camera_to_center_distance: d.cameraToCenterDistance, u_scale_with_map: +(n.paint.get("circle-pitch-scale") === "map"), u_pitch_with_map: +m, u_device_pixel_ratio: p.pixelRatio, u_extrude_scale: _, u_globe_extrude_scale: x, u_translate: s };
|
|
20046
|
-
}, ta = (p) => ({ u_pixel_extrude_scale: [1 / p.width, 1 / p.height] }), Uc = (p) => ({ u_viewport_size: [p.width, p.height] }), cl = (p, t = 1) => ({ u_color: p, u_overlay: 0, u_overlay_scale: t }),
|
|
20046
|
+
}, ta = (p) => ({ u_pixel_extrude_scale: [1 / p.width, 1 / p.height] }), Uc = (p) => ({ u_viewport_size: [p.width, p.height] }), cl = (p, t = 1) => ({ u_color: p, u_overlay: 0, u_overlay_scale: t }), Oa = (p, t, n, s) => {
|
|
20047
20047
|
const l = c.aO(p, 1, t) / (c.a5 * Math.pow(2, p.tileID.overscaledZ)) * 2 * Math.PI * s;
|
|
20048
20048
|
return { u_extrude_scale: c.aO(p, 1, t), u_intensity: n, u_globe_extrude_scale: l };
|
|
20049
20049
|
}, Gc = (p, t, n, s) => {
|
|
@@ -20081,18 +20081,18 @@ uniform ${T} ${M} u_${I};
|
|
|
20081
20081
|
const n = Math.pow(2, t.canonical.z), s = t.canonical.y;
|
|
20082
20082
|
return [new c.ab(0, s / n).toLngLat().lat, new c.ab(0, (s + 1) / n).toLngLat().lat];
|
|
20083
20083
|
}
|
|
20084
|
-
const $c = (p, t, n = 0) => ({ u_image: 0, u_unpack: t.getUnpackVector(), u_dimension: [t.stride, t.stride], u_elevation_stops: 1, u_color_stops: 4, u_color_ramp_size: n, u_opacity: p.paint.get("color-relief-opacity") }),
|
|
20084
|
+
const $c = (p, t, n = 0) => ({ u_image: 0, u_unpack: t.getUnpackVector(), u_dimension: [t.stride, t.stride], u_elevation_stops: 1, u_color_stops: 4, u_color_ramp_size: n, u_opacity: p.paint.get("color-relief-opacity") }), ps = (p, t, n, s) => {
|
|
20085
20085
|
const l = p.transform;
|
|
20086
20086
|
return { u_translation: Qs(p, t, n), u_ratio: s / c.aO(t, 1, l.zoom), u_device_pixel_ratio: p.pixelRatio, u_units_to_pixels: [1 / l.pixelsToGLUnits[0], 1 / l.pixelsToGLUnits[1]] };
|
|
20087
|
-
}, Zc = (p, t, n, s, l) => c.e(
|
|
20087
|
+
}, Zc = (p, t, n, s, l) => c.e(ps(p, t, n, s), { u_image: 0, u_image_height: l }), ul = (p, t, n, s, l) => {
|
|
20088
20088
|
const d = p.transform, m = on(t, d);
|
|
20089
20089
|
return { u_translation: Qs(p, t, n), u_texsize: t.imageAtlasTexture.size, u_ratio: s / c.aO(t, 1, d.zoom), u_device_pixel_ratio: p.pixelRatio, u_image: 0, u_scale: [m, l.fromScale, l.toScale], u_fade: l.t, u_units_to_pixels: [1 / d.pixelsToGLUnits[0], 1 / d.pixelsToGLUnits[1]] };
|
|
20090
20090
|
}, qc = (p, t, n, s, l) => {
|
|
20091
20091
|
const d = on(t, p.transform);
|
|
20092
|
-
return c.e(
|
|
20092
|
+
return c.e(ps(p, t, n, s), { u_tileratio: d, u_crossfade_from: l.fromScale, u_crossfade_to: l.toScale, u_image: 0, u_mix: l.t, u_lineatlas_width: p.lineAtlas.width, u_lineatlas_height: p.lineAtlas.height });
|
|
20093
20093
|
}, Js = (p, t, n, s, l, d) => {
|
|
20094
20094
|
const m = on(t, p.transform);
|
|
20095
|
-
return c.e(
|
|
20095
|
+
return c.e(ps(p, t, n, s), { u_image: 0, u_image_height: d, u_tileratio: m, u_crossfade_from: l.fromScale, u_crossfade_to: l.toScale, u_image_dash: 1, u_mix: l.t, u_lineatlas_width: p.lineAtlas.width, u_lineatlas_height: p.lineAtlas.height });
|
|
20096
20096
|
};
|
|
20097
20097
|
function on(p, t) {
|
|
20098
20098
|
return 1 / c.aO(p, 1, t.tileZoom);
|
|
@@ -20227,7 +20227,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20227
20227
|
(t !== this.current || this.dirty) && (this.gl.depthMask(t), this.current = t, this.dirty = !1);
|
|
20228
20228
|
}
|
|
20229
20229
|
}
|
|
20230
|
-
class
|
|
20230
|
+
class ds extends It {
|
|
20231
20231
|
getDefault() {
|
|
20232
20232
|
return 255;
|
|
20233
20233
|
}
|
|
@@ -20235,7 +20235,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20235
20235
|
(t !== this.current || this.dirty) && (this.gl.stencilMask(t), this.current = t, this.dirty = !1);
|
|
20236
20236
|
}
|
|
20237
20237
|
}
|
|
20238
|
-
class
|
|
20238
|
+
class Na extends It {
|
|
20239
20239
|
getDefault() {
|
|
20240
20240
|
return { func: this.gl.ALWAYS, ref: 0, mask: 255 };
|
|
20241
20241
|
}
|
|
@@ -20311,7 +20311,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20311
20311
|
(t[0] !== n[0] || t[1] !== n[1] || this.dirty) && (this.gl.blendFunc(t[0], t[1]), this.current = t, this.dirty = !1);
|
|
20312
20312
|
}
|
|
20313
20313
|
}
|
|
20314
|
-
class
|
|
20314
|
+
class fs extends It {
|
|
20315
20315
|
getDefault() {
|
|
20316
20316
|
return c.bq.transparent;
|
|
20317
20317
|
}
|
|
@@ -20338,7 +20338,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20338
20338
|
t ? n.enable(n.CULL_FACE) : n.disable(n.CULL_FACE), this.current = t, this.dirty = !1;
|
|
20339
20339
|
}
|
|
20340
20340
|
}
|
|
20341
|
-
class
|
|
20341
|
+
class Va extends It {
|
|
20342
20342
|
getDefault() {
|
|
20343
20343
|
return this.gl.BACK;
|
|
20344
20344
|
}
|
|
@@ -20346,7 +20346,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20346
20346
|
(t !== this.current || this.dirty) && (this.gl.cullFace(t), this.current = t, this.dirty = !1);
|
|
20347
20347
|
}
|
|
20348
20348
|
}
|
|
20349
|
-
class
|
|
20349
|
+
class ja extends It {
|
|
20350
20350
|
getDefault() {
|
|
20351
20351
|
return this.gl.CCW;
|
|
20352
20352
|
}
|
|
@@ -20410,7 +20410,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20410
20410
|
n.bindTexture(n.TEXTURE_2D, t), this.current = t, this.dirty = !1;
|
|
20411
20411
|
}
|
|
20412
20412
|
}
|
|
20413
|
-
class
|
|
20413
|
+
class ms extends It {
|
|
20414
20414
|
getDefault() {
|
|
20415
20415
|
return null;
|
|
20416
20416
|
}
|
|
@@ -20470,7 +20470,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20470
20470
|
n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, t), this.current = t, this.dirty = !1;
|
|
20471
20471
|
}
|
|
20472
20472
|
}
|
|
20473
|
-
class
|
|
20473
|
+
class Ua extends It {
|
|
20474
20474
|
constructor(t, n) {
|
|
20475
20475
|
super(t), this.context = t, this.parent = n;
|
|
20476
20476
|
}
|
|
@@ -20478,7 +20478,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20478
20478
|
return null;
|
|
20479
20479
|
}
|
|
20480
20480
|
}
|
|
20481
|
-
class lo extends
|
|
20481
|
+
class lo extends Ua {
|
|
20482
20482
|
setDirty() {
|
|
20483
20483
|
this.dirty = !0;
|
|
20484
20484
|
}
|
|
@@ -20489,7 +20489,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20489
20489
|
n.framebufferTexture2D(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0, n.TEXTURE_2D, t, 0), this.current = t, this.dirty = !1;
|
|
20490
20490
|
}
|
|
20491
20491
|
}
|
|
20492
|
-
class co extends
|
|
20492
|
+
class co extends Ua {
|
|
20493
20493
|
set(t) {
|
|
20494
20494
|
if (t === this.current && !this.dirty) return;
|
|
20495
20495
|
this.context.bindFramebuffer.set(this.parent);
|
|
@@ -20497,7 +20497,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20497
20497
|
n.framebufferRenderbuffer(n.FRAMEBUFFER, n.DEPTH_ATTACHMENT, n.RENDERBUFFER, t), this.current = t, this.dirty = !1;
|
|
20498
20498
|
}
|
|
20499
20499
|
}
|
|
20500
|
-
class xl extends
|
|
20500
|
+
class xl extends Ua {
|
|
20501
20501
|
set(t) {
|
|
20502
20502
|
if (t === this.current && !this.dirty) return;
|
|
20503
20503
|
this.context.bindFramebuffer.set(this.parent);
|
|
@@ -20526,7 +20526,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20526
20526
|
class ho {
|
|
20527
20527
|
constructor(t) {
|
|
20528
20528
|
var n, s;
|
|
20529
|
-
if (this.gl = t, this.clearColor = new to(this), this.clearDepth = new io(this), this.clearStencil = new ro(this), this.colorMask = new ml(this), this.depthMask = new ra(this), this.stencilMask = new
|
|
20529
|
+
if (this.gl = t, this.clearColor = new to(this), this.clearDepth = new io(this), this.clearStencil = new ro(this), this.colorMask = new ml(this), this.depthMask = new ra(this), this.stencilMask = new ds(this), this.stencilFunc = new Na(this), this.stencilOp = new Xr(this), this.stencilTest = new Xc(this), this.depthRange = new Yc(this), this.depthTest = new gl(this), this.depthFunc = new na(this), this.blend = new no(this), this.blendFunc = new ao(this), this.blendColor = new fs(this), this.blendEquation = new so(this), this.cullFace = new Kc(this), this.cullFaceSide = new Va(this), this.frontFace = new ja(this), this.program = new Jc(this), this.activeTexture = new _l(this), this.viewport = new ft(this), this.bindFramebuffer = new oo(this), this.bindRenderbuffer = new yh(this), this.bindTexture = new Qc(this), this.bindVertexBuffer = new ms(this), this.bindElementBuffer = new xh(this), this.bindVertexArray = new vh(this), this.pixelStoreUnpack = new eu(this), this.pixelStoreUnpackPremultiplyAlpha = new bh(this), this.pixelStoreUnpackFlipY = new yl(this), this.extTextureFilterAnisotropic = t.getExtension("EXT_texture_filter_anisotropic") || t.getExtension("MOZ_EXT_texture_filter_anisotropic") || t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = t.getParameter(t.MAX_TEXTURE_SIZE), Hr(t)) {
|
|
20530
20530
|
this.HALF_FLOAT = t.HALF_FLOAT;
|
|
20531
20531
|
const l = t.getExtension("EXT_color_buffer_half_float");
|
|
20532
20532
|
this.RGBA16F = (n = t.RGBA16F) !== null && n !== void 0 ? n : l?.RGBA16F_EXT, this.RGB16F = (s = t.RGB16F) !== null && s !== void 0 ? s : l?.RGB16F_EXT, t.getExtension("EXT_color_buffer_float");
|
|
@@ -20623,7 +20623,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20623
20623
|
const { horizontalAlign: m, verticalAlign: _ } = c.aT(p);
|
|
20624
20624
|
return new c.P((-(m - 0.5) * t / l + s[0]) * d, (-(_ - 0.5) * n / l + s[1]) * d);
|
|
20625
20625
|
}
|
|
20626
|
-
function
|
|
20626
|
+
function gs(p, t, n, s, l, d) {
|
|
20627
20627
|
const m = t.tileAnchorPoint.add(new c.P(t.translation[0], t.translation[1]));
|
|
20628
20628
|
if (t.pitchWithMap) {
|
|
20629
20629
|
let _ = s.mult(d);
|
|
@@ -20646,7 +20646,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20646
20646
|
const K = new c.P(U.anchorX, U.anchorY), Z = { getElevation: M, width: l.width, height: l.height, pitchedLabelPlaneMatrix: d, pitchWithMap: n, transform: l, tileAnchorPoint: K, translation: b, unwrappedTileID: T }, ee = n ? Pn(K.x, K.y, Z) : Pt(K.x, K.y, Z), ne = Re(l.cameraToCenterDistance, ee.signedDistanceFromCamera);
|
|
20647
20647
|
let X = c.aB(p.textSizeData, _, U) * ne / c.aN;
|
|
20648
20648
|
n && (X *= p.tilePixelRatio / m);
|
|
20649
|
-
const { width: oe, height: ge, anchor: pe, textOffset: me, textBoxScale: ye } = $, Ae = wh(pe, oe, ge, me, ye, X), ze = l.getPitchedTextCorrection(K.x + b[0], K.y + b[1], T), Ee =
|
|
20649
|
+
const { width: oe, height: ge, anchor: pe, textOffset: me, textBoxScale: ye } = $, Ae = wh(pe, oe, ge, me, ye, X), ze = l.getPitchedTextCorrection(K.x + b[0], K.y + b[1], T), Ee = gs(ee.point, Z, t, Ae, -l.bearingInRadians, ze), $e = p.allowVerticalPlacement && U.placedOrientation === c.aA.vertical ? Math.PI / 2 : 0;
|
|
20650
20650
|
for (let nt = 0; nt < U.numGlyphs; nt++) c.aH(D, Ee, $e);
|
|
20651
20651
|
x && U.associatedIconIndex >= 0 && (j[U.associatedIconIndex] = { shiftedAnchor: Ee, angle: $e });
|
|
20652
20652
|
} else Xn(U.numGlyphs, D);
|
|
@@ -20670,7 +20670,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20670
20670
|
function tu(p, t, n) {
|
|
20671
20671
|
return n.iconsInText && t ? "symbolTextAndIcon" : p ? "symbolSDF" : "symbolIcon";
|
|
20672
20672
|
}
|
|
20673
|
-
function
|
|
20673
|
+
function _s(p, t, n, s, l, d, m, _, x, b, T, M, I) {
|
|
20674
20674
|
const D = p.context, F = D.gl, j = p.transform, G = _ === "map", U = x === "map", $ = _ !== "viewport" && n.layout.get("symbol-placement") !== "point", K = G && !U && !$, Z = !n.layout.get("symbol-sort-key").isConstant();
|
|
20675
20675
|
let ee = !1;
|
|
20676
20676
|
const ne = p.getDepthModeForSublayer(0, lt.ReadOnly), X = n._unevaluatedLayout.hasValue("text-variable-anchor") || n._unevaluatedLayout.hasValue("text-variable-anchor-offset"), oe = [], ge = j.getCircleRadiusCorrection();
|
|
@@ -20688,12 +20688,12 @@ uniform ${T} ${M} u_${I};
|
|
|
20688
20688
|
}
|
|
20689
20689
|
const bi = c.aO(me, 1, p.transform.zoom), Xi = rr(G, p.transform, bi), _r = c.N();
|
|
20690
20690
|
c.aC(_r, Xi);
|
|
20691
|
-
const xn =
|
|
20691
|
+
const xn = Pa(U, G, p.transform, bi), $n = c.aP(j, me, d, m), _a = j.getProjectionData({ overscaledTileID: pe, applyGlobeMatrix: !I, applyTerrainMatrix: !0 }), Mo = X && ye.hasTextData(), Ha = n.layout.get("icon-text-fit") !== "none" && Mo && ye.hasIconData();
|
|
20692
20692
|
if ($) {
|
|
20693
20693
|
const ki = p.style.map.terrain ? (Or, ni) => p.style.map.terrain.getElevation(pe, Or, ni) : null, Ni = n.layout.get("text-rotation-alignment") === "map";
|
|
20694
20694
|
Vt(ye, p, l, Xi, _r, U, b, Ni, pe.toUnwrapped(), j.width, j.height, $n, ki);
|
|
20695
20695
|
}
|
|
20696
|
-
const vn = l && X ||
|
|
20696
|
+
const vn = l && X || Ha, ji = $ || vn ? bl : U ? Xi : p.transform.clipSpaceToPixelsMatrix, ar = Ee && n.paint.get(l ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
20697
20697
|
let Yi;
|
|
20698
20698
|
Yi = Ee ? ye.iconsInText ? ia($e.kind, $t, K, U, $, vn, p, ji, xn, $n, Qt, zi, ge) : eo($e.kind, $t, K, U, $, vn, p, ji, xn, $n, l, Qt, 0, ge) : dl($e.kind, $t, K, U, $, vn, p, ji, xn, $n, l, Qt, ge);
|
|
20699
20699
|
const Jr = { program: Et, buffers: Ae, uniformValues: Yi, projectionData: _a, atlasTexture: Gt, atlasTextureIcon: vi, atlasInterpolation: Oi, atlasInterpolationIcon: Ht, isSDF: Ee, hasHalo: ar };
|
|
@@ -20722,9 +20722,9 @@ uniform ${T} ${M} u_${I};
|
|
|
20722
20722
|
if (!b) return;
|
|
20723
20723
|
const T = s.key;
|
|
20724
20724
|
let M = n.heatmapFbos.get(T);
|
|
20725
|
-
M || (M =
|
|
20725
|
+
M || (M = ys(d, t.tileSize, t.tileSize), n.heatmapFbos.set(T, M)), d.bindFramebuffer.set(M.framebuffer), d.viewport.set([0, 0, t.tileSize, t.tileSize]), d.clear({ color: c.bq.transparent });
|
|
20726
20726
|
const I = b.programConfigurations.get(n.id), D = p.useProgram("heatmap", I, !l), F = p.transform.getProjectionData({ overscaledTileID: t.tileID, applyGlobeMatrix: !0, applyTerrainMatrix: !0 }), j = p.style.map.terrain.getTerrainData(s);
|
|
20727
|
-
D.draw(d, m.TRIANGLES, lt.disabled, _, x, yt.disabled,
|
|
20727
|
+
D.draw(d, m.TRIANGLES, lt.disabled, _, x, yt.disabled, Oa(t, p.transform.zoom, n.paint.get("heatmap-intensity"), 1), j, F, n.id, b.layoutVertexBuffer, b.indexBuffer, b.segments, n.paint, p.transform.zoom, I);
|
|
20728
20728
|
}
|
|
20729
20729
|
function ru(p, t, n, s, l) {
|
|
20730
20730
|
const d = p.context, m = d.gl, _ = p.transform;
|
|
@@ -20735,7 +20735,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20735
20735
|
const M = _.getProjectionData({ overscaledTileID: n, applyTerrainMatrix: l, applyGlobeMatrix: !s });
|
|
20736
20736
|
p.useProgram("heatmapTexture").draw(d, m.TRIANGLES, lt.disabled, wt.disabled, p.colorModeForRenderPass(), yt.disabled, Gc(p, t, 0, 1), null, M, t.id, p.rasterBoundsBuffer, p.quadTriangleIndexBuffer, p.rasterBoundsSegments, t.paint, _.zoom), T.destroy(), t.heatmapFbos.delete(b);
|
|
20737
20737
|
}
|
|
20738
|
-
function
|
|
20738
|
+
function ys(p, t, n) {
|
|
20739
20739
|
var s, l;
|
|
20740
20740
|
const d = p.gl, m = d.createTexture();
|
|
20741
20741
|
d.bindTexture(d.TEXTURE_2D, m), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, d.CLAMP_TO_EDGE), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, d.CLAMP_TO_EDGE), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, d.LINEAR), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, d.LINEAR);
|
|
@@ -20781,7 +20781,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20781
20781
|
}
|
|
20782
20782
|
m && _ && p.setConstantPatternPositions(m, _);
|
|
20783
20783
|
}
|
|
20784
|
-
function
|
|
20784
|
+
function xs(p, t, n, s, l, d, m, _) {
|
|
20785
20785
|
const x = p.context.gl, b = "fill-pattern", T = n.paint.get(b), M = T && T.constantOr(1), I = n.getCrossfadeParameters();
|
|
20786
20786
|
let D, F, j, G, U;
|
|
20787
20787
|
const $ = p.transform, K = n.paint.get("fill-translate"), Z = n.paint.get("fill-translate-anchor");
|
|
@@ -20829,7 +20829,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20829
20829
|
j.draw(M, D.TRIANGLES, d, l[U.overscaledZ], m, yt.backCCW, Ks(p, $, n), ee, ne, n.id, Z.vertexBuffer, Z.indexBuffer, Z.segments);
|
|
20830
20830
|
}
|
|
20831
20831
|
}
|
|
20832
|
-
function
|
|
20832
|
+
function vs(p, t, n, s, l, d, m, _, x) {
|
|
20833
20833
|
var b;
|
|
20834
20834
|
const T = p.style.projection, M = p.context, I = p.transform, D = M.gl, F = p.useProgram("colorRelief"), j = !p.options.moving;
|
|
20835
20835
|
let G = !0, U = 0;
|
|
@@ -20850,7 +20850,7 @@ uniform ${T} ${M} u_${I};
|
|
|
20850
20850
|
}
|
|
20851
20851
|
}
|
|
20852
20852
|
const la = [new c.P(0, 0), new c.P(c.a5, 0), new c.P(c.a5, c.a5), new c.P(0, c.a5)];
|
|
20853
|
-
function
|
|
20853
|
+
function Ga(p, t, n, s, l, d, m, _, x = !1, b = !1) {
|
|
20854
20854
|
const T = s[s.length - 1].overscaledZ, M = p.context, I = M.gl, D = p.useProgram("raster"), F = p.transform, j = p.style.projection, G = p.colorModeForRenderPass(), U = !p.options.moving, $ = n.paint.get("raster-opacity"), K = n.paint.get("raster-resampling"), Z = n.paint.get("raster-fade-duration"), ee = !!p.style.map.terrain;
|
|
20855
20855
|
for (const ne of s) {
|
|
20856
20856
|
const X = p.getDepthModeForSublayer(ne.overscaledZ - T, $ === 1 ? lt.ReadWrite : lt.ReadOnly, I.LESS), oe = t.getTile(ne), ge = K === "nearest" ? I.NEAREST : I.LINEAR;
|
|
@@ -20884,12 +20884,12 @@ uniform ${T} ${M} u_${I};
|
|
|
20884
20884
|
}
|
|
20885
20885
|
const ou = new c.bq(1, 0, 0, 1), lu = new c.bq(0, 1, 0, 1), cu = new c.bq(0, 0, 1, 1), uu = new c.bq(1, 0, 1, 1), ca = new c.bq(0, 1, 1, 1);
|
|
20886
20886
|
function wl(p, t, n, s) {
|
|
20887
|
-
|
|
20887
|
+
bs(p, 0, t + n / 2, p.transform.width, n, s);
|
|
20888
20888
|
}
|
|
20889
20889
|
function Tl(p, t, n, s) {
|
|
20890
|
-
|
|
20890
|
+
bs(p, t - n / 2, 0, n, p.transform.height, s);
|
|
20891
20891
|
}
|
|
20892
|
-
function
|
|
20892
|
+
function bs(p, t, n, s, l, d) {
|
|
20893
20893
|
const m = p.context, _ = m.gl;
|
|
20894
20894
|
_.enable(_.SCISSOR_TEST), _.scissor(t * p.pixelRatio, n * p.pixelRatio, s * p.pixelRatio, l * p.pixelRatio), m.clear({ color: d }), _.disable(_.SCISSOR_TEST);
|
|
20895
20895
|
}
|
|
@@ -21090,7 +21090,7 @@ uniform ${T} ${M} u_${I};
|
|
|
21090
21090
|
wl(I, I.transform.height - (D.top || 0), 3, ou), wl(I, D.bottom || 0, 3, lu), Tl(I, D.left || 0, 3, cu), Tl(I, I.transform.width - (D.right || 0), 3, uu);
|
|
21091
21091
|
const F = I.transform.centerPoint;
|
|
21092
21092
|
(function(j, G, U, $) {
|
|
21093
|
-
|
|
21093
|
+
bs(j, G - 1, U - 10, 2, 20, $), bs(j, G - 10, U - 1, 20, 2, $);
|
|
21094
21094
|
})(I, F.x, I.transform.height - F.y, ca);
|
|
21095
21095
|
})(this), this.context.setDefault();
|
|
21096
21096
|
}
|
|
@@ -21133,7 +21133,7 @@ uniform ${T} ${M} u_${I};
|
|
|
21133
21133
|
Th(ze, pe, me, X, oe, nt, $t, Ee, Et, c.aP(oe, Ae, ee, ne), ye.toUnwrapped(), zt);
|
|
21134
21134
|
}
|
|
21135
21135
|
}
|
|
21136
|
-
})(b, m, x, _, x.layout.get("text-rotation-alignment"), x.layout.get("text-pitch-alignment"), x.paint.get("text-translate"), x.paint.get("text-translate-anchor"), T), x.paint.get("icon-opacity").constantOr(1) !== 0 &&
|
|
21136
|
+
})(b, m, x, _, x.layout.get("text-rotation-alignment"), x.layout.get("text-pitch-alignment"), x.paint.get("text-translate"), x.paint.get("text-translate-anchor"), T), x.paint.get("icon-opacity").constantOr(1) !== 0 && _s(m, _, x, b, !1, x.paint.get("icon-translate"), x.paint.get("icon-translate-anchor"), x.layout.get("icon-rotation-alignment"), x.layout.get("icon-pitch-alignment"), x.layout.get("icon-keep-upright"), D, F, I), x.paint.get("text-opacity").constantOr(1) !== 0 && _s(m, _, x, b, !0, x.paint.get("text-translate"), x.paint.get("text-translate-anchor"), x.layout.get("text-rotation-alignment"), x.layout.get("text-pitch-alignment"), x.layout.get("text-keep-upright"), D, F, I), _.map.showCollisionBoxes && (sa(m, _, x, b, !0), sa(m, _, x, b, !1));
|
|
21137
21137
|
})(t, n, s, l, this.style.placement.variableOffsets, d) : c.co(s) ? (function(m, _, x, b, T) {
|
|
21138
21138
|
if (m.renderPass !== "translucent") return;
|
|
21139
21139
|
const { isRenderingToTexture: M } = T, I = x.paint.get("circle-opacity"), D = x.paint.get("circle-stroke-width"), F = x.paint.get("circle-stroke-opacity"), j = !x.layout.get("circle-sort-key").isConstant();
|
|
@@ -21168,7 +21168,7 @@ uniform ${T} ${M} u_${I};
|
|
|
21168
21168
|
const pe = X.gl;
|
|
21169
21169
|
X.activeTexture.set(pe.TEXTURE1), X.viewport.set([0, 0, oe.width / 4, oe.height / 4]);
|
|
21170
21170
|
let me = ge.heatmapFbos.get(c.ce);
|
|
21171
|
-
me ? (pe.bindTexture(pe.TEXTURE_2D, me.colorAttachment.get()), X.bindFramebuffer.set(me.framebuffer)) : (me =
|
|
21171
|
+
me ? (pe.bindTexture(pe.TEXTURE_2D, me.colorAttachment.get()), X.bindFramebuffer.set(me.framebuffer)) : (me = ys(X, oe.width / 4, oe.height / 4), ge.heatmapFbos.set(c.ce, me));
|
|
21172
21172
|
})($, F, G), $.clear({ color: c.bq.transparent });
|
|
21173
21173
|
for (let X = 0; X < U.length; X++) {
|
|
21174
21174
|
const oe = U[X];
|
|
@@ -21176,7 +21176,7 @@ uniform ${T} ${M} u_${I};
|
|
|
21176
21176
|
const ge = j.getTile(oe), pe = ge.getBucket(G);
|
|
21177
21177
|
if (!pe) continue;
|
|
21178
21178
|
const me = pe.programConfigurations.get(G.id), ye = F.useProgram("heatmap", me), Ae = Z.getProjectionData({ overscaledTileID: oe, applyGlobeMatrix: !0, applyTerrainMatrix: !1 }), ze = Z.getCircleRadiusCorrection();
|
|
21179
|
-
ye.draw($, K.TRIANGLES, lt.disabled, ee, ne, yt.backCCW,
|
|
21179
|
+
ye.draw($, K.TRIANGLES, lt.disabled, ee, ne, yt.backCCW, Oa(ge, Z.zoom, G.paint.get("heatmap-intensity"), ze), null, Ae, G.id, pe.layoutVertexBuffer, pe.indexBuffer, pe.segments, G.paint, Z.zoom, me);
|
|
21180
21180
|
}
|
|
21181
21181
|
$.viewport.set([0, 0, F.width, F.height]);
|
|
21182
21182
|
})(m, _, x, b) : m.renderPass === "translucent" && (function(F, j) {
|
|
@@ -21209,7 +21209,7 @@ uniform ${T} ${M} u_${I};
|
|
|
21209
21209
|
}
|
|
21210
21210
|
const Qt = ge.getProjectionData({ overscaledTileID: me, applyGlobeMatrix: !M, applyTerrainMatrix: !0 }), Gt = ge.getPixelScale();
|
|
21211
21211
|
let Oi;
|
|
21212
|
-
K ? (Oi = ul(m, ye, x, Gt, ee), au(X, oe, ye, ze, ee)) : U && Z ? (Oi = Js(m, ye, x, Gt, ee, Ae.lineClipsArray.length), Yr(m, _, X, oe, x, Ae, me, ze, ee)) : U ? (Oi = qc(m, ye, x, Gt, ee), yi(m, X, oe, ze, nt, ee)) : Z ? (Oi = Zc(m, ye, x, Gt, Ae.lineClipsArray.length), oa(m, _, X, oe, x, Ae, me)) : Oi =
|
|
21212
|
+
K ? (Oi = ul(m, ye, x, Gt, ee), au(X, oe, ye, ze, ee)) : U && Z ? (Oi = Js(m, ye, x, Gt, ee, Ae.lineClipsArray.length), Yr(m, _, X, oe, x, Ae, me, ze, ee)) : U ? (Oi = qc(m, ye, x, Gt, ee), yi(m, X, oe, ze, nt, ee)) : Z ? (Oi = Zc(m, ye, x, Gt, Ae.lineClipsArray.length), oa(m, _, X, oe, x, Ae, me)) : Oi = ps(m, ye, x, Gt);
|
|
21213
21213
|
const Ht = m.stencilModeForClipping(me);
|
|
21214
21214
|
$e.draw(X, oe.TRIANGLES, F, Ht, j, yt.disabled, Oi, Et, Qt, x.id, Ae.layoutVertexBuffer, Ae.indexBuffer, Ae.segments, x.paint, m.transform.zoom, ze, Ae.layoutVertexBuffer2), pe = !1;
|
|
21215
21215
|
}
|
|
@@ -21219,11 +21219,11 @@ uniform ${T} ${M} u_${I};
|
|
|
21219
21219
|
const { isRenderingToTexture: D } = T, F = m.colorModeForRenderPass(), j = x.paint.get("fill-pattern"), G = m.opaquePassEnabledForLayer() && !j.constantOr(1) && M.constantOr(c.bq.transparent).a === 1 && I.constantOr(0) === 1 ? "opaque" : "translucent";
|
|
21220
21220
|
if (m.renderPass === G) {
|
|
21221
21221
|
const U = m.getDepthModeForSublayer(1, m.renderPass === "opaque" ? lt.ReadWrite : lt.ReadOnly);
|
|
21222
|
-
|
|
21222
|
+
xs(m, _, x, b, U, F, !1, D);
|
|
21223
21223
|
}
|
|
21224
21224
|
if (m.renderPass === "translucent" && x.paint.get("fill-antialias")) {
|
|
21225
21225
|
const U = m.getDepthModeForSublayer(x.getPaintProperty("fill-outline-color") ? 2 : 0, lt.ReadOnly);
|
|
21226
|
-
|
|
21226
|
+
xs(m, _, x, b, U, F, !0, D);
|
|
21227
21227
|
}
|
|
21228
21228
|
})(t, n, s, l, d) : c.cs(s) ? (function(m, _, x, b, T) {
|
|
21229
21229
|
const M = x.paint.get("fill-extrusion-opacity");
|
|
@@ -21271,21 +21271,21 @@ uniform ${T} ${M} u_${I};
|
|
|
21271
21271
|
const { isRenderingToTexture: M } = T, I = m.style.projection.useSubdivision, D = m.getDepthModeForSublayer(0, lt.ReadOnly), F = m.colorModeForRenderPass();
|
|
21272
21272
|
if (I) {
|
|
21273
21273
|
const [j, G, U] = m.stencilConfigForOverlapTwoPass(b);
|
|
21274
|
-
|
|
21274
|
+
vs(m, _, x, U, j, D, F, !1, M), vs(m, _, x, U, G, D, F, !0, M);
|
|
21275
21275
|
} else {
|
|
21276
21276
|
const [j, G] = m.getStencilConfigForOverlapAndUpdateStencilID(b);
|
|
21277
|
-
|
|
21277
|
+
vs(m, _, x, G, j, D, F, !1, M);
|
|
21278
21278
|
}
|
|
21279
21279
|
})(t, n, s, l, d) : c.bV(s) ? (function(m, _, x, b, T) {
|
|
21280
21280
|
if (m.renderPass !== "translucent" || x.paint.get("raster-opacity") === 0 || !b.length) return;
|
|
21281
21281
|
const { isRenderingToTexture: M } = T, I = _.getSource(), D = m.style.projection.useSubdivision;
|
|
21282
|
-
if (I instanceof Ii)
|
|
21282
|
+
if (I instanceof Ii) Ga(m, _, x, b, null, !1, !1, I.tileCoords, I.flippedWindingOrder, M);
|
|
21283
21283
|
else if (D) {
|
|
21284
21284
|
const [F, j, G] = m.stencilConfigForOverlapTwoPass(b);
|
|
21285
|
-
|
|
21285
|
+
Ga(m, _, x, G, F, !1, !0, la, !1, M), Ga(m, _, x, G, j, !0, !0, la, !1, M);
|
|
21286
21286
|
} else {
|
|
21287
21287
|
const [F, j] = m.getStencilConfigForOverlapAndUpdateStencilID(b);
|
|
21288
|
-
|
|
21288
|
+
Ga(m, _, x, j, F, !1, !0, la, !1, M);
|
|
21289
21289
|
}
|
|
21290
21290
|
})(t, n, s, l, d) : c.cv(s) ? (function(m, _, x, b, T) {
|
|
21291
21291
|
const M = x.paint.get("background-color"), I = x.paint.get("background-opacity");
|
|
@@ -21374,7 +21374,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21374
21374
|
};
|
|
21375
21375
|
return (..._) => (s = !0, d = this, n = _, l || m(), l);
|
|
21376
21376
|
}
|
|
21377
|
-
class
|
|
21377
|
+
class ws {
|
|
21378
21378
|
constructor(t) {
|
|
21379
21379
|
this._getCurrentHash = () => {
|
|
21380
21380
|
const n = window.location.hash.replace("#", "");
|
|
@@ -21436,8 +21436,8 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21436
21436
|
return n >= this._map.getMinZoom() && n <= this._map.getMaxZoom() && s >= -180 && s <= 180 && l >= this._map.getMinPitch() && l <= this._map.getMaxPitch();
|
|
21437
21437
|
}
|
|
21438
21438
|
}
|
|
21439
|
-
const
|
|
21440
|
-
class
|
|
21439
|
+
const $a = { linearity: 0.3, easing: c.cx(0, 0, 0.3, 1) }, Kr = c.e({ deceleration: 2500, maxSpeed: 1400 }, $a), ln = c.e({ deceleration: 20, maxSpeed: 1400 }, $a), du = c.e({ deceleration: 1e3, maxSpeed: 360 }, $a), cn = c.e({ deceleration: 1e3, maxSpeed: 90 }, $a), Sh = c.e({ deceleration: 1e3, maxSpeed: 360 }, $a);
|
|
21440
|
+
class Za {
|
|
21441
21441
|
constructor(t) {
|
|
21442
21442
|
this._map = t, this.clear();
|
|
21443
21443
|
}
|
|
@@ -21457,24 +21457,24 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21457
21457
|
for (const { settings: d } of this._inertiaBuffer) n.zoom += d.zoomDelta || 0, n.bearing += d.bearingDelta || 0, n.pitch += d.pitchDelta || 0, n.roll += d.rollDelta || 0, d.panDelta && n.pan._add(d.panDelta), d.around && (n.around = d.around), d.pinchAround && (n.pinchAround = d.pinchAround);
|
|
21458
21458
|
const s = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time, l = {};
|
|
21459
21459
|
if (n.pan.mag()) {
|
|
21460
|
-
const d =
|
|
21461
|
-
l.center = _.easingCenter, l.offset = _.easingOffset,
|
|
21460
|
+
const d = Ss(n.pan.mag(), s, c.e({}, Kr, t || {})), m = n.pan.mult(d.amount / n.pan.mag()), _ = this._map.cameraHelper.handlePanInertia(m, this._map.transform);
|
|
21461
|
+
l.center = _.easingCenter, l.offset = _.easingOffset, Ts(l, d);
|
|
21462
21462
|
}
|
|
21463
21463
|
if (n.zoom) {
|
|
21464
|
-
const d =
|
|
21465
|
-
l.zoom = this._map.transform.zoom + d.amount,
|
|
21464
|
+
const d = Ss(n.zoom, s, ln);
|
|
21465
|
+
l.zoom = this._map.transform.zoom + d.amount, Ts(l, d);
|
|
21466
21466
|
}
|
|
21467
21467
|
if (n.bearing) {
|
|
21468
|
-
const d =
|
|
21469
|
-
l.bearing = this._map.transform.bearing + c.ao(d.amount, -179, 179),
|
|
21468
|
+
const d = Ss(n.bearing, s, du);
|
|
21469
|
+
l.bearing = this._map.transform.bearing + c.ao(d.amount, -179, 179), Ts(l, d);
|
|
21470
21470
|
}
|
|
21471
21471
|
if (n.pitch) {
|
|
21472
|
-
const d =
|
|
21473
|
-
l.pitch = this._map.transform.pitch + d.amount,
|
|
21472
|
+
const d = Ss(n.pitch, s, cn);
|
|
21473
|
+
l.pitch = this._map.transform.pitch + d.amount, Ts(l, d);
|
|
21474
21474
|
}
|
|
21475
21475
|
if (n.roll) {
|
|
21476
|
-
const d =
|
|
21477
|
-
l.roll = this._map.transform.roll + c.ao(d.amount, -179, 179),
|
|
21476
|
+
const d = Ss(n.roll, s, Sh);
|
|
21477
|
+
l.roll = this._map.transform.roll + c.ao(d.amount, -179, 179), Ts(l, d);
|
|
21478
21478
|
}
|
|
21479
21479
|
if (l.zoom || l.bearing) {
|
|
21480
21480
|
const d = n.pinchAround === void 0 ? n.around : n.pinchAround;
|
|
@@ -21483,10 +21483,10 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21483
21483
|
return this.clear(), c.e(l, { noMoveStart: !0 });
|
|
21484
21484
|
}
|
|
21485
21485
|
}
|
|
21486
|
-
function
|
|
21486
|
+
function Ts(p, t) {
|
|
21487
21487
|
(!p.duration || p.duration < t.duration) && (p.duration = t.duration, p.easing = t.easing);
|
|
21488
21488
|
}
|
|
21489
|
-
function
|
|
21489
|
+
function Ss(p, t, n) {
|
|
21490
21490
|
const { maxSpeed: s, linearity: l, deceleration: d } = n, m = c.ao(p * l / (t / 1e3), -s, s), _ = Math.abs(m) / (d * l);
|
|
21491
21491
|
return { easing: n.easing, duration: 1e3 * _, amount: m * (_ / 2) };
|
|
21492
21492
|
}
|
|
@@ -21503,7 +21503,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21503
21503
|
super(t, c.e({ point: d, lngLat: m, originalEvent: s }, l)), this._defaultPrevented = !1, this.target = n;
|
|
21504
21504
|
}
|
|
21505
21505
|
}
|
|
21506
|
-
class
|
|
21506
|
+
class Ps extends c.l {
|
|
21507
21507
|
preventDefault() {
|
|
21508
21508
|
this._defaultPrevented = !0;
|
|
21509
21509
|
}
|
|
@@ -21526,7 +21526,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21526
21526
|
super(t, { originalEvent: s }), this._defaultPrevented = !1;
|
|
21527
21527
|
}
|
|
21528
21528
|
}
|
|
21529
|
-
class
|
|
21529
|
+
class Is {
|
|
21530
21530
|
constructor(t, n) {
|
|
21531
21531
|
this._map = t, this._clickTolerance = n.clickTolerance;
|
|
21532
21532
|
}
|
|
@@ -21555,16 +21555,16 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21555
21555
|
this._map.fire(new Fr(t.type, this._map, t));
|
|
21556
21556
|
}
|
|
21557
21557
|
touchstart(t) {
|
|
21558
|
-
return this._firePreventable(new
|
|
21558
|
+
return this._firePreventable(new Ps(t.type, this._map, t));
|
|
21559
21559
|
}
|
|
21560
21560
|
touchmove(t) {
|
|
21561
|
-
this._map.fire(new
|
|
21561
|
+
this._map.fire(new Ps(t.type, this._map, t));
|
|
21562
21562
|
}
|
|
21563
21563
|
touchend(t) {
|
|
21564
|
-
this._map.fire(new
|
|
21564
|
+
this._map.fire(new Ps(t.type, this._map, t));
|
|
21565
21565
|
}
|
|
21566
21566
|
touchcancel(t) {
|
|
21567
|
-
this._map.fire(new
|
|
21567
|
+
this._map.fire(new Ps(t.type, this._map, t));
|
|
21568
21568
|
}
|
|
21569
21569
|
_firePreventable(t) {
|
|
21570
21570
|
if (this._map.fire(t), t.defaultPrevented) return {};
|
|
@@ -21677,7 +21677,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21677
21677
|
return this._map.fire(new c.l(t, { originalEvent: n }));
|
|
21678
21678
|
}
|
|
21679
21679
|
}
|
|
21680
|
-
function
|
|
21680
|
+
function Ms(p, t) {
|
|
21681
21681
|
if (p.length !== t.length) throw new Error(`The number of touches and points are not equal - touches ${p.length}, points ${t.length}`);
|
|
21682
21682
|
const n = {};
|
|
21683
21683
|
for (let s = 0; s < p.length; s++) n[p[s].identifier] = t[s];
|
|
@@ -21695,11 +21695,11 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21695
21695
|
const d = new c.P(0, 0);
|
|
21696
21696
|
for (const m of l) d._add(m);
|
|
21697
21697
|
return d.div(l.length);
|
|
21698
|
-
})(n), this.touches =
|
|
21698
|
+
})(n), this.touches = Ms(s, n)));
|
|
21699
21699
|
}
|
|
21700
21700
|
touchmove(t, n, s) {
|
|
21701
21701
|
if (this.aborted || !this.centroid) return;
|
|
21702
|
-
const l =
|
|
21702
|
+
const l = Ms(s, n);
|
|
21703
21703
|
for (const d in this.touches) {
|
|
21704
21704
|
const m = l[d];
|
|
21705
21705
|
(!m || m.dist(this.touches[d]) > 30) && (this.aborted = !0);
|
|
@@ -21733,7 +21733,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21733
21733
|
}
|
|
21734
21734
|
}
|
|
21735
21735
|
}
|
|
21736
|
-
class
|
|
21736
|
+
class Es {
|
|
21737
21737
|
constructor(t) {
|
|
21738
21738
|
this._tr = new Ne(t), this._zoomIn = new ua({ numTouches: 1, numTaps: 2 }), this._zoomOut = new ua({ numTouches: 2, numTaps: 1 }), this.reset();
|
|
21739
21739
|
}
|
|
@@ -21913,7 +21913,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
21913
21913
|
}
|
|
21914
21914
|
_calculateTransform(t, n, s) {
|
|
21915
21915
|
s.length > 0 && (this._active = !0);
|
|
21916
|
-
const l =
|
|
21916
|
+
const l = Ms(s, n), d = new c.P(0, 0), m = new c.P(0, 0);
|
|
21917
21917
|
let _ = 0;
|
|
21918
21918
|
for (const b in l) {
|
|
21919
21919
|
const T = l[b], M = this._touches[b];
|
|
@@ -22044,7 +22044,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
22044
22044
|
}
|
|
22045
22045
|
}
|
|
22046
22046
|
const vo = { panStep: 100, bearingStep: 15, pitchStep: 10 };
|
|
22047
|
-
class
|
|
22047
|
+
class As {
|
|
22048
22048
|
constructor(t) {
|
|
22049
22049
|
this._tr = new Ne(t);
|
|
22050
22050
|
const n = vo;
|
|
@@ -22311,7 +22311,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
22311
22311
|
return this._mouseRotate.isActive() || this._mousePitch.isActive() || this._mouseRoll.isActive();
|
|
22312
22312
|
}
|
|
22313
22313
|
}
|
|
22314
|
-
class
|
|
22314
|
+
class qa {
|
|
22315
22315
|
constructor(t, n, s, l) {
|
|
22316
22316
|
this._el = t, this._touchZoom = n, this._touchRotate = s, this._tapDragZoom = l, this._rotationDisabled = !1, this._enabled = !0;
|
|
22317
22317
|
}
|
|
@@ -22410,7 +22410,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
22410
22410
|
this._previousActiveHandlers = b, (Object.keys(T).length || Br(_)) && (this._changes.push([_, x, T]), this._triggerRenderFrame()), (Object.keys(b).length || Br(_)) && this._map._stop(!0), this._updatingCamera = !1;
|
|
22411
22411
|
const { cameraAnimation: M } = _;
|
|
22412
22412
|
M && (this._inertia.clear(), this._fireEvents({}, {}, !0), this._changes = [], M(this._map));
|
|
22413
|
-
}, this._map = t, this._el = this._map.getCanvasContainer(), this._handlers = [], this._handlersById = {}, this._changes = [], this._inertia = new
|
|
22413
|
+
}, this._map = t, this._el = this._map.getCanvasContainer(), this._handlers = [], this._handlersById = {}, this._changes = [], this._inertia = new Za(t), this._bearingSnap = n.bearingSnap, this._previousActiveHandlers = {}, this._eventsInProgress = {}, this._addDefaultHandlers(n);
|
|
22414
22414
|
const s = this._el;
|
|
22415
22415
|
this._listeners = [[s, "touchstart", { passive: !0 }], [s, "touchmove", { passive: !1 }], [s, "touchend", void 0], [s, "touchcancel", void 0], [s, "mousedown", void 0], [s, "mousemove", void 0], [s, "mouseup", void 0], [document, "mousemove", { capture: !0 }], [document, "mouseup", void 0], [s, "mouseover", void 0], [s, "mouseout", void 0], [s, "dblclick", void 0], [s, "click", void 0], [s, "keydown", { capture: !1 }], [s, "keyup", void 0], [s, "wheel", { passive: !1 }], [s, "contextmenu", void 0], [window, "blur", void 0]];
|
|
22416
22416
|
for (const [l, d, m] of this._listeners) xe.addEventListener(l, d, l === document ? this.handleWindowEvent : this.handleEvent, m);
|
|
@@ -22420,12 +22420,12 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
22420
22420
|
}
|
|
22421
22421
|
_addDefaultHandlers(t) {
|
|
22422
22422
|
const n = this._map, s = n.getCanvasContainer();
|
|
22423
|
-
this._add("mapEvent", new
|
|
22423
|
+
this._add("mapEvent", new Is(n, t));
|
|
22424
22424
|
const l = n.boxZoom = new El(n, t);
|
|
22425
22425
|
this._add("boxZoom", l), t.interactive && t.boxZoom && l.enable();
|
|
22426
22426
|
const d = n.cooperativeGestures = new Rl(n, t.cooperativeGestures);
|
|
22427
22427
|
this._add("cooperativeGestures", d), t.cooperativeGestures && d.enable();
|
|
22428
|
-
const m = new
|
|
22428
|
+
const m = new Es(n), _ = new yn(n);
|
|
22429
22429
|
n.doubleClickZoom = new bu(_, m), this._add("tapZoom", m), this._add("clickZoom", _), t.interactive && t.doubleClickZoom && n.doubleClickZoom.enable();
|
|
22430
22430
|
const x = new bo();
|
|
22431
22431
|
this._add("tapDragZoom", x);
|
|
@@ -22457,10 +22457,10 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
22457
22457
|
})(t), j = new Mh(t, n);
|
|
22458
22458
|
n.dragPan = new qe(s, F, j), this._add("mousePan", F), this._add("touchPan", j, ["touchZoom", "touchRotate"]), t.interactive && t.dragPan && n.dragPan.enable(t.dragPan);
|
|
22459
22459
|
const G = new En(), U = new _u();
|
|
22460
|
-
n.touchZoomRotate = new
|
|
22460
|
+
n.touchZoomRotate = new qa(s, U, G, x), this._add("touchRotate", G, ["touchPan", "touchZoom"]), this._add("touchZoom", U, ["touchPan", "touchRotate"]), t.interactive && t.touchZoomRotate && n.touchZoomRotate.enable(t.touchZoomRotate), this._add("blockableMapEvent", new Mn(n));
|
|
22461
22461
|
const $ = n.scrollZoom = new kl(n, (() => this._triggerRenderFrame()));
|
|
22462
22462
|
this._add("scrollZoom", $, ["mousePan"]), t.interactive && t.scrollZoom && n.scrollZoom.enable(t.scrollZoom);
|
|
22463
|
-
const K = n.keyboard = new
|
|
22463
|
+
const K = n.keyboard = new As(n);
|
|
22464
22464
|
this._add("keyboard", K), t.interactive && t.keyboard && n.keyboard.enable();
|
|
22465
22465
|
}
|
|
22466
22466
|
_add(t, n, s) {
|
|
@@ -22881,7 +22881,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
22881
22881
|
s !== this._attribHTML && (this._attribHTML = s, t.length ? (this._innerContainer.innerHTML = xe.sanitize(s), this._container.classList.remove("maplibregl-attrib-empty")) : this._container.classList.add("maplibregl-attrib-empty"), this._updateCompact(), this._editLink = null);
|
|
22882
22882
|
}
|
|
22883
22883
|
}
|
|
22884
|
-
class
|
|
22884
|
+
class Wa {
|
|
22885
22885
|
constructor(t = {}) {
|
|
22886
22886
|
this._updateCompact = () => {
|
|
22887
22887
|
const n = this._container.children;
|
|
@@ -23017,7 +23017,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23017
23017
|
return n[t.canonical.z] && t.canonical.x >= n[t.canonical.z].minTileX && t.canonical.x <= n[t.canonical.z].maxTileX && t.canonical.y >= n[t.canonical.z].minTileY && t.canonical.y <= n[t.canonical.z].maxTileY;
|
|
23018
23018
|
}
|
|
23019
23019
|
}
|
|
23020
|
-
class
|
|
23020
|
+
class Cs {
|
|
23021
23021
|
constructor(t, n, s) {
|
|
23022
23022
|
this._meshCache = {}, this.painter = t, this.tileManager = new Pu(n), this.options = s, this.exaggeration = typeof s.exaggeration == "number" ? s.exaggeration : 1, this.qualityFactor = 2, this.meshSize = 128, this._demMatrixCache = {}, this.coordsIndex = [], this._coordsTextureSize = 1024;
|
|
23023
23023
|
}
|
|
@@ -23217,7 +23217,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23217
23217
|
return !1;
|
|
23218
23218
|
}
|
|
23219
23219
|
}
|
|
23220
|
-
const Fl = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "GlobeControl.Enable": "Enable globe", "GlobeControl.Disable": "Disable globe", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" },
|
|
23220
|
+
const Fl = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "GlobeControl.Enable": "Enable globe", "GlobeControl.Disable": "Disable globe", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, Ds = Pe, To = { hash: !1, interactive: !0, bearingSnap: 7, attributionControl: Tu, maplibreLogo: !1, refreshExpiredTiles: !0, canvasContextAttributes: { antialias: !1, preserveDrawingBuffer: !1, powerPreference: "high-performance", failIfMajorPerformanceCaveat: !1, desynchronized: !1, contextType: void 0 }, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], elevation: 0, zoom: 0, bearing: 0, pitch: 0, roll: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: c.c.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, transformConstrain: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, rollEnabled: !1, reduceMotion: void 0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0, centerClampedToGround: !0, experimentalZoomLevelsToOverscale: void 0 }, Bl = { showCompass: !0, showZoom: !0, visualizePitch: !1, visualizeRoll: !0 };
|
|
23221
23221
|
class Ol {
|
|
23222
23222
|
constructor(t, n, s = !1) {
|
|
23223
23223
|
this.mousedown = (d) => {
|
|
@@ -23272,13 +23272,13 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23272
23272
|
}
|
|
23273
23273
|
return p.lng !== l.lng && n.isPointOnMapSurface(n.locationToScreenPoint(p)) ? p : l;
|
|
23274
23274
|
}
|
|
23275
|
-
const
|
|
23275
|
+
const zs = { center: "translate(-50%,-50%)", top: "translate(-50%,0)", "top-left": "translate(0,0)", "top-right": "translate(-100%,0)", bottom: "translate(-50%,-100%)", "bottom-left": "translate(0,-100%)", "bottom-right": "translate(-100%,-100%)", left: "translate(0,-50%)", right: "translate(-100%,-50%)" };
|
|
23276
23276
|
function Po(p, t, n) {
|
|
23277
23277
|
const s = p.classList;
|
|
23278
|
-
for (const l in
|
|
23278
|
+
for (const l in zs) s.remove(`maplibregl-${n}-anchor-${l}`);
|
|
23279
23279
|
s.add(`maplibregl-${n}-anchor-${t}`);
|
|
23280
23280
|
}
|
|
23281
|
-
class
|
|
23281
|
+
class ks extends c.E {
|
|
23282
23282
|
constructor(t) {
|
|
23283
23283
|
if (super(), this._onKeyPress = (n) => {
|
|
23284
23284
|
const s = n.code, l = n.charCode || n.keyCode;
|
|
@@ -23293,7 +23293,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23293
23293
|
let l = "";
|
|
23294
23294
|
this._rotationAlignment === "viewport" || this._rotationAlignment === "auto" ? l = `rotateZ(${this._rotation}deg)` : this._rotationAlignment === "map" && (l = `rotateZ(${this._rotation - this._map.getBearing()}deg)`);
|
|
23295
23295
|
let d = "";
|
|
23296
|
-
this._pitchAlignment === "viewport" || this._pitchAlignment === "auto" ? d = "rotateX(0deg)" : this._pitchAlignment === "map" && (d = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || n && n.type !== "moveend" || (this._pos = this._pos.round()), xe.setTransform(this._element, `${
|
|
23296
|
+
this._pitchAlignment === "viewport" || this._pitchAlignment === "auto" ? d = "rotateX(0deg)" : this._pitchAlignment === "map" && (d = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || n && n.type !== "moveend" || (this._pos = this._pos.round()), xe.setTransform(this._element, `${zs[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${d} ${l}`), pt.frameAsync(new AbortController()).then((() => {
|
|
23297
23297
|
this._updateOpacity(n && n.type === "moveend");
|
|
23298
23298
|
})).catch((() => {
|
|
23299
23299
|
}));
|
|
@@ -23447,7 +23447,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23447
23447
|
const Nl = { positionOptions: { enableHighAccuracy: !1, maximumAge: 0, timeout: 6e3 }, fitBoundsOptions: { maxZoom: 15 }, trackUserLocation: !1, showAccuracyCircle: !0, showUserLocation: !0 };
|
|
23448
23448
|
let fa = 0, ma = !1;
|
|
23449
23449
|
const Vl = { maxWidth: 100, unit: "metric" };
|
|
23450
|
-
function
|
|
23450
|
+
function Rs(p, t, n) {
|
|
23451
23451
|
const s = n && n.maxWidth || 100, l = p._container.clientHeight / 2, d = p._container.clientWidth / 2, m = p.unproject([d - s / 2, l]), _ = p.unproject([d + s / 2, l]), x = Math.round(p.project(_).x - p.project(m).x), b = Math.min(s, x, p._container.clientWidth), T = m.distanceTo(_);
|
|
23452
23452
|
if (n && n.unit === "imperial") {
|
|
23453
23453
|
const M = 3.2808 * T;
|
|
@@ -23481,7 +23481,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23481
23481
|
return Io(new c.P(0, 0));
|
|
23482
23482
|
}
|
|
23483
23483
|
const Gl = Pe;
|
|
23484
|
-
E.AJAXError = c.cJ, E.Event = c.l, E.Evented = c.E, E.LngLat = c.V, E.MercatorCoordinate = c.ab, E.Point = c.P, E.addProtocol = c.cK, E.config = c.c, E.removeProtocol = c.cL, E.AttributionControl = Su, E.BoxZoomHandler = El, E.CanvasSource = R, E.CooperativeGesturesHandler = Rl, E.DoubleClickZoomHandler = bu, E.DragPanHandler = qe, E.DragRotateHandler = Ke, E.EdgeInsets =
|
|
23484
|
+
E.AJAXError = c.cJ, E.Event = c.l, E.Evented = c.E, E.LngLat = c.V, E.MercatorCoordinate = c.ab, E.Point = c.P, E.addProtocol = c.cK, E.config = c.c, E.removeProtocol = c.cL, E.AttributionControl = Su, E.BoxZoomHandler = El, E.CanvasSource = R, E.CooperativeGesturesHandler = Rl, E.DoubleClickZoomHandler = bu, E.DragPanHandler = qe, E.DragRotateHandler = Ke, E.EdgeInsets = Ea, E.FullscreenControl = class extends c.E {
|
|
23485
23485
|
constructor(p = {}) {
|
|
23486
23486
|
super(), this._onFullscreenChange = () => {
|
|
23487
23487
|
var t;
|
|
@@ -23580,7 +23580,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23580
23580
|
const n = this._map._getUIString("GeolocateControl.FindMyLocation");
|
|
23581
23581
|
this._geolocateButton.disabled = !1, this._geolocateButton.title = n, this._geolocateButton.setAttribute("aria-label", n);
|
|
23582
23582
|
}
|
|
23583
|
-
this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = xe.create("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new
|
|
23583
|
+
this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = xe.create("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new ks({ element: this._dotElement }), this._circleElement = xe.create("div", "maplibregl-user-location-accuracy-circle"), this._accuracyCircleMarker = new ks({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onUpdate), this._map.on("move", this._onUpdate), this._map.on("rotate", this._onUpdate), this._map.on("pitch", this._onUpdate)), this._geolocateButton.addEventListener("click", (() => this.trigger())), this._setup = !0, this.options.trackUserLocation && this._map.on("movestart", ((n) => {
|
|
23584
23584
|
const s = n?.[0] instanceof ResizeObserverEntry;
|
|
23585
23585
|
n.geolocateSource || this._watchState !== "ACTIVE_LOCK" || s || this._map.isZooming() || (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this.fire(new c.l("trackuserlocationend")), this.fire(new c.l("userlocationlostfocus")));
|
|
23586
23586
|
}));
|
|
@@ -23693,7 +23693,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23693
23693
|
onRemove() {
|
|
23694
23694
|
xe.remove(this._container), this._map.off("styledata", this._updateGlobeIcon), this._globeButton.removeEventListener("click", this._toggleProjection), this._map = void 0;
|
|
23695
23695
|
}
|
|
23696
|
-
}, E.Hash =
|
|
23696
|
+
}, E.Hash = ws, E.ImageSource = Ii, E.KeyboardHandler = As, E.LngLatBounds = Ft, E.LogoControl = Wa, E.Map = class extends Eh {
|
|
23697
23697
|
constructor(p) {
|
|
23698
23698
|
var t, n;
|
|
23699
23699
|
c.cH.mark(c.cI.create);
|
|
@@ -23733,9 +23733,9 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
23733
23733
|
_ ? x(b) : _ = !0;
|
|
23734
23734
|
})), this._resizeObserver.observe(this._container);
|
|
23735
23735
|
}
|
|
23736
|
-
this.handlers = new wu(this, s), this._hash = s.hash && new
|
|
23736
|
+
this.handlers = new wu(this, s), this._hash = s.hash && new ws(typeof s.hash == "string" && s.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: s.center, elevation: s.elevation, zoom: s.zoom, bearing: s.bearing, pitch: s.pitch, roll: s.roll }), s.bounds && (this.resize(), this.fitBounds(s.bounds, c.e({}, s.fitBoundsOptions, { duration: 0 }))));
|
|
23737
23737
|
const m = typeof s.style == "string" || ((n = (t = s.style) === null || t === void 0 ? void 0 : t.projection) === null || n === void 0 ? void 0 : n.type) !== "globe";
|
|
23738
|
-
this.resize(null, m), this._localIdeographFontFamily = s.localIdeographFontFamily, this._validateStyle = s.validateStyle, s.style && this.setStyle(s.style, { localIdeographFontFamily: s.localIdeographFontFamily }), s.attributionControl && this.addControl(new Su(typeof s.attributionControl == "boolean" ? void 0 : s.attributionControl)), s.maplibreLogo && this.addControl(new
|
|
23738
|
+
this.resize(null, m), this._localIdeographFontFamily = s.localIdeographFontFamily, this._validateStyle = s.validateStyle, s.style && this.setStyle(s.style, { localIdeographFontFamily: s.localIdeographFontFamily }), s.attributionControl && this.addControl(new Su(typeof s.attributionControl == "boolean" ? void 0 : s.attributionControl)), s.maplibreLogo && this.addControl(new Wa(), s.logoPosition), this.on("style.load", (() => {
|
|
23739
23739
|
if (m || this._resizeTransform(), this.transform.unmodified) {
|
|
23740
23740
|
const _ = c.U(this.style.stylesheet, ["center", "zoom", "bearing", "pitch", "roll"]);
|
|
23741
23741
|
this.jumpTo(_);
|
|
@@ -24015,7 +24015,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
24015
24015
|
const s = this.style._layers[n];
|
|
24016
24016
|
s.type === "hillshade" && s.source === p.source && c.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."), s.type === "color-relief" && s.source === p.source && c.w("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.");
|
|
24017
24017
|
}
|
|
24018
|
-
this.terrain = new
|
|
24018
|
+
this.terrain = new Cs(this.painter, t, p), this.painter.renderToTexture = new Ll(this.painter, this.terrain), this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this._terrainDataCallback = (n) => {
|
|
24019
24019
|
var s;
|
|
24020
24020
|
n.dataType === "style" ? this.terrain.tileManager.freeRtt() : n.dataType === "source" && n.tile && (n.sourceId !== p.source || this._elevationFreeze || (this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center, this.transform.tileZoom)), this._centerClampedToGround && this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center, this.transform.tileZoom))), ((s = n.source) === null || s === void 0 ? void 0 : s.type) === "image" ? this.terrain.tileManager.freeRtt() : this.terrain.tileManager.freeRtt(n.tile.tileID));
|
|
24021
24021
|
}, this.style.on("data", this._terrainDataCallback);
|
|
@@ -24301,7 +24301,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
24301
24301
|
this._vertices = p, this._update();
|
|
24302
24302
|
}
|
|
24303
24303
|
get version() {
|
|
24304
|
-
return
|
|
24304
|
+
return Ds;
|
|
24305
24305
|
}
|
|
24306
24306
|
getCameraTargetElevation() {
|
|
24307
24307
|
return this.transform.elevation;
|
|
@@ -24312,7 +24312,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
24312
24312
|
setProjection(p) {
|
|
24313
24313
|
return this._lazyInitEmptyStyle(), this.style.setProjection(p), this._update(!0);
|
|
24314
24314
|
}
|
|
24315
|
-
}, E.MapMouseEvent = Fr, E.MapTouchEvent =
|
|
24315
|
+
}, E.MapMouseEvent = Fr, E.MapTouchEvent = Ps, E.MapWheelEvent = Ml, E.Marker = ks, E.NavigationControl = class {
|
|
24316
24316
|
constructor(p) {
|
|
24317
24317
|
this._updateZoomButtons = () => {
|
|
24318
24318
|
const t = this._map.getZoom(), n = t === this._map.getMaxZoom(), s = t === this._map.getMinZoom();
|
|
@@ -24363,7 +24363,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
24363
24363
|
x = n.y + l.bottom.y < _ ? ["top"] : n.y > this._map.transform.height - _ ? ["bottom"] : [], n.x < m / 2 ? x.push("left") : n.x > this._map.transform.width - m / 2 && x.push("right"), s = x.length === 0 ? "bottom" : x.join("-");
|
|
24364
24364
|
}
|
|
24365
24365
|
let d = n.add(l[s]);
|
|
24366
|
-
this.options.subpixelPositioning || (d = d.round()), xe.setTransform(this._container, `${
|
|
24366
|
+
this.options.subpixelPositioning || (d = d.round()), xe.setTransform(this._container, `${zs[s]} translate(${d.x}px,${d.y}px)`), Po(this._container, s, "popup"), this._updateOpacity();
|
|
24367
24367
|
}, this._onClose = () => {
|
|
24368
24368
|
this.remove();
|
|
24369
24369
|
}, this.options = c.e(Object.create(jl), p);
|
|
@@ -24433,9 +24433,9 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
24433
24433
|
}, E.RasterDEMTileSource = an, E.RasterTileSource = Sn, E.ScaleControl = class {
|
|
24434
24434
|
constructor(p) {
|
|
24435
24435
|
this._onMove = () => {
|
|
24436
|
-
|
|
24436
|
+
Rs(this._map, this._container, this.options);
|
|
24437
24437
|
}, this.setUnit = (t) => {
|
|
24438
|
-
this.options.unit = t,
|
|
24438
|
+
this.options.unit = t, Rs(this._map, this._container, this.options);
|
|
24439
24439
|
}, this.options = Object.assign(Object.assign({}, Vl), p);
|
|
24440
24440
|
}
|
|
24441
24441
|
getDefaultPosition() {
|
|
@@ -24461,7 +24461,7 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
24461
24461
|
onRemove() {
|
|
24462
24462
|
xe.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
|
|
24463
24463
|
}
|
|
24464
|
-
}, E.TwoFingersTouchPitchHandler = xu, E.TwoFingersTouchRotateHandler = En, E.TwoFingersTouchZoomHandler = _u, E.TwoFingersTouchZoomRotateHandler =
|
|
24464
|
+
}, E.TwoFingersTouchPitchHandler = xu, E.TwoFingersTouchRotateHandler = En, E.TwoFingersTouchZoomHandler = _u, E.TwoFingersTouchZoomRotateHandler = qa, E.VectorTileSource = qr, E.VideoSource = ce, E.addSourceType = (p, t) => c._(void 0, void 0, void 0, (function* () {
|
|
24465
24465
|
if (N(p)) throw new Error(`A source type called "${p}" already exists.`);
|
|
24466
24466
|
((n, s) => {
|
|
24467
24467
|
k[n] = s;
|
|
@@ -24504,15 +24504,15 @@ ${D.shaderPreludeCode.vertexSource}`, define: D.shaderDefine }, defaultProjectio
|
|
|
24504
24504
|
}));
|
|
24505
24505
|
})(rh)), rh.exports;
|
|
24506
24506
|
}
|
|
24507
|
-
var
|
|
24508
|
-
const mc = /* @__PURE__ */ my(
|
|
24507
|
+
var sx = ax();
|
|
24508
|
+
const mc = /* @__PURE__ */ my(sx);
|
|
24509
24509
|
/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
|
|
24510
24510
|
const {
|
|
24511
24511
|
entries: Rm,
|
|
24512
24512
|
setPrototypeOf: sm,
|
|
24513
|
-
isFrozen:
|
|
24514
|
-
getPrototypeOf:
|
|
24515
|
-
getOwnPropertyDescriptor:
|
|
24513
|
+
isFrozen: ox,
|
|
24514
|
+
getPrototypeOf: lx,
|
|
24515
|
+
getOwnPropertyDescriptor: cx
|
|
24516
24516
|
} = Object;
|
|
24517
24517
|
let {
|
|
24518
24518
|
freeze: Gr,
|
|
@@ -24538,7 +24538,7 @@ Vp || (Vp = function(W) {
|
|
|
24538
24538
|
se[ve - 1] = arguments[ve];
|
|
24539
24539
|
return new W(...se);
|
|
24540
24540
|
});
|
|
24541
|
-
const th = $r(Array.prototype.forEach),
|
|
24541
|
+
const th = $r(Array.prototype.forEach), ux = $r(Array.prototype.lastIndexOf), om = $r(Array.prototype.pop), gc = $r(Array.prototype.push), hx = $r(Array.prototype.splice), nh = $r(String.prototype.toLowerCase), Cp = $r(String.prototype.toString), Dp = $r(String.prototype.match), _c = $r(String.prototype.replace), px = $r(String.prototype.indexOf), dx = $r(String.prototype.trim), Fn = $r(Object.prototype.hasOwnProperty), Ur = $r(RegExp.prototype.test), yc = fx(TypeError);
|
|
24542
24542
|
function $r(ie) {
|
|
24543
24543
|
return function(W) {
|
|
24544
24544
|
W instanceof RegExp && (W.lastIndex = 0);
|
|
@@ -24547,7 +24547,7 @@ function $r(ie) {
|
|
|
24547
24547
|
return Np(ie, W, se);
|
|
24548
24548
|
};
|
|
24549
24549
|
}
|
|
24550
|
-
function
|
|
24550
|
+
function fx(ie) {
|
|
24551
24551
|
return function() {
|
|
24552
24552
|
for (var W = arguments.length, Y = new Array(W), se = 0; se < W; se++)
|
|
24553
24553
|
Y[se] = arguments[se];
|
|
@@ -24562,58 +24562,58 @@ function St(ie, W) {
|
|
|
24562
24562
|
let ve = W[se];
|
|
24563
24563
|
if (typeof ve == "string") {
|
|
24564
24564
|
const ke = Y(ve);
|
|
24565
|
-
ke !== ve && (
|
|
24565
|
+
ke !== ve && (ox(W) || (W[se] = ke), ve = ke);
|
|
24566
24566
|
}
|
|
24567
24567
|
ie[ve] = !0;
|
|
24568
24568
|
}
|
|
24569
24569
|
return ie;
|
|
24570
24570
|
}
|
|
24571
|
-
function
|
|
24571
|
+
function mx(ie) {
|
|
24572
24572
|
for (let W = 0; W < ie.length; W++)
|
|
24573
24573
|
Fn(ie, W) || (ie[W] = null);
|
|
24574
24574
|
return ie;
|
|
24575
24575
|
}
|
|
24576
|
-
function
|
|
24576
|
+
function Sa(ie) {
|
|
24577
24577
|
const W = Lm(null);
|
|
24578
24578
|
for (const [Y, se] of Rm(ie))
|
|
24579
|
-
Fn(ie, Y) && (Array.isArray(se) ? W[Y] =
|
|
24579
|
+
Fn(ie, Y) && (Array.isArray(se) ? W[Y] = mx(se) : se && typeof se == "object" && se.constructor === Object ? W[Y] = Sa(se) : W[Y] = se);
|
|
24580
24580
|
return W;
|
|
24581
24581
|
}
|
|
24582
24582
|
function xc(ie, W) {
|
|
24583
24583
|
for (; ie !== null; ) {
|
|
24584
|
-
const se =
|
|
24584
|
+
const se = cx(ie, W);
|
|
24585
24585
|
if (se) {
|
|
24586
24586
|
if (se.get)
|
|
24587
24587
|
return $r(se.get);
|
|
24588
24588
|
if (typeof se.value == "function")
|
|
24589
24589
|
return $r(se.value);
|
|
24590
24590
|
}
|
|
24591
|
-
ie =
|
|
24591
|
+
ie = lx(ie);
|
|
24592
24592
|
}
|
|
24593
24593
|
function Y() {
|
|
24594
24594
|
return null;
|
|
24595
24595
|
}
|
|
24596
24596
|
return Y;
|
|
24597
24597
|
}
|
|
24598
|
-
const lm = Gr(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zp = Gr(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "slot", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), kp = Gr(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
24598
|
+
const lm = Gr(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zp = Gr(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "slot", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), kp = Gr(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), gx = Gr(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Rp = Gr(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), _x = Gr(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), cm = Gr(["#text"]), um = Gr(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Lp = Gr(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), hm = Gr(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ih = Gr(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), yx = Tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm), xx = Tn(/<%[\w\W]*|[\w\W]*%>/gm), vx = Tn(/\$\{[\w\W]*/gm), bx = Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/), wx = Tn(/^aria-[\-\w]+$/), Fm = Tn(
|
|
24599
24599
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
24600
24600
|
// eslint-disable-line no-useless-escape
|
|
24601
|
-
),
|
|
24601
|
+
), Tx = Tn(/^(?:\w+script|data):/i), Sx = Tn(
|
|
24602
24602
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
24603
24603
|
// eslint-disable-line no-control-regex
|
|
24604
|
-
), Bm = Tn(/^html$/i),
|
|
24604
|
+
), Bm = Tn(/^html$/i), Px = Tn(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
24605
24605
|
var pm = /* @__PURE__ */ Object.freeze({
|
|
24606
24606
|
__proto__: null,
|
|
24607
|
-
ARIA_ATTR:
|
|
24608
|
-
ATTR_WHITESPACE:
|
|
24609
|
-
CUSTOM_ELEMENT:
|
|
24610
|
-
DATA_ATTR:
|
|
24607
|
+
ARIA_ATTR: wx,
|
|
24608
|
+
ATTR_WHITESPACE: Sx,
|
|
24609
|
+
CUSTOM_ELEMENT: Px,
|
|
24610
|
+
DATA_ATTR: bx,
|
|
24611
24611
|
DOCTYPE_NAME: Bm,
|
|
24612
|
-
ERB_EXPR:
|
|
24612
|
+
ERB_EXPR: xx,
|
|
24613
24613
|
IS_ALLOWED_URI: Fm,
|
|
24614
|
-
IS_SCRIPT_OR_DATA:
|
|
24615
|
-
MUSTACHE_EXPR:
|
|
24616
|
-
TMPLIT_EXPR:
|
|
24614
|
+
IS_SCRIPT_OR_DATA: Tx,
|
|
24615
|
+
MUSTACHE_EXPR: yx,
|
|
24616
|
+
TMPLIT_EXPR: vx
|
|
24617
24617
|
});
|
|
24618
24618
|
const vc = {
|
|
24619
24619
|
element: 1,
|
|
@@ -24622,9 +24622,9 @@ const vc = {
|
|
|
24622
24622
|
progressingInstruction: 7,
|
|
24623
24623
|
comment: 8,
|
|
24624
24624
|
document: 9
|
|
24625
|
-
},
|
|
24625
|
+
}, Ix = function() {
|
|
24626
24626
|
return typeof window > "u" ? null : window;
|
|
24627
|
-
},
|
|
24627
|
+
}, Mx = function(W, Y) {
|
|
24628
24628
|
if (typeof W != "object" || typeof W.createPolicy != "function")
|
|
24629
24629
|
return null;
|
|
24630
24630
|
let se = null;
|
|
@@ -24657,7 +24657,7 @@ const vc = {
|
|
|
24657
24657
|
};
|
|
24658
24658
|
};
|
|
24659
24659
|
function Om() {
|
|
24660
|
-
let ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
24660
|
+
let ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ix();
|
|
24661
24661
|
const W = (Xe) => Om(Xe);
|
|
24662
24662
|
if (W.version = "3.2.7", W.removed = [], !ie || !ie.document || ie.document.nodeType !== vc.document || !ie.Element)
|
|
24663
24663
|
return W.isSupported = !1, W;
|
|
@@ -24745,18 +24745,18 @@ function Om() {
|
|
|
24745
24745
|
}, Ot = function() {
|
|
24746
24746
|
let te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
24747
24747
|
if (!(Qe && Qe === te)) {
|
|
24748
|
-
if ((!te || typeof te != "object") && (te = {}), te =
|
|
24749
|
-
de.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Bt : te.PARSER_MEDIA_TYPE, bt = gt === "application/xhtml+xml" ? Cp : nh, Rt = Fn(te, "ALLOWED_TAGS") ? St({}, te.ALLOWED_TAGS, bt) : Ar, Lt = Fn(te, "ALLOWED_ATTR") ? St({}, te.ALLOWED_ATTR, bt) : Cr, Se = Fn(te, "ALLOWED_NAMESPACES") ? St({}, te.ALLOWED_NAMESPACES, Cp) : Ve, Q = Fn(te, "ADD_URI_SAFE_ATTR") ? St(
|
|
24748
|
+
if ((!te || typeof te != "object") && (te = {}), te = Sa(te), gt = // eslint-disable-next-line unicorn/prefer-includes
|
|
24749
|
+
de.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Bt : te.PARSER_MEDIA_TYPE, bt = gt === "application/xhtml+xml" ? Cp : nh, Rt = Fn(te, "ALLOWED_TAGS") ? St({}, te.ALLOWED_TAGS, bt) : Ar, Lt = Fn(te, "ALLOWED_ATTR") ? St({}, te.ALLOWED_ATTR, bt) : Cr, Se = Fn(te, "ALLOWED_NAMESPACES") ? St({}, te.ALLOWED_NAMESPACES, Cp) : Ve, Q = Fn(te, "ADD_URI_SAFE_ATTR") ? St(Sa(re), te.ADD_URI_SAFE_ATTR, bt) : re, k = Fn(te, "ADD_DATA_URI_TAGS") ? St(Sa(N), te.ADD_DATA_URI_TAGS, bt) : N, ce = Fn(te, "FORBID_CONTENTS") ? St({}, te.FORBID_CONTENTS, bt) : R, Ti = Fn(te, "FORBID_TAGS") ? St({}, te.FORBID_TAGS, bt) : Sa({}), Hi = Fn(te, "FORBID_ATTR") ? St({}, te.FORBID_ATTR, bt) : Sa({}), Ii = Fn(te, "USE_PROFILES") ? te.USE_PROFILES : !1, Si = te.ALLOW_ARIA_ATTR !== !1, vr = te.ALLOW_DATA_ATTR !== !1, er = te.ALLOW_UNKNOWN_PROTOCOLS || !1, nn = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Pi = te.SAFE_FOR_TEMPLATES || !1, Dr = te.SAFE_FOR_XML !== !1, qt = te.WHOLE_DOCUMENT || !1, Ft = te.RETURN_DOM || !1, zr = te.RETURN_DOM_FRAGMENT || !1, qr = te.RETURN_TRUSTED_TYPE || !1, br = te.FORCE_BODY || !1, Sn = te.SANITIZE_DOM !== !1, an = te.SANITIZE_NAMED_PROPS || !1, mn = te.KEEP_CONTENT !== !1, Wr = te.IN_PLACE || !1, rn = te.ALLOWED_URI_REGEXP || Fm, fe = te.NAMESPACE || ae, Ge = te.MATHML_TEXT_INTEGRATION_POINTS || Ge, et = te.HTML_INTEGRATION_POINTS || et, ct = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && Ci(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ct.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && Ci(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ct.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ct.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Pi && (vr = !1), zr && (Ft = !0), Ii && (Rt = St({}, cm), Lt = [], Ii.html === !0 && (St(Rt, lm), St(Lt, um)), Ii.svg === !0 && (St(Rt, zp), St(Lt, Lp), St(Lt, ih)), Ii.svgFilters === !0 && (St(Rt, kp), St(Lt, Lp), St(Lt, ih)), Ii.mathMl === !0 && (St(Rt, Rp), St(Lt, hm), St(Lt, ih))), te.ADD_TAGS && (Rt === Ar && (Rt = Sa(Rt)), St(Rt, te.ADD_TAGS, bt)), te.ADD_ATTR && (Lt === Cr && (Lt = Sa(Lt)), St(Lt, te.ADD_ATTR, bt)), te.ADD_URI_SAFE_ATTR && St(Q, te.ADD_URI_SAFE_ATTR, bt), te.FORBID_CONTENTS && (ce === R && (ce = Sa(ce)), St(ce, te.FORBID_CONTENTS, bt)), mn && (Rt["#text"] = !0), qt && St(Rt, ["html", "head", "body"]), Rt.table && (St(Rt, ["tbody"]), delete Ti.tbody), te.TRUSTED_TYPES_POLICY) {
|
|
24750
24750
|
if (typeof te.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
24751
24751
|
throw yc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
24752
24752
|
if (typeof te.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
24753
24753
|
throw yc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
24754
24754
|
xt = te.TRUSTED_TYPES_POLICY, si = xt.createHTML("");
|
|
24755
24755
|
} else
|
|
24756
|
-
xt === void 0 && (xt =
|
|
24756
|
+
xt === void 0 && (xt = Mx(pt, ve)), xt !== null && typeof si == "string" && (si = xt.createHTML(""));
|
|
24757
24757
|
Gr && Gr(te), Qe = te;
|
|
24758
24758
|
}
|
|
24759
|
-
}, Kt = St({}, [...zp, ...kp, ...
|
|
24759
|
+
}, Kt = St({}, [...zp, ...kp, ...gx]), Dt = St({}, [...Rp, ..._x]), di = function(te) {
|
|
24760
24760
|
let Re = ot(te);
|
|
24761
24761
|
(!Re || !Re.tagName) && (Re = {
|
|
24762
24762
|
namespaceURI: fe,
|
|
@@ -24884,7 +24884,7 @@ function Om() {
|
|
|
24884
24884
|
) return !1;
|
|
24885
24885
|
} else if (!Q[Re]) {
|
|
24886
24886
|
if (!Ur(rn, _c(We, Er, ""))) {
|
|
24887
|
-
if (!((Re === "src" || Re === "xlink:href" || Re === "href") && te !== "script" &&
|
|
24887
|
+
if (!((Re === "src" || Re === "xlink:href" || Re === "href") && te !== "script" && px(We, "data:") === 0 && k[te])) {
|
|
24888
24888
|
if (!(er && !Ur(Ai, _c(We, Er, "")))) {
|
|
24889
24889
|
if (We)
|
|
24890
24890
|
return !1;
|
|
@@ -24918,7 +24918,7 @@ function Om() {
|
|
|
24918
24918
|
namespaceURI: Mi,
|
|
24919
24919
|
value: pr
|
|
24920
24920
|
} = oi, mi = bt(Wt), Pt = pr;
|
|
24921
|
-
let gi = Wt === "value" ? Pt :
|
|
24921
|
+
let gi = Wt === "value" ? Pt : dx(Pt);
|
|
24922
24922
|
if (We.attrName = mi, We.attrValue = gi, We.keepAttr = !0, We.forceKeepAttr = void 0, fi(vt.uponSanitizeAttribute, te, We), gi = We.attrValue, an && (mi === "id" || mi === "name") && (Rr(Wt, te), gi = kr + gi), Dr && Ur(/((--!?|])>)|<\/(style|title|textarea)/i, gi)) {
|
|
24923
24923
|
Rr(Wt, te);
|
|
24924
24924
|
continue;
|
|
@@ -24964,7 +24964,7 @@ function Om() {
|
|
|
24964
24964
|
}
|
|
24965
24965
|
}
|
|
24966
24966
|
fi(vt.afterSanitizeAttributes, te, null);
|
|
24967
|
-
},
|
|
24967
|
+
}, Pa = function Xe(te) {
|
|
24968
24968
|
let Re = null;
|
|
24969
24969
|
const We = Vi(te);
|
|
24970
24970
|
for (fi(vt.beforeSanitizeShadowDOM, te, null); Re = We.nextNode(); )
|
|
@@ -24999,7 +24999,7 @@ function Om() {
|
|
|
24999
24999
|
Re && br && ir(Re.firstChild);
|
|
25000
25000
|
const Wt = Vi(Wr ? Xe : Re);
|
|
25001
25001
|
for (; Vt = Wt.nextNode(); )
|
|
25002
|
-
Fe(Vt), rr(Vt), Vt.content instanceof ke &&
|
|
25002
|
+
Fe(Vt), rr(Vt), Vt.content instanceof ke && Pa(Vt.content);
|
|
25003
25003
|
if (Wr)
|
|
25004
25004
|
return Xe;
|
|
25005
25005
|
if (Ft) {
|
|
@@ -25028,8 +25028,8 @@ function Om() {
|
|
|
25028
25028
|
typeof te == "function" && gc(vt[Xe], te);
|
|
25029
25029
|
}, W.removeHook = function(Xe, te) {
|
|
25030
25030
|
if (te !== void 0) {
|
|
25031
|
-
const Re =
|
|
25032
|
-
return Re === -1 ? void 0 :
|
|
25031
|
+
const Re = ux(vt[Xe], te);
|
|
25032
|
+
return Re === -1 ? void 0 : hx(vt[Xe], Re, 1)[0];
|
|
25033
25033
|
}
|
|
25034
25034
|
return om(vt[Xe]);
|
|
25035
25035
|
}, W.removeHooks = function(Xe) {
|
|
@@ -25039,29 +25039,29 @@ function Om() {
|
|
|
25039
25039
|
}, W;
|
|
25040
25040
|
}
|
|
25041
25041
|
var fm = Om();
|
|
25042
|
-
const Ax = 8, Cx = "Bright", Dx = { "mapbox:autocomposite": !1, "mapbox:groups": { "1444849242106.713": { collapsed: !1, name: "Places" }, "1444849334699.1902": { collapsed: !0, name: "Bridges" }, "1444849345966.4436": { collapsed: !1, name: "Roads" }, "1444849354174.1904": { collapsed: !0, name: "Tunnels" }, "1444849364238.8171": { collapsed: !1, name: "Buildings" }, "1444849382550.77": { collapsed: !1, name: "Water" }, "1444849388993.3071": { collapsed: !1, name: "Land" } }, "mapbox:type": "template", "openmaptiles:mapbox:owner": "openmaptiles", "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t", "openmaptiles:version": "3.x", "maputnik:renderer": "mbgljs" }, zx = [0, 0], kx = 1, Rx = 0, Lx = 0, Fx = { openmaptiles: { type: "vector", url: "https://openmaptiles.geo.data.gouv.fr/data/planet-vector.json" }, "decoupage-administratif": { type: "vector", url: "https://openmaptiles.geo.data.gouv.fr/data/decoupage-administratif.json" } }, Bx = "https://openmaptiles.github.io/osm-bright-gl-style/sprite", Ox = "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf", Nx = /* @__PURE__ */ JSON.parse('[{"id":"background","type":"background","minzoom":0,"maxzoom":24,"layout":{"visibility":"visible"},"paint":{"background-color":"rgba(255, 246, 241, 1)"}},{"id":"landcover-glacier","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","subclass","glacier"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-opacity":{"base":1,"stops":[[0,0.9],[10,0.3]]}}},{"id":"landcover-wood","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","class","wood"],"paint":{"fill-antialias":{"base":1,"stops":[[0,false],[9,true]]},"fill-color":"#6a4","fill-opacity":0.1,"fill-outline-color":"hsla(0, 0%, 0%, 0.03)"}},{"id":"landcover-grass","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","class","grass"],"paint":{"fill-color":"#d8e8c8","fill-opacity":1}},{"id":"landcover-grass-park","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"park","filter":["==","class","public_park"],"paint":{"fill-color":"#d8e8c8","fill-opacity":0.8}},{"id":"landuse-residential","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["in","class","residential","suburb","neighbourhood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"base":1,"stops":[[12,"hsla(30, 19%, 90%, 0.4)"],[16,"hsla(30, 19%, 90%, 0.2)"]]}}},{"id":"landuse-commercial","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["==","$type","Polygon"],["==","class","commercial"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsla(0, 60%, 87%, 0.23)"}},{"id":"landuse-industrial","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["==","$type","Polygon"],["==","class","industrial"]],"paint":{"fill-color":"hsla(49, 100%, 88%, 0.34)"}},{"id":"landuse-cemetery","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","cemetery"],"paint":{"fill-color":"#e0e4dd"}},{"id":"landuse-hospital","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","hospital"],"paint":{"fill-color":"#fde"}},{"id":"landuse-school","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","school"],"paint":{"fill-color":"#f0e8f8"}},{"id":"landuse-railway","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","railway"],"paint":{"fill-color":"hsla(30, 19%, 90%, 0.4)"}},{"id":"waterway_tunnel","type":"line","source":"openmaptiles","source-layer":"waterway","minzoom":14,"filter":["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-dasharray":[2,4],"line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]}}},{"id":"waterway-other","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["!in","class","canal","river","stream"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,2]]}}},{"id":"waterway-other-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["!in","class","canal","river","stream"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,2]]},"line-dasharray":[4,3]}},{"id":"waterway-stream-canal","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["in","class","canal","stream"],["!=","brunnel","tunnel"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]}}},{"id":"waterway-stream-canal-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["in","class","canal","stream"],["!=","brunnel","tunnel"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]},"line-dasharray":[4,3]}},{"id":"waterway-river","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["==","class","river"],["!=","brunnel","tunnel"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.2,"stops":[[10,0.8],[20,6]]}}},{"id":"waterway-river-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["==","class","river"],["!=","brunnel","tunnel"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.2,"stops":[[10,0.8],[20,6]]},"line-dasharray":[3,2.5]}},{"id":"water-offset","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","maxzoom":8,"filter":["==","$type","Polygon"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#a0c8f0","fill-opacity":1,"fill-translate":{"base":1,"stops":[[6,[2,0]],[8,[0,0]]]}}},{"id":"water","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","filter":["all",["!=","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(210, 67%, 85%)"}},{"id":"water-intermittent","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","filter":["all",["==","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0.7}},{"id":"landcover-ice-shelf","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"landcover","filter":["==","subclass","ice_shelf"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-opacity":{"base":1,"stops":[[0,0.9],[10,0.3]]}}},{"id":"landcover-sand","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"landcover","filter":["all",["==","class","sand"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgba(245, 238, 188, 1)","fill-opacity":1}},{"id":"building","type":"fill","metadata":{"mapbox:group":"1444849364238.8171"},"source":"openmaptiles","source-layer":"building","layout":{"visibility":"none"},"paint":{"fill-antialias":true,"fill-color":{"base":1,"stops":[[15.5,"#f2eae2"],[16,"#dfdbd7"]]}}},{"id":"building-top","type":"fill","metadata":{"mapbox:group":"1444849364238.8171"},"source":"openmaptiles","source-layer":"building","layout":{"visibility":"none"},"paint":{"fill-color":"#f2eae2","fill-opacity":{"base":1,"stops":[[13,0],[16,1]]},"fill-outline-color":"#dfdbd7","fill-translate":{"base":1,"stops":[[14,[0,0]],[16,[-2,-2]]]}}},{"id":"tunnel-service-track-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","service","track"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#cfcdca","line-dasharray":[0.5,0.25],"line-width":{"base":1.2,"stops":[[15,1],[16,4],[20,11]]}}},{"id":"tunnel-minor-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","minor"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#cfcdca","line-opacity":{"stops":[[12,0],[12.5,1]]},"line-width":{"base":1.2,"stops":[[12,0.5],[13,1],[14,4],[20,15]]}}},{"id":"tunnel-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,17]]}}},{"id":"tunnel-trunk-primary-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"tunnel-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","motorway"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-dasharray":[0.5,0.25],"line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"tunnel-path","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"tunnel-service-track","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","service","track"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff","line-width":{"base":1.2,"stops":[[15.5,0],[16,2],[20,7.5]]}}},{"id":"tunnel-minor","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","minor_road"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1.2,"stops":[[13.5,0],[14,2.5],[20,11.5]]}}},{"id":"tunnel-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff4c6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,10]]}}},{"id":"tunnel-trunk-primary","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff4c6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"tunnel-motorway","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","motorway"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#ffdaa6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"tunnel-railway","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-dasharray":[2,2],"line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"ferry","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["in","class","ferry"]],"layout":{"line-join":"round","visibility":"none"},"paint":{"line-color":"rgba(108, 159, 182, 1)","line-dasharray":[2,2],"line-width":1.1}},{"id":"aeroway-taxiway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","taxiway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(153, 153, 153, 1)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,2],[17,12]]}}},{"id":"aeroway-runway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","runway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(153, 153, 153, 1)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,5],[17,55]]}}},{"id":"aeroway-area","type":"fill","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["==","$type","Polygon"],["in","class","runway","taxiway"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgba(255, 255, 255, 1)","fill-opacity":{"base":1,"stops":[[13,0],[14,1]]}}},{"id":"aeroway-taxiway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","taxiway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":{"base":1,"stops":[[11,0],[12,1]]},"line-width":{"base":1.5,"stops":[[11,1],[17,10]]}}},{"id":"aeroway-runway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","runway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":{"base":1,"stops":[[11,0],[12,1]]},"line-width":{"base":1.5,"stops":[[11,4],[17,50]]}}},{"id":"road_area_pier","type":"fill","metadata":{},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["==","class","pier"]],"layout":{"visibility":"none"},"paint":{"fill-antialias":true,"fill-color":"#f8f4f0"}},{"id":"road_pier","type":"line","metadata":{},"source":"openmaptiles","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["in","class","pier"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"#f8f4f0","line-width":{"base":1.2,"stops":[[15,1],[17,4]]}}},{"id":"highway-area","type":"fill","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["!in","class","pier"]],"layout":{"visibility":"visible"},"paint":{"fill-antialias":false,"fill-color":"hsla(0, 0%, 89%, 0.56)","fill-opacity":0.9,"fill-outline-color":"#cfcdca"}},{"id":"highway-motorway-link-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"highway-link-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"highway-minor-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#cfcdca","line-opacity":{"stops":[[12,0],[12.5,1]]},"line-width":{"base":1.2,"stops":[[12,0.5],[13,1],[14,4],[20,15]]}}},{"id":"highway-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,17]]}}},{"id":"highway-primary-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[7,0],[8,1]]},"line-width":{"base":1.2,"stops":[[7,0],[8,0.6],[9,1.5],[20,22]]}}},{"id":"highway-trunk-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[5,0],[6,1]]},"line-width":{"base":1.2,"stops":[[5,0],[6,0.6],[7,1.5],[20,22]]}}},{"id":"highway-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":4,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[4,0],[5,1]]},"line-width":{"base":1.2,"stops":[[4,0],[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"highway-path","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"highway-motorway-link","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"highway-link","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"highway-minor","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1.2,"stops":[[13.5,0],[14,2.5],[20,11.5]]}}},{"id":"highway-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[8,0.5],[20,13]]}}},{"id":"highway-primary","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[8.5,0],[9,0.5],[20,18]]}}},{"id":"highway-trunk","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"highway-motorway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"railway-transit","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{"base":1.4,"stops":[[14,0.4],[20,1]]}}},{"id":"railway-transit-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,2],[20,6]]}}},{"id":"railway-service","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"paint":{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{"base":1.4,"stops":[[14,0.4],[20,1]]}}},{"id":"railway-service-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,2],[20,6]]}}},{"id":"railway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"railway-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],"paint":{"line-color":"#bbb","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,3],[20,8]]}}},{"id":"bridge-motorway-link-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"bridge-link-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"bridge-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,28]]}}},{"id":"bridge-trunk-primary-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"hsl(28, 76%, 67%)","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,26]]}}},{"id":"bridge-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"bridge-path-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],"paint":{"line-color":"#f8f4f0","line-width":{"base":1.2,"stops":[[15,1.2],[20,18]]}}},{"id":"bridge-path","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"bridge-motorway-link","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"bridge-link","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"bridge-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,20]]}}},{"id":"bridge-trunk-primary","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"bridge-motorway","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"bridge-railway","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"bridge-railway-hatching","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,3],[20,8]]}}},{"id":"cablecar","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["==","class","cable_car"],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 70%)","line-width":{"base":1,"stops":[[11,1],[19,2.5]]}}},{"id":"cablecar-dash","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["==","class","cable_car"],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 70%)","line-dasharray":[2,3],"line-width":{"base":1,"stops":[[11,3],[19,5.5]]}}},{"id":"boundary-land-level-4","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{"base":1.4,"stops":[[4,0.4],[5,1],[12,3]]}}},{"id":"boundary-land-level-2","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(248, 7%, 66%)","line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"boundary-land-disputed","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["!=","maritime",1],["==","disputed",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"boundary-water","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["in","admin_level",2,4],["==","maritime",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(154, 189, 214, 1)","line-opacity":{"stops":[[6,0.6],[10,1]]},"line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"waterway-name","type":"symbol","source":"openmaptiles","source-layer":"waterway","minzoom":13,"filter":["all",["==","$type","LineString"],["has","name"]],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14,"visibility":"visible"},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"communes","type":"line","source":"decoupage-administratif","source-layer":"communes","minzoom":10,"maxzoom":24,"layout":{"visibility":"visible"},"paint":{"line-opacity":0.3,"line-color":"black","line-width":0.5}},{"id":"departements","type":"line","source":"decoupage-administratif","source-layer":"departements","layout":{"visibility":"visible"},"paint":{"line-opacity":0.3,"line-color":"black","line-width":0.5}},{"id":"water-name-lakeline","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["==","$type","LineString"],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"water-name-ocean","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==","$type","Point"],["==","class","ocean"]],"layout":{"symbol-placement":"point","symbol-spacing":350,"text-field":"{name:latin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"water-name-other","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==","$type","Point"],["!in","class","ocean"]],"layout":{"symbol-placement":"point","symbol-spacing":350,"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":{"stops":[[0,10],[6,14]]},"visibility":"visible"},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"road_oneway","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":15,"filter":["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],"layout":{"icon-image":"oneway","icon-padding":2,"icon-rotate":90,"icon-rotation-alignment":"map","icon-size":{"stops":[[15,0.5],[19,1]]},"symbol-placement":"line","symbol-spacing":75,"visibility":"visible"},"paint":{"icon-opacity":0.5}},{"id":"road_oneway_opposite","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":15,"filter":["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],"layout":{"icon-image":"oneway","icon-padding":2,"icon-rotate":-90,"icon-rotation-alignment":"map","icon-size":{"stops":[[15,0.5],[19,1]]},"symbol-placement":"line","symbol-spacing":75,"visibility":"visible"},"paint":{"icon-opacity":0.5}},{"id":"highway-name-path","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15.5,"filter":["==","class","path"],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"hsl(30, 23%, 62%)","text-halo-color":"#f8f4f0","text-halo-width":0.5}},{"id":"highway-name-minor","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15,"filter":["all",["==","$type","LineString"],["in","class","minor","service","track"]],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"#765","text-halo-blur":0.5,"text-halo-width":1}},{"id":"highway-name-major","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":12.2,"filter":["in","class","primary","secondary","tertiary","trunk"],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"#765","text-halo-blur":0.5,"text-halo-width":1}},{"id":"highway-shield","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":8,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],"layout":{"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[10,"point"],[11,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{}},{"id":"highway-shield-us-interstate","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":7,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],"layout":{"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[7,"point"],[7,"line"],[8,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{"text-color":"rgba(0, 0, 0, 1)"}},{"id":"highway-shield-us-other","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":9,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],"layout":{"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[10,"point"],[11,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{"text-color":"rgba(0, 0, 0, 1)"}},{"id":"airport-label-major","type":"symbol","source":"openmaptiles","source-layer":"aerodrome_label","minzoom":10,"filter":["all",["has","iata"]],"layout":{"icon-image":"airport_11","icon-size":1,"text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-optional":true,"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-3","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":16,"filter":["all",["==","$type","Point"],[">=","rank",25],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-2","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":15,"filter":["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-1","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":14,"filter":["all",["==","$type","Point"],["<=","rank",14],["has","name"],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-railway","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":13,"filter":["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],"layout":{"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-image":"{class}_11","icon-optional":false,"text-allow-overlap":false,"text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-ignore-placement":false,"text-max-width":9,"text-offset":[0,0.6],"text-optional":true,"text-padding":2,"text-size":12},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"place-other","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["!in","class","city","town","village","country","continent"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Bold"],"text-letter-spacing":0.1,"text-max-width":9,"text-size":{"base":1.2,"stops":[[12,10],[15,14]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#633","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-village","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["==","class","village"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[10,12],[15,22]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-town","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["==","class","town"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[10,14],[15,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-city","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["!=","capital",2],["==","class","city"]],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[7,14],[11,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-city-capital","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","capital",2],["==","class","city"]],"layout":{"icon-image":"star_11","icon-size":0.8,"text-anchor":"left","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-offset":[0.4,0],"text-size":{"base":1.2,"stops":[[7,14],[11,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-country-other","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Italic"],"text-max-width":6.25,"text-size":{"stops":[[3,11],[7,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-3","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[3,11],[7,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-2","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[2,11],[5,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-1","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[1,11],[4,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-continent","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","maxzoom":1,"filter":["==","class","continent"],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":14,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}}]'), Vx = "bright", jx = {
|
|
25043
|
-
version:
|
|
25044
|
-
name:
|
|
25045
|
-
metadata:
|
|
25046
|
-
center:
|
|
25047
|
-
zoom:
|
|
25048
|
-
bearing:
|
|
25049
|
-
pitch:
|
|
25050
|
-
sources:
|
|
25051
|
-
sprite:
|
|
25052
|
-
glyphs:
|
|
25053
|
-
layers:
|
|
25054
|
-
id:
|
|
25055
|
-
},
|
|
25042
|
+
const Ex = 8, Ax = "Bright", Cx = { "mapbox:autocomposite": !1, "mapbox:groups": { "1444849242106.713": { collapsed: !1, name: "Places" }, "1444849334699.1902": { collapsed: !0, name: "Bridges" }, "1444849345966.4436": { collapsed: !1, name: "Roads" }, "1444849354174.1904": { collapsed: !0, name: "Tunnels" }, "1444849364238.8171": { collapsed: !1, name: "Buildings" }, "1444849382550.77": { collapsed: !1, name: "Water" }, "1444849388993.3071": { collapsed: !1, name: "Land" } }, "mapbox:type": "template", "openmaptiles:mapbox:owner": "openmaptiles", "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t", "openmaptiles:version": "3.x", "maputnik:renderer": "mbgljs" }, Dx = [0, 0], zx = 1, kx = 0, Rx = 0, Lx = { openmaptiles: { type: "vector", url: "https://openmaptiles.geo.data.gouv.fr/data/planet-vector.json" }, "decoupage-administratif": { type: "vector", url: "https://openmaptiles.geo.data.gouv.fr/data/decoupage-administratif.json" } }, Fx = "https://openmaptiles.github.io/osm-bright-gl-style/sprite", Bx = "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf", Ox = /* @__PURE__ */ JSON.parse('[{"id":"background","type":"background","minzoom":0,"maxzoom":24,"layout":{"visibility":"visible"},"paint":{"background-color":"rgba(255, 246, 241, 1)"}},{"id":"landcover-glacier","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","subclass","glacier"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-opacity":{"base":1,"stops":[[0,0.9],[10,0.3]]}}},{"id":"landcover-wood","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","class","wood"],"paint":{"fill-antialias":{"base":1,"stops":[[0,false],[9,true]]},"fill-color":"#6a4","fill-opacity":0.1,"fill-outline-color":"hsla(0, 0%, 0%, 0.03)"}},{"id":"landcover-grass","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landcover","filter":["==","class","grass"],"paint":{"fill-color":"#d8e8c8","fill-opacity":1}},{"id":"landcover-grass-park","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"park","filter":["==","class","public_park"],"paint":{"fill-color":"#d8e8c8","fill-opacity":0.8}},{"id":"landuse-residential","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["in","class","residential","suburb","neighbourhood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"base":1,"stops":[[12,"hsla(30, 19%, 90%, 0.4)"],[16,"hsla(30, 19%, 90%, 0.2)"]]}}},{"id":"landuse-commercial","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["==","$type","Polygon"],["==","class","commercial"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsla(0, 60%, 87%, 0.23)"}},{"id":"landuse-industrial","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["all",["==","$type","Polygon"],["==","class","industrial"]],"paint":{"fill-color":"hsla(49, 100%, 88%, 0.34)"}},{"id":"landuse-cemetery","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","cemetery"],"paint":{"fill-color":"#e0e4dd"}},{"id":"landuse-hospital","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","hospital"],"paint":{"fill-color":"#fde"}},{"id":"landuse-school","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","school"],"paint":{"fill-color":"#f0e8f8"}},{"id":"landuse-railway","type":"fill","metadata":{"mapbox:group":"1444849388993.3071"},"source":"openmaptiles","source-layer":"landuse","filter":["==","class","railway"],"paint":{"fill-color":"hsla(30, 19%, 90%, 0.4)"}},{"id":"waterway_tunnel","type":"line","source":"openmaptiles","source-layer":"waterway","minzoom":14,"filter":["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-dasharray":[2,4],"line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]}}},{"id":"waterway-other","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["!in","class","canal","river","stream"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,2]]}}},{"id":"waterway-other-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["!in","class","canal","river","stream"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,2]]},"line-dasharray":[4,3]}},{"id":"waterway-stream-canal","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["in","class","canal","stream"],["!=","brunnel","tunnel"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]}}},{"id":"waterway-stream-canal-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["in","class","canal","stream"],["!=","brunnel","tunnel"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]},"line-dasharray":[4,3]}},{"id":"waterway-river","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["==","class","river"],["!=","brunnel","tunnel"],["==","intermittent",0]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.2,"stops":[[10,0.8],[20,6]]}}},{"id":"waterway-river-intermittent","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["==","class","river"],["!=","brunnel","tunnel"],["==","intermittent",1]],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.2,"stops":[[10,0.8],[20,6]]},"line-dasharray":[3,2.5]}},{"id":"water-offset","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","maxzoom":8,"filter":["==","$type","Polygon"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#a0c8f0","fill-opacity":1,"fill-translate":{"base":1,"stops":[[6,[2,0]],[8,[0,0]]]}}},{"id":"water","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","filter":["all",["!=","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(210, 67%, 85%)"}},{"id":"water-intermittent","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","filter":["all",["==","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0.7}},{"id":"landcover-ice-shelf","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"landcover","filter":["==","subclass","ice_shelf"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-opacity":{"base":1,"stops":[[0,0.9],[10,0.3]]}}},{"id":"landcover-sand","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"landcover","filter":["all",["==","class","sand"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgba(245, 238, 188, 1)","fill-opacity":1}},{"id":"building","type":"fill","metadata":{"mapbox:group":"1444849364238.8171"},"source":"openmaptiles","source-layer":"building","layout":{"visibility":"none"},"paint":{"fill-antialias":true,"fill-color":{"base":1,"stops":[[15.5,"#f2eae2"],[16,"#dfdbd7"]]}}},{"id":"building-top","type":"fill","metadata":{"mapbox:group":"1444849364238.8171"},"source":"openmaptiles","source-layer":"building","layout":{"visibility":"none"},"paint":{"fill-color":"#f2eae2","fill-opacity":{"base":1,"stops":[[13,0],[16,1]]},"fill-outline-color":"#dfdbd7","fill-translate":{"base":1,"stops":[[14,[0,0]],[16,[-2,-2]]]}}},{"id":"tunnel-service-track-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","service","track"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#cfcdca","line-dasharray":[0.5,0.25],"line-width":{"base":1.2,"stops":[[15,1],[16,4],[20,11]]}}},{"id":"tunnel-minor-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","minor"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#cfcdca","line-opacity":{"stops":[[12,0],[12.5,1]]},"line-width":{"base":1.2,"stops":[[12,0.5],[13,1],[14,4],[20,15]]}}},{"id":"tunnel-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,17]]}}},{"id":"tunnel-trunk-primary-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"tunnel-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","motorway"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-dasharray":[0.5,0.25],"line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"tunnel-path","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"tunnel-service-track","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","service","track"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff","line-width":{"base":1.2,"stops":[[15.5,0],[16,2],[20,7.5]]}}},{"id":"tunnel-minor","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","minor_road"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1.2,"stops":[[13.5,0],[14,2.5],[20,11.5]]}}},{"id":"tunnel-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff4c6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,10]]}}},{"id":"tunnel-trunk-primary","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff4c6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"tunnel-motorway","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","motorway"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#ffdaa6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"tunnel-railway","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-dasharray":[2,2],"line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"ferry","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["in","class","ferry"]],"layout":{"line-join":"round","visibility":"none"},"paint":{"line-color":"rgba(108, 159, 182, 1)","line-dasharray":[2,2],"line-width":1.1}},{"id":"aeroway-taxiway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","taxiway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(153, 153, 153, 1)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,2],[17,12]]}}},{"id":"aeroway-runway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","runway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(153, 153, 153, 1)","line-opacity":1,"line-width":{"base":1.5,"stops":[[11,5],[17,55]]}}},{"id":"aeroway-area","type":"fill","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["==","$type","Polygon"],["in","class","runway","taxiway"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"rgba(255, 255, 255, 1)","fill-opacity":{"base":1,"stops":[[13,0],[14,1]]}}},{"id":"aeroway-taxiway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","taxiway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":{"base":1,"stops":[[11,0],[12,1]]},"line-width":{"base":1.5,"stops":[[11,1],[17,10]]}}},{"id":"aeroway-runway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","runway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":{"base":1,"stops":[[11,0],[12,1]]},"line-width":{"base":1.5,"stops":[[11,4],[17,50]]}}},{"id":"road_area_pier","type":"fill","metadata":{},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["==","class","pier"]],"layout":{"visibility":"none"},"paint":{"fill-antialias":true,"fill-color":"#f8f4f0"}},{"id":"road_pier","type":"line","metadata":{},"source":"openmaptiles","source-layer":"transportation","minzoom":0,"filter":["all",["==","$type","LineString"],["in","class","pier"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":"#f8f4f0","line-width":{"base":1.2,"stops":[[15,1],[17,4]]}}},{"id":"highway-area","type":"fill","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["!in","class","pier"]],"layout":{"visibility":"visible"},"paint":{"fill-antialias":false,"fill-color":"hsla(0, 0%, 89%, 0.56)","fill-opacity":0.9,"fill-outline-color":"#cfcdca"}},{"id":"highway-motorway-link-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"highway-link-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"highway-minor-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#cfcdca","line-opacity":{"stops":[[12,0],[12.5,1]]},"line-width":{"base":1.2,"stops":[[12,0.5],[13,1],[14,4],[20,15]]}}},{"id":"highway-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,17]]}}},{"id":"highway-primary-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[7,0],[8,1]]},"line-width":{"base":1.2,"stops":[[7,0],[8,0.6],[9,1.5],[20,22]]}}},{"id":"highway-trunk-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[5,0],[6,1]]},"line-width":{"base":1.2,"stops":[[5,0],[6,0.6],[7,1.5],[20,22]]}}},{"id":"highway-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":4,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[4,0],[5,1]]},"line-width":{"base":1.2,"stops":[[4,0],[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"highway-path","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"highway-motorway-link","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"highway-link","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"highway-minor","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1.2,"stops":[[13.5,0],[14,2.5],[20,11.5]]}}},{"id":"highway-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[8,0.5],[20,13]]}}},{"id":"highway-primary","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[8.5,0],[9,0.5],[20,18]]}}},{"id":"highway-trunk","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"highway-motorway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"railway-transit","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{"base":1.4,"stops":[[14,0.4],[20,1]]}}},{"id":"railway-transit-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,2],[20,6]]}}},{"id":"railway-service","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"paint":{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{"base":1.4,"stops":[[14,0.4],[20,1]]}}},{"id":"railway-service-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,2],[20,6]]}}},{"id":"railway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"railway-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],"paint":{"line-color":"#bbb","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,3],[20,8]]}}},{"id":"bridge-motorway-link-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"bridge-link-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"bridge-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,28]]}}},{"id":"bridge-trunk-primary-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"hsl(28, 76%, 67%)","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,26]]}}},{"id":"bridge-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]}}},{"id":"bridge-path-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],"paint":{"line-color":"#f8f4f0","line-width":{"base":1.2,"stops":[[15,1.2],[20,18]]}}},{"id":"bridge-path","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"bridge-motorway-link","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"bridge-link","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"bridge-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,20]]}}},{"id":"bridge-trunk-primary","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"bridge-motorway","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"bridge-railway","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"bridge-railway-hatching","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,3],[20,8]]}}},{"id":"cablecar","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["==","class","cable_car"],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 70%)","line-width":{"base":1,"stops":[[11,1],[19,2.5]]}}},{"id":"cablecar-dash","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["==","class","cable_car"],"layout":{"line-cap":"round","visibility":"visible"},"paint":{"line-color":"hsl(0, 0%, 70%)","line-dasharray":[2,3],"line-width":{"base":1,"stops":[[11,3],[19,5.5]]}}},{"id":"boundary-land-level-4","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{"base":1.4,"stops":[[4,0.4],[5,1],[12,3]]}}},{"id":"boundary-land-level-2","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(248, 7%, 66%)","line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"boundary-land-disputed","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["!=","maritime",1],["==","disputed",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"boundary-water","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["in","admin_level",2,4],["==","maritime",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(154, 189, 214, 1)","line-opacity":{"stops":[[6,0.6],[10,1]]},"line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"waterway-name","type":"symbol","source":"openmaptiles","source-layer":"waterway","minzoom":13,"filter":["all",["==","$type","LineString"],["has","name"]],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14,"visibility":"visible"},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"communes","type":"line","source":"decoupage-administratif","source-layer":"communes","minzoom":10,"maxzoom":24,"layout":{"visibility":"visible"},"paint":{"line-opacity":0.3,"line-color":"black","line-width":0.5}},{"id":"departements","type":"line","source":"decoupage-administratif","source-layer":"departements","layout":{"visibility":"visible"},"paint":{"line-opacity":0.3,"line-color":"black","line-width":0.5}},{"id":"water-name-lakeline","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["==","$type","LineString"],"layout":{"symbol-placement":"line","symbol-spacing":350,"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"water-name-ocean","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==","$type","Point"],["==","class","ocean"]],"layout":{"symbol-placement":"point","symbol-spacing":350,"text-field":"{name:latin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":14},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"water-name-other","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==","$type","Point"],["!in","class","ocean"]],"layout":{"symbol-placement":"point","symbol-spacing":350,"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Italic"],"text-letter-spacing":0.2,"text-max-width":5,"text-rotation-alignment":"map","text-size":{"stops":[[0,10],[6,14]]},"visibility":"visible"},"paint":{"text-color":"#74aee9","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"road_oneway","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":15,"filter":["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],"layout":{"icon-image":"oneway","icon-padding":2,"icon-rotate":90,"icon-rotation-alignment":"map","icon-size":{"stops":[[15,0.5],[19,1]]},"symbol-placement":"line","symbol-spacing":75,"visibility":"visible"},"paint":{"icon-opacity":0.5}},{"id":"road_oneway_opposite","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":15,"filter":["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],"layout":{"icon-image":"oneway","icon-padding":2,"icon-rotate":-90,"icon-rotation-alignment":"map","icon-size":{"stops":[[15,0.5],[19,1]]},"symbol-placement":"line","symbol-spacing":75,"visibility":"visible"},"paint":{"icon-opacity":0.5}},{"id":"highway-name-path","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15.5,"filter":["==","class","path"],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"hsl(30, 23%, 62%)","text-halo-color":"#f8f4f0","text-halo-width":0.5}},{"id":"highway-name-minor","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15,"filter":["all",["==","$type","LineString"],["in","class","minor","service","track"]],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"#765","text-halo-blur":0.5,"text-halo-width":1}},{"id":"highway-name-major","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":12.2,"filter":["in","class","primary","secondary","tertiary","trunk"],"layout":{"symbol-placement":"line","text-field":"{name:latin} {name:nonlatin}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"map","text-size":{"base":1,"stops":[[13,12],[14,13]]}},"paint":{"text-color":"#765","text-halo-blur":0.5,"text-halo-width":1}},{"id":"highway-shield","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":8,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],"layout":{"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[10,"point"],[11,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{}},{"id":"highway-shield-us-interstate","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":7,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],"layout":{"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[7,"point"],[7,"line"],[8,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{"text-color":"rgba(0, 0, 0, 1)"}},{"id":"highway-shield-us-other","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":9,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],"layout":{"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":{"base":1,"stops":[[10,"point"],[11,"line"]]},"symbol-spacing":200,"text-field":"{ref}","text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10},"paint":{"text-color":"rgba(0, 0, 0, 1)"}},{"id":"airport-label-major","type":"symbol","source":"openmaptiles","source-layer":"aerodrome_label","minzoom":10,"filter":["all",["has","iata"]],"layout":{"icon-image":"airport_11","icon-size":1,"text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-optional":true,"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-3","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":16,"filter":["all",["==","$type","Point"],[">=","rank",25],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-2","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":15,"filter":["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-level-1","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":14,"filter":["all",["==","$type","Point"],["<=","rank",14],["has","name"],["any",["!has","level"],["==","level",0]]],"layout":{"icon-image":"{class}_11","text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":9,"text-offset":[0,0.6],"text-padding":2,"text-size":12,"visibility":"visible"},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"poi-railway","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":13,"filter":["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],"layout":{"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-image":"{class}_11","icon-optional":false,"text-allow-overlap":false,"text-anchor":"top","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-ignore-placement":false,"text-max-width":9,"text-offset":[0,0.6],"text-optional":true,"text-padding":2,"text-size":12},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"place-other","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["!in","class","city","town","village","country","continent"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Bold"],"text-letter-spacing":0.1,"text-max-width":9,"text-size":{"base":1.2,"stops":[[12,10],[15,14]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#633","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-village","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["==","class","village"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[10,12],[15,22]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-town","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["==","class","town"],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[10,14],[15,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-city","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["!=","capital",2],["==","class","city"]],"layout":{"text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-size":{"base":1.2,"stops":[[7,14],[11,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-city-capital","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","capital",2],["==","class","city"]],"layout":{"icon-image":"star_11","icon-size":0.8,"text-anchor":"left","text-field":"{name:latin}\\n{name:nonlatin}","text-font":["Noto Sans Regular"],"text-max-width":8,"text-offset":[0.4,0],"text-size":{"base":1.2,"stops":[[7,14],[11,24]]},"visibility":"visible"},"paint":{"text-color":"#333","text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":1.2}},{"id":"place-country-other","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Italic"],"text-max-width":6.25,"text-size":{"stops":[[3,11],[7,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-3","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[3,11],[7,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-2","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[2,11],[5,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-country-1","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":{"stops":[[1,11],[4,17]]},"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}},{"id":"place-continent","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","maxzoom":1,"filter":["==","class","continent"],"layout":{"text-field":"{name:latin}","text-font":["Noto Sans Bold"],"text-max-width":6.25,"text-size":14,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-color":"#334","text-halo-blur":1,"text-halo-color":"rgba(255,255,255,0.8)","text-halo-width":2}}]'), Nx = "bright", Vx = {
|
|
25043
|
+
version: Ex,
|
|
25044
|
+
name: Ax,
|
|
25045
|
+
metadata: Cx,
|
|
25046
|
+
center: Dx,
|
|
25047
|
+
zoom: zx,
|
|
25048
|
+
bearing: kx,
|
|
25049
|
+
pitch: Rx,
|
|
25050
|
+
sources: Lx,
|
|
25051
|
+
sprite: Fx,
|
|
25052
|
+
glyphs: Bx,
|
|
25053
|
+
layers: Ox,
|
|
25054
|
+
id: Nx
|
|
25055
|
+
}, jx = {
|
|
25056
25056
|
key: 1,
|
|
25057
25057
|
class: "-mx-4"
|
|
25058
|
-
},
|
|
25058
|
+
}, Ux = {
|
|
25059
25059
|
key: 0,
|
|
25060
25060
|
class: "bg-blue-100 text-datagouv fr-hidden fr-unhidden-md p-4"
|
|
25061
|
-
},
|
|
25061
|
+
}, Gx = { class: "fr-grid-row fr-grid-row--middle fr-grid-row--gutters" }, $x = ["innerHTML"], Zx = { class: "fr-col" }, qx = { class: "fr-text--bold fr-m-0" }, Wx = { class: "fr-text--sm fr-m-0 italic" }, Hx = { class: "fr-col-auto fr-my-0" }, Xx = {
|
|
25062
25062
|
ref: "containerRef",
|
|
25063
25063
|
style: { height: "600px" }
|
|
25064
|
-
},
|
|
25064
|
+
}, Yx = { class: "fr-px-5v fr-pt-5v" }, s0 = /* @__PURE__ */ ly({
|
|
25065
25065
|
__name: "Pmtiles.client",
|
|
25066
25066
|
props: {
|
|
25067
25067
|
resource: {},
|
|
@@ -25071,13 +25071,13 @@ const Ax = 8, Cx = "Bright", Dx = { "mapbox:autocomposite": !1, "mapbox:groups":
|
|
|
25071
25071
|
const W = ie, { t: Y } = gy(), { formatDate: se } = _y(), ve = yy(), ke = cy(!1), E = dc(() => W.resource.extras["analysis:parsing:pmtiles_url"] ? W.resource.extras["analysis:parsing:pmtiles_url"] : W.resource.url), c = dc(() => ve.pmtilesViewerBaseUrl ? `${ve.pmtilesViewerBaseUrl}${encodeURIComponent(E.value)}` : null), Pe = dc(() => W.resource.extras["analysis:parsing:pmtiles_url"] ? se(W.resource.extras["analysis:parsing:finished_at"]) : se(W.resource.last_modified)), Je = uy("containerRef"), tt = dc(() => !W.dataset.organization && !W.dataset.owner ? "" : `© <a href="${xy(W.dataset)}" target="_blank">${vy(W.dataset)}</a>`);
|
|
25072
25072
|
async function Ye() {
|
|
25073
25073
|
await Promise.resolve({ });
|
|
25074
|
-
const rt = new
|
|
25074
|
+
const rt = new Hy();
|
|
25075
25075
|
mc.addProtocol("pmtiles", rt.tile);
|
|
25076
25076
|
const pt = new Op(E.value);
|
|
25077
25077
|
rt.add(pt), pt.getHeader().then((kt) => {
|
|
25078
25078
|
const Ze = new mc.Map({
|
|
25079
25079
|
container: Je.value,
|
|
25080
|
-
style:
|
|
25080
|
+
style: Vx,
|
|
25081
25081
|
zoom: kt.maxZoom - 2,
|
|
25082
25082
|
center: [kt.centerLon, kt.centerLat]
|
|
25083
25083
|
});
|
|
@@ -25119,7 +25119,7 @@ const Ax = 8, Cx = "Bright", Dx = { "mapbox:autocomposite": !1, "mapbox:groups":
|
|
|
25119
25119
|
case "LineString":
|
|
25120
25120
|
return "line";
|
|
25121
25121
|
default:
|
|
25122
|
-
return
|
|
25122
|
+
return Py(xt.geometry, "Unsupported geometry"), "";
|
|
25123
25123
|
}
|
|
25124
25124
|
});
|
|
25125
25125
|
Ze.addLayer({
|
|
@@ -25144,47 +25144,42 @@ const Ax = 8, Cx = "Bright", Dx = { "mapbox:autocomposite": !1, "mapbox:groups":
|
|
|
25144
25144
|
return hy(() => {
|
|
25145
25145
|
Ye();
|
|
25146
25146
|
}), (rt, pt) => (eh(), Mp("div", null, [
|
|
25147
|
-
ke.value ? (eh(), py(by, {
|
|
25148
|
-
key: 0,
|
|
25149
|
-
type: "warning",
|
|
25150
|
-
class: "flex items-center space-x-2"
|
|
25151
|
-
}, {
|
|
25147
|
+
ke.value ? (eh(), py(by, { key: 0 }, {
|
|
25152
25148
|
default: rm(() => [
|
|
25153
|
-
nm(
|
|
25154
|
-
Sa("span", null, fc(rs(Y)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
25149
|
+
nm(fc(Gs(Y)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
25155
25150
|
]),
|
|
25156
25151
|
_: 1
|
|
25157
|
-
})) : (eh(), Mp("div",
|
|
25158
|
-
c.value ? (eh(), Mp("div",
|
|
25159
|
-
|
|
25160
|
-
|
|
25152
|
+
})) : (eh(), Mp("div", jx, [
|
|
25153
|
+
c.value ? (eh(), Mp("div", Ux, [
|
|
25154
|
+
is("div", Gx, [
|
|
25155
|
+
is("div", {
|
|
25161
25156
|
class: "fr-col-auto",
|
|
25162
|
-
innerHTML:
|
|
25163
|
-
}, null, 8,
|
|
25164
|
-
|
|
25165
|
-
|
|
25166
|
-
|
|
25157
|
+
innerHTML: Gs(wy)
|
|
25158
|
+
}, null, 8, $x),
|
|
25159
|
+
is("div", Zx, [
|
|
25160
|
+
is("p", qx, fc(Gs(Y)("Explorer les données en détail")), 1),
|
|
25161
|
+
is("p", Wx, fc(Gs(Y)("Utiliser un visualisateur PMTiles pour obtenir un aperçu des données.")), 1)
|
|
25167
25162
|
]),
|
|
25168
|
-
|
|
25169
|
-
|
|
25163
|
+
is("p", Hx, [
|
|
25164
|
+
dy(Ty, {
|
|
25170
25165
|
href: c.value,
|
|
25171
|
-
icon:
|
|
25166
|
+
icon: Gs(Sy),
|
|
25172
25167
|
"icon-right": ""
|
|
25173
25168
|
}, {
|
|
25174
25169
|
default: rm(() => [
|
|
25175
|
-
|
|
25170
|
+
nm(fc(Gs(Y)("Explorer la carte")), 1)
|
|
25176
25171
|
]),
|
|
25177
25172
|
_: 1
|
|
25178
25173
|
}, 8, ["href", "icon"])
|
|
25179
25174
|
])
|
|
25180
25175
|
])
|
|
25181
|
-
])) :
|
|
25182
|
-
|
|
25183
|
-
|
|
25176
|
+
])) : fy("", !0),
|
|
25177
|
+
is("div", Xx, null, 512),
|
|
25178
|
+
is("div", Yx, fc(Gs(Y)("Aperçu de la carte mis à jour le {date}", { date: Pe.value })), 1)
|
|
25184
25179
|
]))
|
|
25185
25180
|
]));
|
|
25186
25181
|
}
|
|
25187
25182
|
});
|
|
25188
25183
|
export {
|
|
25189
|
-
|
|
25184
|
+
s0 as default
|
|
25190
25185
|
};
|