@maptiler/sdk 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/maptiler-sdk.mjs +778 -772
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/dist/src/Map.d.ts +3 -2
- package/package.json +1 -1
- package/readme.md +26 -1
package/dist/maptiler-sdk.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ka = Object.defineProperty;
|
|
2
2
|
var Lr = (r) => {
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var M = (r, e, t) =>
|
|
5
|
+
var Ca = (r, e, t) => e in r ? ka(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
|
+
var M = (r, e, t) => Ca(r, typeof e != "symbol" ? e + "" : e, t), _t = (r, e, t) => e.has(r) || Lr("Cannot " + t);
|
|
7
7
|
var T = (r, e, t) => (_t(r, e, "read from private field"), t ? t.call(r) : e.get(r)), fe = (r, e, t) => e.has(r) ? Lr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), ve = (r, e, t, n) => (_t(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), V = (r, e, t) => (_t(r, e, "access private method"), t);
|
|
8
|
-
import x
|
|
9
|
-
import { Language as La, getLanguageInfoFromCode as Ar, config as zt, MapStyle as je, mapStylePresetList as $t, expandMapStyle as Aa, MapStyleVariant as Ta, ReferenceMapStyle as Ea,
|
|
10
|
-
import { MapStyle as
|
|
11
|
-
import
|
|
12
|
-
import { v4 as
|
|
13
|
-
import { Base64 as
|
|
14
|
-
const
|
|
8
|
+
import x from "maplibre-gl";
|
|
9
|
+
import { Language as La, getLanguageInfoFromCode as Ar, config as zt, MapStyle as je, mapStylePresetList as $t, expandMapStyle as Aa, MapStyleVariant as Ta, ReferenceMapStyle as Ea, toLanguageInfo as Tr, getLanguageInfoFromFlag as Ia, geolocation as Er } from "@maptiler/client";
|
|
10
|
+
import { MapStyle as Mu, MapStyleVariant as _u, ReferenceMapStyle as zu, ServiceError as $u, areSameLanguages as Pu, bufferToPixelDataBrowser as Ru, circumferenceAtLatitude as Fu, coordinates as Nu, data as Ou, elevation as Du, expandMapStyle as ju, geocoding as qu, geolocation as Uu, getAutoLanguage as Bu, getBufferToPixelDataParser as Vu, getLanguageInfoFromCode as Gu, getLanguageInfoFromFlag as Hu, getLanguageInfoFromKey as Ku, getTileCache as Zu, isLanguageInfo as Wu, mapStylePresetList as Ju, math as Yu, misc as Xu, staticMaps as Qu, styleToStyle as ec, toLanguageInfo as tc } from "@maptiler/client";
|
|
11
|
+
import Ma from "events";
|
|
12
|
+
import { v4 as _a } from "uuid";
|
|
13
|
+
import { Base64 as za } from "js-base64";
|
|
14
|
+
const $a = "@maptiler/sdk", Pa = "2.4.1", Ra = "The Javascript & TypeScript map SDK tailored for MapTiler Cloud", Fa = "dist/maptiler-sdk.mjs", Na = "dist/maptiler-sdk.d.ts", Oa = "dist/maptiler-sdk.css", Da = "module", ja = {
|
|
15
15
|
".": {
|
|
16
16
|
import: "./dist/maptiler-sdk.mjs",
|
|
17
17
|
types: "./dist/maptiler-sdk.d.ts"
|
|
@@ -22,7 +22,7 @@ const Pa = "@maptiler/sdk", Ra = "2.4.0", Fa = "The Javascript & TypeScript map
|
|
|
22
22
|
"./style.css": {
|
|
23
23
|
import: "./dist/maptiler-sdk.css"
|
|
24
24
|
}
|
|
25
|
-
},
|
|
25
|
+
}, qa = [
|
|
26
26
|
"maptiler",
|
|
27
27
|
"map",
|
|
28
28
|
"sdk",
|
|
@@ -30,10 +30,10 @@ const Pa = "@maptiler/sdk", Ra = "2.4.0", Fa = "The Javascript & TypeScript map
|
|
|
30
30
|
"cloud",
|
|
31
31
|
"webGL",
|
|
32
32
|
"maplibre"
|
|
33
|
-
],
|
|
33
|
+
], Ua = "https://docs.maptiler.com/sdk-js/", Ba = "BSD-3-Clause", Va = {
|
|
34
34
|
type: "git",
|
|
35
35
|
url: "https://github.com/maptiler/maptiler-sdk-js.git"
|
|
36
|
-
},
|
|
36
|
+
}, Ga = {
|
|
37
37
|
biome: "biome check --max-diagnostics=1000",
|
|
38
38
|
"biome:fix": "npx @biomejs/biome check --max-diagnostics=1000 --write",
|
|
39
39
|
doc: "rm -rf docs/* && typedoc --out docs && cp -r images docs/",
|
|
@@ -45,7 +45,7 @@ const Pa = "@maptiler/sdk", Ra = "2.4.0", Fa = "The Javascript & TypeScript map
|
|
|
45
45
|
make: "npm run biome:fix && npm run build",
|
|
46
46
|
"dev-umd": "npm run build-css && tsc && NODE_ENV=dev vite build -w -c vite.config-umd.ts",
|
|
47
47
|
help: "vite build --help"
|
|
48
|
-
},
|
|
48
|
+
}, Ha = "MapTiler", Ka = {
|
|
49
49
|
"@biomejs/biome": "1.8.3",
|
|
50
50
|
"@types/uuid": "^9.0.2",
|
|
51
51
|
"@types/xmldom": "^0.1.31",
|
|
@@ -57,30 +57,30 @@ const Pa = "@maptiler/sdk", Ra = "2.4.0", Fa = "The Javascript & TypeScript map
|
|
|
57
57
|
vite: "^5.3.4",
|
|
58
58
|
"vite-plugin-dts": "^4.0.0-beta.0",
|
|
59
59
|
vitest: "^0.34.2"
|
|
60
|
-
},
|
|
60
|
+
}, Za = {
|
|
61
61
|
"@maplibre/maplibre-gl-style-spec": "^20.3.1",
|
|
62
62
|
"@maptiler/client": "^2.0.0",
|
|
63
63
|
events: "^3.3.0",
|
|
64
64
|
"js-base64": "^3.7.4",
|
|
65
65
|
"maplibre-gl": "4.7.1",
|
|
66
66
|
uuid: "^9.0.0"
|
|
67
|
-
},
|
|
68
|
-
name:
|
|
69
|
-
version:
|
|
70
|
-
description:
|
|
71
|
-
module:
|
|
72
|
-
types:
|
|
73
|
-
style:
|
|
74
|
-
type:
|
|
75
|
-
exports:
|
|
76
|
-
keywords:
|
|
77
|
-
homepage:
|
|
78
|
-
license:
|
|
79
|
-
repository:
|
|
80
|
-
scripts:
|
|
81
|
-
author:
|
|
82
|
-
devDependencies:
|
|
83
|
-
dependencies:
|
|
67
|
+
}, Wa = {
|
|
68
|
+
name: $a,
|
|
69
|
+
version: Pa,
|
|
70
|
+
description: Ra,
|
|
71
|
+
module: Fa,
|
|
72
|
+
types: Na,
|
|
73
|
+
style: Oa,
|
|
74
|
+
type: Da,
|
|
75
|
+
exports: ja,
|
|
76
|
+
keywords: qa,
|
|
77
|
+
homepage: Ua,
|
|
78
|
+
license: Ba,
|
|
79
|
+
repository: Va,
|
|
80
|
+
scripts: Ga,
|
|
81
|
+
author: Ha,
|
|
82
|
+
devDependencies: Ka,
|
|
83
|
+
dependencies: Za
|
|
84
84
|
}, I = {
|
|
85
85
|
/**
|
|
86
86
|
* Language mode to display labels in both the local language and the language of the visitor's device, concatenated.
|
|
@@ -123,7 +123,7 @@ const Pa = "@maptiler/sdk", Ra = "2.4.0", Fa = "The Javascript & TypeScript map
|
|
|
123
123
|
},
|
|
124
124
|
...La
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function Ir() {
|
|
127
127
|
if (typeof navigator > "u") {
|
|
128
128
|
const e = Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0], t = Ar(e);
|
|
129
129
|
return t || I.ENGLISH;
|
|
@@ -141,8 +141,8 @@ const H = {
|
|
|
141
141
|
terrainSourceId: "maptiler-terrain"
|
|
142
142
|
};
|
|
143
143
|
Object.freeze(H);
|
|
144
|
-
const
|
|
145
|
-
class
|
|
144
|
+
const yn = _a();
|
|
145
|
+
class Ja extends Ma {
|
|
146
146
|
constructor() {
|
|
147
147
|
super(...arguments);
|
|
148
148
|
/**
|
|
@@ -214,9 +214,9 @@ class Ya extends _a {
|
|
|
214
214
|
return zt.fetch;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
function
|
|
219
|
-
if (Ht &&
|
|
217
|
+
const U = new Ja(), { addProtocol: Mr } = x, Vt = "localcache_source", Gt = "localcache", Ya = "maptiler_sdk", Xa = 1e3, Qa = 100, Ht = typeof caches < "u";
|
|
218
|
+
function eo(r, e) {
|
|
219
|
+
if (Ht && U.caching && U.session && r.host === H.maptilerApiHost) {
|
|
220
220
|
if (e === "Source" && r.href.includes("tiles.json"))
|
|
221
221
|
return r.href.replace("https://", `${Vt}://`);
|
|
222
222
|
if (e === "Tile" || e === "Glyphs")
|
|
@@ -225,17 +225,17 @@ function to(r, e) {
|
|
|
225
225
|
return r.href;
|
|
226
226
|
}
|
|
227
227
|
let Pt;
|
|
228
|
-
async function
|
|
229
|
-
return Pt || (Pt = await caches.open(
|
|
228
|
+
async function mn() {
|
|
229
|
+
return Pt || (Pt = await caches.open(Ya)), Pt;
|
|
230
230
|
}
|
|
231
|
-
let
|
|
232
|
-
async function
|
|
233
|
-
const r = await
|
|
231
|
+
let _r = 0;
|
|
232
|
+
async function to() {
|
|
233
|
+
const r = await mn(), e = await r.keys(), t = e.slice(0, Math.max(e.length - Xa, 0));
|
|
234
234
|
for (const n of t)
|
|
235
235
|
r.delete(n);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
|
|
237
|
+
function ro() {
|
|
238
|
+
Mr(
|
|
239
239
|
Vt,
|
|
240
240
|
async (r, e) => {
|
|
241
241
|
if (!r.url) throw new Error("");
|
|
@@ -249,7 +249,7 @@ function no() {
|
|
|
249
249
|
expires: n.headers.get("Expires")
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
-
),
|
|
252
|
+
), Mr(
|
|
253
253
|
Gt,
|
|
254
254
|
async (r, e) => {
|
|
255
255
|
if (!r.url) throw new Error("");
|
|
@@ -262,18 +262,18 @@ function no() {
|
|
|
262
262
|
data: await m.arrayBuffer(),
|
|
263
263
|
cacheControl: m.headers.get("Cache-Control"),
|
|
264
264
|
expires: m.headers.get("Expires")
|
|
265
|
-
}), l = await
|
|
265
|
+
}), l = await mn(), u = await l.match(a);
|
|
266
266
|
if (u)
|
|
267
267
|
return s(u);
|
|
268
268
|
const c = r;
|
|
269
269
|
c.signal = e.signal;
|
|
270
270
|
const p = await fetch(i, c);
|
|
271
271
|
return p.status >= 200 && p.status < 300 && (l.put(a, p.clone()).catch(() => {
|
|
272
|
-
}), ++
|
|
272
|
+
}), ++_r > Qa && (to(), _r = 0)), s(p);
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function no() {
|
|
277
277
|
if (typeof window > "u") return;
|
|
278
278
|
const r = x.getRTLTextPluginStatus();
|
|
279
279
|
if (r === "unavailable" || r === "requested")
|
|
@@ -282,7 +282,7 @@ function ao() {
|
|
|
282
282
|
} catch {
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function ao(r, e) {
|
|
286
286
|
for (const t of r)
|
|
287
287
|
typeof e[t] == "function" && (e[t] = e[t].bind(e));
|
|
288
288
|
}
|
|
@@ -290,10 +290,10 @@ function _e(r, e, t) {
|
|
|
290
290
|
const n = window.document.createElement(r);
|
|
291
291
|
return e !== void 0 && (n.className = e), t && t.appendChild(n), n;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function hn(r) {
|
|
294
294
|
r.parentNode && r.parentNode.removeChild(r);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function zr(r, e) {
|
|
297
297
|
let t = null;
|
|
298
298
|
try {
|
|
299
299
|
t = new URL(r);
|
|
@@ -302,40 +302,40 @@ function _r(r, e) {
|
|
|
302
302
|
url: r
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
-
return t.host === H.maptilerApiHost && (t.searchParams.has("key") || t.searchParams.append("key",
|
|
306
|
-
url:
|
|
305
|
+
return t.host === H.maptilerApiHost && (t.searchParams.has("key") || t.searchParams.append("key", U.apiKey), U.session && t.searchParams.append("mtsid", yn)), {
|
|
306
|
+
url: eo(t, e)
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function $r(r) {
|
|
310
310
|
return (e, t) => {
|
|
311
311
|
if (r != null) {
|
|
312
|
-
const n = r(e, t), a =
|
|
312
|
+
const n = r(e, t), a = zr((n == null ? void 0 : n.url) ?? "", t);
|
|
313
313
|
return {
|
|
314
314
|
...n,
|
|
315
315
|
...a
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
return
|
|
318
|
+
return zr(e, t);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function gn() {
|
|
322
322
|
return Math.random().toString(36).substring(2);
|
|
323
323
|
}
|
|
324
324
|
function mt(r) {
|
|
325
325
|
return /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(r);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function oo(r) {
|
|
328
328
|
try {
|
|
329
329
|
return JSON.parse(r);
|
|
330
330
|
} catch {
|
|
331
331
|
}
|
|
332
332
|
return null;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function io() {
|
|
335
335
|
return document.createElement("canvas").getContext("webgl2") ? null : typeof WebGL2RenderingContext < "u" ? "Graphic rendering with WebGL2 has been disabled or is not supported by your graphic card. The map cannot be displayed." : "Your browser does not support graphic rendering with WebGL2. The map cannot be displayed.";
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
const e =
|
|
337
|
+
function so(r) {
|
|
338
|
+
const e = io();
|
|
339
339
|
if (!e) return;
|
|
340
340
|
let t = null;
|
|
341
341
|
if (typeof r == "string" ? t = document.getElementById(r) : r instanceof HTMLElement && (t = r), !t)
|
|
@@ -343,7 +343,7 @@ function lo(r) {
|
|
|
343
343
|
const n = document.createElement("div");
|
|
344
344
|
throw n.innerHTML = e, n.classList.add("webgl-warning-div"), t.appendChild(n), new Error(e);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function lo(r) {
|
|
347
347
|
const e = "The WebGL context was lost.";
|
|
348
348
|
let t = null;
|
|
349
349
|
if (typeof r == "string" ? t = document.getElementById(r) : r instanceof HTMLElement && (t = r), !t)
|
|
@@ -351,132 +351,132 @@ function uo(r) {
|
|
|
351
351
|
const n = document.createElement("div");
|
|
352
352
|
n.innerHTML = e, n.classList.add("webgl-warning-div"), t.appendChild(n);
|
|
353
353
|
}
|
|
354
|
-
let
|
|
354
|
+
let nl = class extends x.Marker {
|
|
355
355
|
addTo(e) {
|
|
356
356
|
return super.addTo(e);
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
|
-
class
|
|
359
|
+
class ol extends x.Popup {
|
|
360
360
|
addTo(e) {
|
|
361
361
|
return super.addTo(e);
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
class
|
|
364
|
+
class il extends x.Style {
|
|
365
365
|
constructor(e, t = {}) {
|
|
366
366
|
super(e, t);
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
class
|
|
369
|
+
class sl extends x.CanvasSource {
|
|
370
370
|
onAdd(e) {
|
|
371
371
|
super.onAdd(e);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
class
|
|
374
|
+
class ll extends x.GeoJSONSource {
|
|
375
375
|
onAdd(e) {
|
|
376
376
|
super.onAdd(e);
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
class
|
|
379
|
+
class ul extends x.ImageSource {
|
|
380
380
|
onAdd(e) {
|
|
381
381
|
super.onAdd(e);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
class
|
|
384
|
+
class cl extends x.RasterTileSource {
|
|
385
385
|
onAdd(e) {
|
|
386
386
|
super.onAdd(e);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
class
|
|
389
|
+
class pl extends x.RasterDEMTileSource {
|
|
390
390
|
onAdd(e) {
|
|
391
391
|
super.onAdd(e);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
class
|
|
394
|
+
class fl extends x.VectorTileSource {
|
|
395
395
|
onAdd(e) {
|
|
396
396
|
super.onAdd(e);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
class
|
|
399
|
+
class dl extends x.VideoSource {
|
|
400
400
|
onAdd(e) {
|
|
401
401
|
super.onAdd(e);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
class
|
|
404
|
+
class uo extends x.NavigationControl {
|
|
405
405
|
onAdd(e) {
|
|
406
406
|
return super.onAdd(e);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class co extends x.GeolocateControl {
|
|
410
410
|
onAdd(e) {
|
|
411
411
|
return super.onAdd(e);
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class yl extends x.AttributionControl {
|
|
415
415
|
onAdd(e) {
|
|
416
416
|
return super.onAdd(e);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
class
|
|
419
|
+
class po extends x.LogoControl {
|
|
420
420
|
onAdd(e) {
|
|
421
421
|
return super.onAdd(e);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class fo extends x.ScaleControl {
|
|
425
425
|
onAdd(e) {
|
|
426
426
|
return super.onAdd(e);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
class
|
|
429
|
+
class yo extends x.FullscreenControl {
|
|
430
430
|
onAdd(e) {
|
|
431
431
|
return super.onAdd(e);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
class
|
|
434
|
+
class ml extends x.TerrainControl {
|
|
435
435
|
onAdd(e) {
|
|
436
436
|
return super.onAdd(e);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
class
|
|
439
|
+
class hl extends x.BoxZoomHandler {
|
|
440
440
|
constructor(e, t) {
|
|
441
441
|
super(e, t);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
class
|
|
444
|
+
class gl extends x.ScrollZoomHandler {
|
|
445
445
|
constructor(e, t) {
|
|
446
446
|
super(e, t);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
class
|
|
449
|
+
class vl extends x.CooperativeGesturesHandler {
|
|
450
450
|
constructor(e, t) {
|
|
451
451
|
super(e, t);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
class
|
|
454
|
+
class bl extends x.KeyboardHandler {
|
|
455
455
|
constructor(e) {
|
|
456
456
|
super(e);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
class
|
|
459
|
+
class wl extends x.TwoFingersTouchPitchHandler {
|
|
460
460
|
constructor(e) {
|
|
461
461
|
super(e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class
|
|
464
|
+
class xl extends x.MapWheelEvent {
|
|
465
465
|
constructor(e, t, n) {
|
|
466
466
|
super(e, t, n);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
class
|
|
469
|
+
class Sl extends x.MapTouchEvent {
|
|
470
470
|
constructor(e, t, n) {
|
|
471
471
|
super(e, t, n);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class kl extends x.MapMouseEvent {
|
|
475
475
|
constructor(e, t, n, a = {}) {
|
|
476
476
|
super(e, t, n, a);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
class
|
|
479
|
+
class Pr extends po {
|
|
480
480
|
constructor(t = {}) {
|
|
481
481
|
super(t);
|
|
482
482
|
M(this, "logoURL", "");
|
|
@@ -489,7 +489,7 @@ class $r extends fo {
|
|
|
489
489
|
return n.style.backgroundRepeat = "no-repeat", n.style.cursor = "pointer", n.style.display = "block", n.style.height = "23px", n.style.margin = "0 0 -4px -4px", n.style.overflow = "hidden", n.style.width = "88px", n.style.backgroundImage = `url(${this.logoURL})`, n.style.backgroundSize = "100px 30px", n.style.width = "100px", n.style.height = "30px", n.target = "_blank", n.rel = "noopener", n.href = this.linkURL, n.setAttribute("aria-label", "MapTiler logo"), n.setAttribute("rel", "noopener"), this._container.appendChild(n), this._container.style.display = "block", this._map.on("resize", this._updateCompact), this._updateCompact(), this._container;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
var
|
|
492
|
+
var mo = 8, ho = {
|
|
493
493
|
version: {
|
|
494
494
|
required: !0,
|
|
495
495
|
type: "enum",
|
|
@@ -551,18 +551,18 @@ var ho = 8, go = {
|
|
|
551
551
|
type: "array",
|
|
552
552
|
value: "layer"
|
|
553
553
|
}
|
|
554
|
-
},
|
|
554
|
+
}, go = {
|
|
555
555
|
"*": {
|
|
556
556
|
type: "source"
|
|
557
557
|
}
|
|
558
|
-
},
|
|
558
|
+
}, vo = [
|
|
559
559
|
"source_vector",
|
|
560
560
|
"source_raster",
|
|
561
561
|
"source_raster_dem",
|
|
562
562
|
"source_geojson",
|
|
563
563
|
"source_video",
|
|
564
564
|
"source_image"
|
|
565
|
-
],
|
|
565
|
+
], bo = {
|
|
566
566
|
type: {
|
|
567
567
|
required: !0,
|
|
568
568
|
type: "enum",
|
|
@@ -617,7 +617,7 @@ var ho = 8, go = {
|
|
|
617
617
|
"*": {
|
|
618
618
|
type: "*"
|
|
619
619
|
}
|
|
620
|
-
},
|
|
620
|
+
}, wo = {
|
|
621
621
|
type: {
|
|
622
622
|
required: !0,
|
|
623
623
|
type: "enum",
|
|
@@ -674,7 +674,7 @@ var ho = 8, go = {
|
|
|
674
674
|
"*": {
|
|
675
675
|
type: "*"
|
|
676
676
|
}
|
|
677
|
-
},
|
|
677
|
+
}, xo = {
|
|
678
678
|
type: {
|
|
679
679
|
required: !0,
|
|
680
680
|
type: "enum",
|
|
@@ -748,7 +748,7 @@ var ho = 8, go = {
|
|
|
748
748
|
"*": {
|
|
749
749
|
type: "*"
|
|
750
750
|
}
|
|
751
|
-
},
|
|
751
|
+
}, So = {
|
|
752
752
|
type: {
|
|
753
753
|
required: !0,
|
|
754
754
|
type: "enum",
|
|
@@ -809,7 +809,7 @@ var ho = 8, go = {
|
|
|
809
809
|
promoteId: {
|
|
810
810
|
type: "promoteId"
|
|
811
811
|
}
|
|
812
|
-
},
|
|
812
|
+
}, ko = {
|
|
813
813
|
type: {
|
|
814
814
|
required: !0,
|
|
815
815
|
type: "enum",
|
|
@@ -832,7 +832,7 @@ var ho = 8, go = {
|
|
|
832
832
|
value: "number"
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
},
|
|
835
|
+
}, Co = {
|
|
836
836
|
type: {
|
|
837
837
|
required: !0,
|
|
838
838
|
type: "enum",
|
|
@@ -854,7 +854,7 @@ var ho = 8, go = {
|
|
|
854
854
|
value: "number"
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
},
|
|
857
|
+
}, Lo = {
|
|
858
858
|
id: {
|
|
859
859
|
type: "string",
|
|
860
860
|
required: !0
|
|
@@ -902,7 +902,7 @@ var ho = 8, go = {
|
|
|
902
902
|
paint: {
|
|
903
903
|
type: "paint"
|
|
904
904
|
}
|
|
905
|
-
},
|
|
905
|
+
}, Ao = [
|
|
906
906
|
"layout_fill",
|
|
907
907
|
"layout_line",
|
|
908
908
|
"layout_circle",
|
|
@@ -912,7 +912,7 @@ var ho = 8, go = {
|
|
|
912
912
|
"layout_raster",
|
|
913
913
|
"layout_hillshade",
|
|
914
914
|
"layout_background"
|
|
915
|
-
],
|
|
915
|
+
], To = {
|
|
916
916
|
visibility: {
|
|
917
917
|
type: "enum",
|
|
918
918
|
values: {
|
|
@@ -922,7 +922,7 @@ var ho = 8, go = {
|
|
|
922
922
|
default: "visible",
|
|
923
923
|
"property-type": "constant"
|
|
924
924
|
}
|
|
925
|
-
},
|
|
925
|
+
}, Eo = {
|
|
926
926
|
"fill-sort-key": {
|
|
927
927
|
type: "number",
|
|
928
928
|
expression: {
|
|
@@ -943,7 +943,7 @@ var ho = 8, go = {
|
|
|
943
943
|
default: "visible",
|
|
944
944
|
"property-type": "constant"
|
|
945
945
|
}
|
|
946
|
-
},
|
|
946
|
+
}, Io = {
|
|
947
947
|
"circle-sort-key": {
|
|
948
948
|
type: "number",
|
|
949
949
|
expression: {
|
|
@@ -964,7 +964,7 @@ var ho = 8, go = {
|
|
|
964
964
|
default: "visible",
|
|
965
965
|
"property-type": "constant"
|
|
966
966
|
}
|
|
967
|
-
},
|
|
967
|
+
}, Mo = {
|
|
968
968
|
visibility: {
|
|
969
969
|
type: "enum",
|
|
970
970
|
values: {
|
|
@@ -974,7 +974,7 @@ var ho = 8, go = {
|
|
|
974
974
|
default: "visible",
|
|
975
975
|
"property-type": "constant"
|
|
976
976
|
}
|
|
977
|
-
},
|
|
977
|
+
}, _o = {
|
|
978
978
|
"line-cap": {
|
|
979
979
|
type: "enum",
|
|
980
980
|
values: {
|
|
@@ -1060,7 +1060,7 @@ var ho = 8, go = {
|
|
|
1060
1060
|
default: "visible",
|
|
1061
1061
|
"property-type": "constant"
|
|
1062
1062
|
}
|
|
1063
|
-
},
|
|
1063
|
+
}, zo = {
|
|
1064
1064
|
"symbol-placement": {
|
|
1065
1065
|
type: "enum",
|
|
1066
1066
|
values: {
|
|
@@ -1887,7 +1887,7 @@ var ho = 8, go = {
|
|
|
1887
1887
|
default: "visible",
|
|
1888
1888
|
"property-type": "constant"
|
|
1889
1889
|
}
|
|
1890
|
-
},
|
|
1890
|
+
}, $o = {
|
|
1891
1891
|
visibility: {
|
|
1892
1892
|
type: "enum",
|
|
1893
1893
|
values: {
|
|
@@ -1897,7 +1897,7 @@ var ho = 8, go = {
|
|
|
1897
1897
|
default: "visible",
|
|
1898
1898
|
"property-type": "constant"
|
|
1899
1899
|
}
|
|
1900
|
-
},
|
|
1900
|
+
}, Po = {
|
|
1901
1901
|
visibility: {
|
|
1902
1902
|
type: "enum",
|
|
1903
1903
|
values: {
|
|
@@ -1907,10 +1907,10 @@ var ho = 8, go = {
|
|
|
1907
1907
|
default: "visible",
|
|
1908
1908
|
"property-type": "constant"
|
|
1909
1909
|
}
|
|
1910
|
-
},
|
|
1910
|
+
}, Ro = {
|
|
1911
1911
|
type: "array",
|
|
1912
1912
|
value: "*"
|
|
1913
|
-
},
|
|
1913
|
+
}, Fo = {
|
|
1914
1914
|
type: "enum",
|
|
1915
1915
|
values: {
|
|
1916
1916
|
"==": {},
|
|
@@ -1927,14 +1927,14 @@ var ho = 8, go = {
|
|
|
1927
1927
|
has: {},
|
|
1928
1928
|
"!has": {}
|
|
1929
1929
|
}
|
|
1930
|
-
},
|
|
1930
|
+
}, No = {
|
|
1931
1931
|
type: "enum",
|
|
1932
1932
|
values: {
|
|
1933
1933
|
Point: {},
|
|
1934
1934
|
LineString: {},
|
|
1935
1935
|
Polygon: {}
|
|
1936
1936
|
}
|
|
1937
|
-
},
|
|
1937
|
+
}, Oo = {
|
|
1938
1938
|
type: "array",
|
|
1939
1939
|
minimum: 0,
|
|
1940
1940
|
maximum: 24,
|
|
@@ -1943,11 +1943,11 @@ var ho = 8, go = {
|
|
|
1943
1943
|
"color"
|
|
1944
1944
|
],
|
|
1945
1945
|
length: 2
|
|
1946
|
-
},
|
|
1946
|
+
}, Do = {
|
|
1947
1947
|
type: "array",
|
|
1948
1948
|
value: "*",
|
|
1949
1949
|
minimum: 1
|
|
1950
|
-
},
|
|
1950
|
+
}, jo = {
|
|
1951
1951
|
anchor: {
|
|
1952
1952
|
type: "enum",
|
|
1953
1953
|
default: "viewport",
|
|
@@ -2008,7 +2008,7 @@ var ho = 8, go = {
|
|
|
2008
2008
|
},
|
|
2009
2009
|
transition: !0
|
|
2010
2010
|
}
|
|
2011
|
-
},
|
|
2011
|
+
}, qo = {
|
|
2012
2012
|
"sky-color": {
|
|
2013
2013
|
type: "color",
|
|
2014
2014
|
"property-type": "data-constant",
|
|
@@ -2101,7 +2101,7 @@ var ho = 8, go = {
|
|
|
2101
2101
|
},
|
|
2102
2102
|
transition: !0
|
|
2103
2103
|
}
|
|
2104
|
-
},
|
|
2104
|
+
}, Uo = {
|
|
2105
2105
|
source: {
|
|
2106
2106
|
type: "string",
|
|
2107
2107
|
required: !0
|
|
@@ -2111,7 +2111,7 @@ var ho = 8, go = {
|
|
|
2111
2111
|
minimum: 0,
|
|
2112
2112
|
default: 1
|
|
2113
2113
|
}
|
|
2114
|
-
},
|
|
2114
|
+
}, Bo = {
|
|
2115
2115
|
type: {
|
|
2116
2116
|
type: "enum",
|
|
2117
2117
|
default: "mercator",
|
|
@@ -2120,7 +2120,7 @@ var ho = 8, go = {
|
|
|
2120
2120
|
globe: {}
|
|
2121
2121
|
}
|
|
2122
2122
|
}
|
|
2123
|
-
},
|
|
2123
|
+
}, Vo = [
|
|
2124
2124
|
"paint_fill",
|
|
2125
2125
|
"paint_line",
|
|
2126
2126
|
"paint_circle",
|
|
@@ -2130,7 +2130,7 @@ var ho = 8, go = {
|
|
|
2130
2130
|
"paint_raster",
|
|
2131
2131
|
"paint_hillshade",
|
|
2132
2132
|
"paint_background"
|
|
2133
|
-
],
|
|
2133
|
+
], Go = {
|
|
2134
2134
|
"fill-antialias": {
|
|
2135
2135
|
type: "boolean",
|
|
2136
2136
|
default: !0,
|
|
@@ -2246,7 +2246,7 @@ var ho = 8, go = {
|
|
|
2246
2246
|
},
|
|
2247
2247
|
"property-type": "cross-faded-data-driven"
|
|
2248
2248
|
}
|
|
2249
|
-
},
|
|
2249
|
+
}, Ho = {
|
|
2250
2250
|
"line-opacity": {
|
|
2251
2251
|
type: "number",
|
|
2252
2252
|
default: 1,
|
|
@@ -2437,7 +2437,7 @@ var ho = 8, go = {
|
|
|
2437
2437
|
},
|
|
2438
2438
|
"property-type": "color-ramp"
|
|
2439
2439
|
}
|
|
2440
|
-
},
|
|
2440
|
+
}, Ko = {
|
|
2441
2441
|
"circle-radius": {
|
|
2442
2442
|
type: "number",
|
|
2443
2443
|
default: 5,
|
|
@@ -2610,7 +2610,7 @@ var ho = 8, go = {
|
|
|
2610
2610
|
},
|
|
2611
2611
|
"property-type": "data-driven"
|
|
2612
2612
|
}
|
|
2613
|
-
},
|
|
2613
|
+
}, Zo = {
|
|
2614
2614
|
"heatmap-radius": {
|
|
2615
2615
|
type: "number",
|
|
2616
2616
|
default: 30,
|
|
@@ -2701,7 +2701,7 @@ var ho = 8, go = {
|
|
|
2701
2701
|
},
|
|
2702
2702
|
"property-type": "data-constant"
|
|
2703
2703
|
}
|
|
2704
|
-
},
|
|
2704
|
+
}, Wo = {
|
|
2705
2705
|
"icon-opacity": {
|
|
2706
2706
|
type: "number",
|
|
2707
2707
|
default: 1,
|
|
@@ -2965,7 +2965,7 @@ var ho = 8, go = {
|
|
|
2965
2965
|
},
|
|
2966
2966
|
"property-type": "data-constant"
|
|
2967
2967
|
}
|
|
2968
|
-
},
|
|
2968
|
+
}, Jo = {
|
|
2969
2969
|
"raster-opacity": {
|
|
2970
2970
|
type: "number",
|
|
2971
2971
|
default: 1,
|
|
@@ -3079,7 +3079,7 @@ var ho = 8, go = {
|
|
|
3079
3079
|
},
|
|
3080
3080
|
"property-type": "data-constant"
|
|
3081
3081
|
}
|
|
3082
|
-
},
|
|
3082
|
+
}, Yo = {
|
|
3083
3083
|
"hillshade-illumination-direction": {
|
|
3084
3084
|
type: "number",
|
|
3085
3085
|
default: 335,
|
|
@@ -3159,7 +3159,7 @@ var ho = 8, go = {
|
|
|
3159
3159
|
},
|
|
3160
3160
|
"property-type": "data-constant"
|
|
3161
3161
|
}
|
|
3162
|
-
},
|
|
3162
|
+
}, Xo = {
|
|
3163
3163
|
"background-color": {
|
|
3164
3164
|
type: "color",
|
|
3165
3165
|
default: "#000000",
|
|
@@ -3202,7 +3202,7 @@ var ho = 8, go = {
|
|
|
3202
3202
|
},
|
|
3203
3203
|
"property-type": "data-constant"
|
|
3204
3204
|
}
|
|
3205
|
-
},
|
|
3205
|
+
}, Qo = {
|
|
3206
3206
|
duration: {
|
|
3207
3207
|
type: "number",
|
|
3208
3208
|
default: 300,
|
|
@@ -3215,27 +3215,27 @@ var ho = 8, go = {
|
|
|
3215
3215
|
minimum: 0,
|
|
3216
3216
|
units: "milliseconds"
|
|
3217
3217
|
}
|
|
3218
|
-
},
|
|
3218
|
+
}, ei = {
|
|
3219
3219
|
"*": {
|
|
3220
3220
|
type: "string"
|
|
3221
3221
|
}
|
|
3222
|
-
},
|
|
3223
|
-
$version:
|
|
3224
|
-
$root:
|
|
3225
|
-
sources:
|
|
3226
|
-
source:
|
|
3227
|
-
source_vector:
|
|
3228
|
-
source_raster:
|
|
3229
|
-
source_raster_dem:
|
|
3230
|
-
source_geojson:
|
|
3231
|
-
source_video:
|
|
3232
|
-
source_image:
|
|
3233
|
-
layer:
|
|
3234
|
-
layout:
|
|
3235
|
-
layout_background:
|
|
3236
|
-
layout_fill:
|
|
3237
|
-
layout_circle:
|
|
3238
|
-
layout_heatmap:
|
|
3222
|
+
}, ti = {
|
|
3223
|
+
$version: mo,
|
|
3224
|
+
$root: ho,
|
|
3225
|
+
sources: go,
|
|
3226
|
+
source: vo,
|
|
3227
|
+
source_vector: bo,
|
|
3228
|
+
source_raster: wo,
|
|
3229
|
+
source_raster_dem: xo,
|
|
3230
|
+
source_geojson: So,
|
|
3231
|
+
source_video: ko,
|
|
3232
|
+
source_image: Co,
|
|
3233
|
+
layer: Lo,
|
|
3234
|
+
layout: Ao,
|
|
3235
|
+
layout_background: To,
|
|
3236
|
+
layout_fill: Eo,
|
|
3237
|
+
layout_circle: Io,
|
|
3238
|
+
layout_heatmap: Mo,
|
|
3239
3239
|
"layout_fill-extrusion": {
|
|
3240
3240
|
visibility: {
|
|
3241
3241
|
type: "enum",
|
|
@@ -3247,13 +3247,13 @@ var ho = 8, go = {
|
|
|
3247
3247
|
"property-type": "constant"
|
|
3248
3248
|
}
|
|
3249
3249
|
},
|
|
3250
|
-
layout_line:
|
|
3251
|
-
layout_symbol:
|
|
3252
|
-
layout_raster:
|
|
3253
|
-
layout_hillshade:
|
|
3254
|
-
filter:
|
|
3255
|
-
filter_operator:
|
|
3256
|
-
geometry_type:
|
|
3250
|
+
layout_line: _o,
|
|
3251
|
+
layout_symbol: zo,
|
|
3252
|
+
layout_raster: $o,
|
|
3253
|
+
layout_hillshade: Po,
|
|
3254
|
+
filter: Ro,
|
|
3255
|
+
filter_operator: Fo,
|
|
3256
|
+
geometry_type: No,
|
|
3257
3257
|
function: {
|
|
3258
3258
|
expression: {
|
|
3259
3259
|
type: "expression"
|
|
@@ -3295,14 +3295,14 @@ var ho = 8, go = {
|
|
|
3295
3295
|
required: !1
|
|
3296
3296
|
}
|
|
3297
3297
|
},
|
|
3298
|
-
function_stop:
|
|
3299
|
-
expression:
|
|
3300
|
-
light:
|
|
3301
|
-
sky:
|
|
3302
|
-
terrain:
|
|
3303
|
-
projection:
|
|
3304
|
-
paint:
|
|
3305
|
-
paint_fill:
|
|
3298
|
+
function_stop: Oo,
|
|
3299
|
+
expression: Do,
|
|
3300
|
+
light: jo,
|
|
3301
|
+
sky: qo,
|
|
3302
|
+
terrain: Uo,
|
|
3303
|
+
projection: Bo,
|
|
3304
|
+
paint: Vo,
|
|
3305
|
+
paint_fill: Go,
|
|
3306
3306
|
"paint_fill-extrusion": {
|
|
3307
3307
|
"fill-extrusion-opacity": {
|
|
3308
3308
|
type: "number",
|
|
@@ -3433,14 +3433,14 @@ var ho = 8, go = {
|
|
|
3433
3433
|
"property-type": "data-constant"
|
|
3434
3434
|
}
|
|
3435
3435
|
},
|
|
3436
|
-
paint_line:
|
|
3437
|
-
paint_circle:
|
|
3438
|
-
paint_heatmap:
|
|
3439
|
-
paint_symbol:
|
|
3440
|
-
paint_raster:
|
|
3441
|
-
paint_hillshade:
|
|
3442
|
-
paint_background:
|
|
3443
|
-
transition:
|
|
3436
|
+
paint_line: Ho,
|
|
3437
|
+
paint_circle: Ko,
|
|
3438
|
+
paint_heatmap: Zo,
|
|
3439
|
+
paint_symbol: Wo,
|
|
3440
|
+
paint_raster: Jo,
|
|
3441
|
+
paint_hillshade: Yo,
|
|
3442
|
+
paint_background: Xo,
|
|
3443
|
+
transition: Qo,
|
|
3444
3444
|
"property-type": {
|
|
3445
3445
|
"data-driven": {
|
|
3446
3446
|
type: "property-type"
|
|
@@ -3461,7 +3461,7 @@ var ho = 8, go = {
|
|
|
3461
3461
|
type: "property-type"
|
|
3462
3462
|
}
|
|
3463
3463
|
},
|
|
3464
|
-
promoteId:
|
|
3464
|
+
promoteId: ei
|
|
3465
3465
|
};
|
|
3466
3466
|
class h {
|
|
3467
3467
|
constructor(e, t, n, a) {
|
|
@@ -3499,7 +3499,7 @@ class tr {
|
|
|
3499
3499
|
return this.bindings[e] ? !0 : this.parent ? this.parent.has(e) : !1;
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
3502
|
-
const ht = { kind: "null" }, g = { kind: "number" }, A = { kind: "string" }, C = { kind: "boolean" }, ne = { kind: "color" }, ze = { kind: "object" }, L = { kind: "value" },
|
|
3502
|
+
const ht = { kind: "null" }, g = { kind: "number" }, A = { kind: "string" }, C = { kind: "boolean" }, ne = { kind: "color" }, ze = { kind: "object" }, L = { kind: "value" }, ri = { kind: "error" }, gt = { kind: "collator" }, vt = { kind: "formatted" }, bt = { kind: "padding" }, Je = { kind: "resolvedImage" }, wt = { kind: "variableAnchorOffsetCollection" };
|
|
3503
3503
|
function Z(r, e) {
|
|
3504
3504
|
return {
|
|
3505
3505
|
kind: "array",
|
|
@@ -3514,7 +3514,7 @@ function F(r) {
|
|
|
3514
3514
|
} else
|
|
3515
3515
|
return r.kind;
|
|
3516
3516
|
}
|
|
3517
|
-
const
|
|
3517
|
+
const ni = [
|
|
3518
3518
|
ht,
|
|
3519
3519
|
g,
|
|
3520
3520
|
A,
|
|
@@ -3537,7 +3537,7 @@ function Be(r, e) {
|
|
|
3537
3537
|
if (r.kind === e.kind)
|
|
3538
3538
|
return null;
|
|
3539
3539
|
if (r.kind === "value") {
|
|
3540
|
-
for (const t of
|
|
3540
|
+
for (const t of ni)
|
|
3541
3541
|
if (!Be(t, e))
|
|
3542
3542
|
return null;
|
|
3543
3543
|
}
|
|
@@ -3553,15 +3553,15 @@ function xe(r, e) {
|
|
|
3553
3553
|
function De(r, e) {
|
|
3554
3554
|
return r.kind === "array" && e.kind === "array" ? r.itemType.kind === e.itemType.kind && typeof r.N == "number" : r.kind === e.kind;
|
|
3555
3555
|
}
|
|
3556
|
-
const
|
|
3557
|
-
function
|
|
3556
|
+
const vn = 0.96422, bn = 1, wn = 0.82521, xn = 4 / 29, $e = 6 / 29, Sn = 3 * $e * $e, ai = $e * $e * $e, oi = Math.PI / 180, ii = 180 / Math.PI;
|
|
3557
|
+
function kn(r) {
|
|
3558
3558
|
return r = r % 360, r < 0 && (r += 360), r;
|
|
3559
3559
|
}
|
|
3560
|
-
function
|
|
3560
|
+
function Cn([r, e, t, n]) {
|
|
3561
3561
|
r = Rt(r), e = Rt(e), t = Rt(t);
|
|
3562
3562
|
let a, o;
|
|
3563
|
-
const i = Ft((0.2225045 * r + 0.7168786 * e + 0.0606169 * t) /
|
|
3564
|
-
r === e && e === t ? a = o = i : (a = Ft((0.4360747 * r + 0.3850649 * e + 0.1430804 * t) /
|
|
3563
|
+
const i = Ft((0.2225045 * r + 0.7168786 * e + 0.0606169 * t) / bn);
|
|
3564
|
+
r === e && e === t ? a = o = i : (a = Ft((0.4360747 * r + 0.3850649 * e + 0.1430804 * t) / vn), o = Ft((0.0139322 * r + 0.0971045 * e + 0.7141733 * t) / wn));
|
|
3565
3565
|
const s = 116 * i - 16;
|
|
3566
3566
|
return [s < 0 ? 0 : s, 500 * (a - i), 200 * (i - o), n];
|
|
3567
3567
|
}
|
|
@@ -3569,11 +3569,11 @@ function Rt(r) {
|
|
|
3569
3569
|
return r <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
|
|
3570
3570
|
}
|
|
3571
3571
|
function Ft(r) {
|
|
3572
|
-
return r >
|
|
3572
|
+
return r > ai ? Math.pow(r, 1 / 3) : r / Sn + xn;
|
|
3573
3573
|
}
|
|
3574
|
-
function
|
|
3574
|
+
function Ln([r, e, t, n]) {
|
|
3575
3575
|
let a = (r + 16) / 116, o = isNaN(e) ? a : a + e / 500, i = isNaN(t) ? a : a - t / 200;
|
|
3576
|
-
return a =
|
|
3576
|
+
return a = bn * Ot(a), o = vn * Ot(o), i = wn * Ot(i), [
|
|
3577
3577
|
Nt(3.1338561 * o - 1.6168667 * a - 0.4906146 * i),
|
|
3578
3578
|
// D50 -> sRGB
|
|
3579
3579
|
Nt(-0.9787684 * o + 1.9161415 * a + 0.033454 * i),
|
|
@@ -3585,27 +3585,27 @@ function Nt(r) {
|
|
|
3585
3585
|
return r = r <= 304e-5 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - 0.055, r < 0 ? 0 : r > 1 ? 1 : r;
|
|
3586
3586
|
}
|
|
3587
3587
|
function Ot(r) {
|
|
3588
|
-
return r > $e ? r * r * r :
|
|
3588
|
+
return r > $e ? r * r * r : Sn * (r - xn);
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3591
|
-
const [e, t, n, a] =
|
|
3592
|
-
return [Math.round(o * 1e4) ?
|
|
3590
|
+
function si(r) {
|
|
3591
|
+
const [e, t, n, a] = Cn(r), o = Math.sqrt(t * t + n * n);
|
|
3592
|
+
return [Math.round(o * 1e4) ? kn(Math.atan2(n, t) * ii) : NaN, o, e, a];
|
|
3593
3593
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return r = isNaN(r) ? 0 : r *
|
|
3594
|
+
function li([r, e, t, n]) {
|
|
3595
|
+
return r = isNaN(r) ? 0 : r * oi, Ln([t, Math.cos(r) * e, Math.sin(r) * e, n]);
|
|
3596
3596
|
}
|
|
3597
|
-
function
|
|
3598
|
-
r =
|
|
3597
|
+
function ui([r, e, t, n]) {
|
|
3598
|
+
r = kn(r), e /= 100, t /= 100;
|
|
3599
3599
|
function a(o) {
|
|
3600
3600
|
const i = (o + r / 30) % 12, s = e * Math.min(t, 1 - t);
|
|
3601
3601
|
return t - s * Math.max(-1, Math.min(i - 3, 9 - i, 1));
|
|
3602
3602
|
}
|
|
3603
3603
|
return [a(0), a(8), a(4), n];
|
|
3604
3604
|
}
|
|
3605
|
-
function
|
|
3605
|
+
function ci(r) {
|
|
3606
3606
|
if (r = r.toLowerCase().trim(), r === "transparent")
|
|
3607
3607
|
return [0, 0, 0, 0];
|
|
3608
|
-
const e =
|
|
3608
|
+
const e = pi[r];
|
|
3609
3609
|
if (e) {
|
|
3610
3610
|
const [a, o, i] = e;
|
|
3611
3611
|
return [a / 255, o / 255, i / 255, 1];
|
|
@@ -3656,9 +3656,9 @@ function pi(r) {
|
|
|
3656
3656
|
Ie(+s / R, 0, 1),
|
|
3657
3657
|
Ie(+c / R, 0, 1),
|
|
3658
3658
|
Ie(+f / R, 0, 1),
|
|
3659
|
-
b ?
|
|
3659
|
+
b ? Rr(+b, w) : 1
|
|
3660
3660
|
];
|
|
3661
|
-
if (
|
|
3661
|
+
if (Fr(P))
|
|
3662
3662
|
return P;
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
@@ -3692,26 +3692,26 @@ function pi(r) {
|
|
|
3692
3692
|
+o,
|
|
3693
3693
|
Ie(+s, 0, 100),
|
|
3694
3694
|
Ie(+u, 0, 100),
|
|
3695
|
-
p ?
|
|
3695
|
+
p ? Rr(+p, m) : 1
|
|
3696
3696
|
];
|
|
3697
|
-
if (
|
|
3698
|
-
return
|
|
3697
|
+
if (Fr(d))
|
|
3698
|
+
return ui(d);
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
3701
|
}
|
|
3702
3702
|
function et(r) {
|
|
3703
3703
|
return parseInt(r.padEnd(2, r), 16) / 255;
|
|
3704
3704
|
}
|
|
3705
|
-
function
|
|
3705
|
+
function Rr(r, e) {
|
|
3706
3706
|
return Ie(e ? r / 100 : r, 0, 1);
|
|
3707
3707
|
}
|
|
3708
3708
|
function Ie(r, e, t) {
|
|
3709
3709
|
return Math.min(Math.max(e, r), t);
|
|
3710
3710
|
}
|
|
3711
|
-
function
|
|
3711
|
+
function Fr(r) {
|
|
3712
3712
|
return !r.some(Number.isNaN);
|
|
3713
3713
|
}
|
|
3714
|
-
const
|
|
3714
|
+
const pi = {
|
|
3715
3715
|
aliceblue: [240, 248, 255],
|
|
3716
3716
|
antiquewhite: [250, 235, 215],
|
|
3717
3717
|
aqua: [0, 255, 255],
|
|
@@ -3890,7 +3890,7 @@ class N {
|
|
|
3890
3890
|
return e;
|
|
3891
3891
|
if (typeof e != "string")
|
|
3892
3892
|
return;
|
|
3893
|
-
const t =
|
|
3893
|
+
const t = ci(e);
|
|
3894
3894
|
if (t)
|
|
3895
3895
|
return new N(...t, !1);
|
|
3896
3896
|
}
|
|
@@ -3909,7 +3909,7 @@ class N {
|
|
|
3909
3909
|
* @returns Gien color, with reversed alpha blending, in HCL color space.
|
|
3910
3910
|
*/
|
|
3911
3911
|
get hcl() {
|
|
3912
|
-
return this.overwriteGetter("hcl",
|
|
3912
|
+
return this.overwriteGetter("hcl", si(this.rgb));
|
|
3913
3913
|
}
|
|
3914
3914
|
/**
|
|
3915
3915
|
* Used in color interpolation.
|
|
@@ -3917,7 +3917,7 @@ class N {
|
|
|
3917
3917
|
* @returns Gien color, with reversed alpha blending, in LAB color space.
|
|
3918
3918
|
*/
|
|
3919
3919
|
get lab() {
|
|
3920
|
-
return this.overwriteGetter("lab",
|
|
3920
|
+
return this.overwriteGetter("lab", Cn(this.rgb));
|
|
3921
3921
|
}
|
|
3922
3922
|
/**
|
|
3923
3923
|
* Lazy getter pattern. When getter is called for the first time lazy value
|
|
@@ -4031,7 +4031,7 @@ class ae {
|
|
|
4031
4031
|
return JSON.stringify(this.values);
|
|
4032
4032
|
}
|
|
4033
4033
|
}
|
|
4034
|
-
const
|
|
4034
|
+
const fi = /* @__PURE__ */ new Set(["center", "left", "right", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"]);
|
|
4035
4035
|
class ce {
|
|
4036
4036
|
constructor(e) {
|
|
4037
4037
|
this.values = e.slice();
|
|
@@ -4042,7 +4042,7 @@ class ce {
|
|
|
4042
4042
|
if (!(!Array.isArray(e) || e.length < 1 || e.length % 2 !== 0)) {
|
|
4043
4043
|
for (let t = 0; t < e.length; t += 2) {
|
|
4044
4044
|
const n = e[t], a = e[t + 1];
|
|
4045
|
-
if (typeof n != "string" || !
|
|
4045
|
+
if (typeof n != "string" || !fi.has(n) || !Array.isArray(a) || a.length !== 2 || typeof a[0] != "number" || typeof a[1] != "number")
|
|
4046
4046
|
return;
|
|
4047
4047
|
}
|
|
4048
4048
|
return new ce(e);
|
|
@@ -4063,7 +4063,7 @@ class he {
|
|
|
4063
4063
|
return e ? new he({ name: e, available: !1 }) : null;
|
|
4064
4064
|
}
|
|
4065
4065
|
}
|
|
4066
|
-
function
|
|
4066
|
+
function An(r, e, t, n) {
|
|
4067
4067
|
return typeof r == "number" && r >= 0 && r <= 255 && typeof e == "number" && e >= 0 && e <= 255 && typeof t == "number" && t >= 0 && t <= 255 ? typeof n > "u" || typeof n == "number" && n >= 0 && n <= 1 ? null : `Invalid rgba value [${[r, e, t, n].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof n == "number" ? [r, e, t, n] : [r, e, t]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
|
|
4068
4068
|
}
|
|
4069
4069
|
function Ve(r) {
|
|
@@ -4218,7 +4218,7 @@ class Q {
|
|
|
4218
4218
|
return this.args.every((e) => e.outputDefined());
|
|
4219
4219
|
}
|
|
4220
4220
|
}
|
|
4221
|
-
const
|
|
4221
|
+
const Nr = {
|
|
4222
4222
|
"to-boolean": C,
|
|
4223
4223
|
"to-color": ne,
|
|
4224
4224
|
"to-number": g,
|
|
@@ -4232,11 +4232,11 @@ class me {
|
|
|
4232
4232
|
if (e.length < 2)
|
|
4233
4233
|
return t.error("Expected at least one argument.");
|
|
4234
4234
|
const n = e[0];
|
|
4235
|
-
if (!
|
|
4235
|
+
if (!Nr[n])
|
|
4236
4236
|
throw new Error(`Can't parse ${n} as it is not part of the known types`);
|
|
4237
4237
|
if ((n === "to-boolean" || n === "to-string") && e.length !== 2)
|
|
4238
4238
|
return t.error("Expected one argument.");
|
|
4239
|
-
const a =
|
|
4239
|
+
const a = Nr[n], o = [];
|
|
4240
4240
|
for (let i = 1; i < e.length; i++) {
|
|
4241
4241
|
const s = t.parse(e[i], i, L);
|
|
4242
4242
|
if (!s)
|
|
@@ -4258,7 +4258,7 @@ class me {
|
|
|
4258
4258
|
const o = e.parseColor(t);
|
|
4259
4259
|
if (o)
|
|
4260
4260
|
return o;
|
|
4261
|
-
} else if (Array.isArray(t) && (t.length < 3 || t.length > 4 ? n = `Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.` : n =
|
|
4261
|
+
} else if (Array.isArray(t) && (t.length < 3 || t.length > 4 ? n = `Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.` : n = An(t[0], t[1], t[2], t[3]), !n))
|
|
4262
4262
|
return new N(t[0] / 255, t[1] / 255, t[2] / 255, t[3]);
|
|
4263
4263
|
}
|
|
4264
4264
|
throw new D(n || `Could not parse color from value '${typeof t == "string" ? t : JSON.stringify(t)}'`);
|
|
@@ -4309,8 +4309,8 @@ class me {
|
|
|
4309
4309
|
return this.args.every((e) => e.outputDefined());
|
|
4310
4310
|
}
|
|
4311
4311
|
}
|
|
4312
|
-
const
|
|
4313
|
-
class
|
|
4312
|
+
const di = ["Unknown", "Point", "LineString", "Polygon"];
|
|
4313
|
+
class Tn {
|
|
4314
4314
|
constructor() {
|
|
4315
4315
|
this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = {}, this.availableImages = null, this.canonical = null;
|
|
4316
4316
|
}
|
|
@@ -4318,7 +4318,7 @@ class An {
|
|
|
4318
4318
|
return this.feature && "id" in this.feature ? this.feature.id : null;
|
|
4319
4319
|
}
|
|
4320
4320
|
geometryType() {
|
|
4321
|
-
return this.feature ? typeof this.feature.type == "number" ?
|
|
4321
|
+
return this.feature ? typeof this.feature.type == "number" ? di[this.feature.type] : this.feature.type : null;
|
|
4322
4322
|
}
|
|
4323
4323
|
geometry() {
|
|
4324
4324
|
return this.feature && "geometry" in this.feature ? this.feature.geometry : null;
|
|
@@ -4378,7 +4378,7 @@ class xt {
|
|
|
4378
4378
|
return null;
|
|
4379
4379
|
}
|
|
4380
4380
|
if (!(i instanceof Pe) && i.type.kind !== "resolvedImage" && this._isConstant(i)) {
|
|
4381
|
-
const s = new
|
|
4381
|
+
const s = new Tn();
|
|
4382
4382
|
try {
|
|
4383
4383
|
i = new Pe(i.type, i.evaluate(s));
|
|
4384
4384
|
} catch (l) {
|
|
@@ -4707,7 +4707,7 @@ class lt {
|
|
|
4707
4707
|
return !1;
|
|
4708
4708
|
}
|
|
4709
4709
|
}
|
|
4710
|
-
function
|
|
4710
|
+
function En(r, e) {
|
|
4711
4711
|
const t = r.length - 1;
|
|
4712
4712
|
let n = 0, a = t, o = 0, i, s;
|
|
4713
4713
|
for (; n <= a; )
|
|
@@ -4761,7 +4761,7 @@ class Ct {
|
|
|
4761
4761
|
const o = t.length;
|
|
4762
4762
|
if (a >= t[o - 1])
|
|
4763
4763
|
return n[o - 1].evaluate(e);
|
|
4764
|
-
const i =
|
|
4764
|
+
const i = En(t, a);
|
|
4765
4765
|
return n[i].evaluate(e);
|
|
4766
4766
|
}
|
|
4767
4767
|
eachChild(e) {
|
|
@@ -4773,14 +4773,14 @@ class Ct {
|
|
|
4773
4773
|
return this.outputs.every((e) => e.outputDefined());
|
|
4774
4774
|
}
|
|
4775
4775
|
}
|
|
4776
|
-
function
|
|
4776
|
+
function yi(r) {
|
|
4777
4777
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
4778
4778
|
}
|
|
4779
|
-
var
|
|
4780
|
-
function
|
|
4779
|
+
var mi = In;
|
|
4780
|
+
function In(r, e, t, n) {
|
|
4781
4781
|
this.cx = 3 * r, this.bx = 3 * (t - r) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * e, this.by = 3 * (n - e) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = r, this.p1y = e, this.p2x = t, this.p2y = n;
|
|
4782
4782
|
}
|
|
4783
|
-
|
|
4783
|
+
In.prototype = {
|
|
4784
4784
|
sampleCurveX: function(r) {
|
|
4785
4785
|
return ((this.ax * r + this.bx) * r + this.cx) * r;
|
|
4786
4786
|
},
|
|
@@ -4809,11 +4809,11 @@ En.prototype = {
|
|
|
4809
4809
|
return this.sampleCurveY(this.solveCurveX(r, e));
|
|
4810
4810
|
}
|
|
4811
4811
|
};
|
|
4812
|
-
var
|
|
4812
|
+
var hi = /* @__PURE__ */ yi(mi);
|
|
4813
4813
|
function Se(r, e, t) {
|
|
4814
4814
|
return r + t * (e - r);
|
|
4815
4815
|
}
|
|
4816
|
-
function
|
|
4816
|
+
function gi(r, e, t, n = "rgb") {
|
|
4817
4817
|
switch (n) {
|
|
4818
4818
|
case "rgb": {
|
|
4819
4819
|
const [a, o, i, s] = ut(r.rgb, e.rgb, t);
|
|
@@ -4826,7 +4826,7 @@ function vi(r, e, t, n = "rgb") {
|
|
|
4826
4826
|
let v = l - a;
|
|
4827
4827
|
l > a && v > 180 ? v -= 360 : l < a && a - l > 180 && (v += 360), m = a + t * v;
|
|
4828
4828
|
} else isNaN(a) ? isNaN(l) ? m = NaN : (m = l, (i === 1 || i === 0) && (f = u)) : (m = a, (c === 1 || c === 0) && (f = o));
|
|
4829
|
-
const [d, y, b, w] =
|
|
4829
|
+
const [d, y, b, w] = li([
|
|
4830
4830
|
m,
|
|
4831
4831
|
f ?? Se(o, u, t),
|
|
4832
4832
|
Se(i, c, t),
|
|
@@ -4835,7 +4835,7 @@ function vi(r, e, t, n = "rgb") {
|
|
|
4835
4835
|
return new N(d, y, b, w, !1);
|
|
4836
4836
|
}
|
|
4837
4837
|
case "lab": {
|
|
4838
|
-
const [a, o, i, s] =
|
|
4838
|
+
const [a, o, i, s] = Ln(ut(r.lab, e.lab, t));
|
|
4839
4839
|
return new N(a, o, i, s, !1);
|
|
4840
4840
|
}
|
|
4841
4841
|
}
|
|
@@ -4843,10 +4843,10 @@ function vi(r, e, t, n = "rgb") {
|
|
|
4843
4843
|
function ut(r, e, t) {
|
|
4844
4844
|
return r.map((n, a) => Se(n, e[a], t));
|
|
4845
4845
|
}
|
|
4846
|
-
function
|
|
4846
|
+
function vi(r, e, t) {
|
|
4847
4847
|
return new ae(ut(r.values, e.values, t));
|
|
4848
4848
|
}
|
|
4849
|
-
function
|
|
4849
|
+
function bi(r, e, t) {
|
|
4850
4850
|
const n = r.values, a = e.values;
|
|
4851
4851
|
if (n.length !== a.length)
|
|
4852
4852
|
throw new D(`Cannot interpolate values of different length. from: ${r.toString()}, to: ${e.toString()}`);
|
|
@@ -4862,10 +4862,10 @@ function wi(r, e, t) {
|
|
|
4862
4862
|
}
|
|
4863
4863
|
const Dt = {
|
|
4864
4864
|
number: Se,
|
|
4865
|
-
color:
|
|
4865
|
+
color: gi,
|
|
4866
4866
|
array: ut,
|
|
4867
|
-
padding:
|
|
4868
|
-
variableAnchorOffsetCollection:
|
|
4867
|
+
padding: vi,
|
|
4868
|
+
variableAnchorOffsetCollection: bi
|
|
4869
4869
|
};
|
|
4870
4870
|
class oe {
|
|
4871
4871
|
constructor(e, t, n, a, o) {
|
|
@@ -4881,7 +4881,7 @@ class oe {
|
|
|
4881
4881
|
o = jt(t, 1, n, a);
|
|
4882
4882
|
else if (e.name === "cubic-bezier") {
|
|
4883
4883
|
const i = e.controlPoints;
|
|
4884
|
-
o = new
|
|
4884
|
+
o = new hi(i[0], i[1], i[2], i[3]).solve(jt(t, 1, n, a));
|
|
4885
4885
|
}
|
|
4886
4886
|
return o;
|
|
4887
4887
|
}
|
|
@@ -4941,7 +4941,7 @@ class oe {
|
|
|
4941
4941
|
const o = t.length;
|
|
4942
4942
|
if (a >= t[o - 1])
|
|
4943
4943
|
return n[o - 1].evaluate(e);
|
|
4944
|
-
const i =
|
|
4944
|
+
const i = En(t, a), s = t[i], l = t[i + 1], u = oe.interpolationFactor(this.interpolation, a, s, l), c = n[i].evaluate(e), p = n[i + 1].evaluate(e);
|
|
4945
4945
|
switch (this.operator) {
|
|
4946
4946
|
case "interpolate":
|
|
4947
4947
|
return Dt[this.type.kind](c, p, u);
|
|
@@ -4999,48 +4999,48 @@ class Ge {
|
|
|
4999
4999
|
return this.args.every((e) => e.outputDefined());
|
|
5000
5000
|
}
|
|
5001
5001
|
}
|
|
5002
|
-
function
|
|
5002
|
+
function Or(r, e) {
|
|
5003
5003
|
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";
|
|
5004
5004
|
}
|
|
5005
|
-
function
|
|
5005
|
+
function wi(r, e, t) {
|
|
5006
5006
|
return e === t;
|
|
5007
5007
|
}
|
|
5008
|
-
function
|
|
5008
|
+
function xi(r, e, t) {
|
|
5009
5009
|
return e !== t;
|
|
5010
5010
|
}
|
|
5011
|
-
function
|
|
5011
|
+
function Si(r, e, t) {
|
|
5012
5012
|
return e < t;
|
|
5013
5013
|
}
|
|
5014
|
-
function
|
|
5014
|
+
function ki(r, e, t) {
|
|
5015
5015
|
return e > t;
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function Ci(r, e, t) {
|
|
5018
5018
|
return e <= t;
|
|
5019
5019
|
}
|
|
5020
|
-
function
|
|
5020
|
+
function Li(r, e, t) {
|
|
5021
5021
|
return e >= t;
|
|
5022
5022
|
}
|
|
5023
|
-
function
|
|
5023
|
+
function Mn(r, e, t, n) {
|
|
5024
5024
|
return n.compare(e, t) === 0;
|
|
5025
5025
|
}
|
|
5026
|
-
function
|
|
5027
|
-
return !
|
|
5026
|
+
function Ai(r, e, t, n) {
|
|
5027
|
+
return !Mn(r, e, t, n);
|
|
5028
5028
|
}
|
|
5029
|
-
function
|
|
5029
|
+
function Ti(r, e, t, n) {
|
|
5030
5030
|
return n.compare(e, t) < 0;
|
|
5031
5031
|
}
|
|
5032
|
-
function
|
|
5032
|
+
function Ei(r, e, t, n) {
|
|
5033
5033
|
return n.compare(e, t) > 0;
|
|
5034
5034
|
}
|
|
5035
|
-
function
|
|
5035
|
+
function Ii(r, e, t, n) {
|
|
5036
5036
|
return n.compare(e, t) <= 0;
|
|
5037
5037
|
}
|
|
5038
|
-
function
|
|
5038
|
+
function Mi(r, e, t, n) {
|
|
5039
5039
|
return n.compare(e, t) >= 0;
|
|
5040
5040
|
}
|
|
5041
5041
|
function Fe(r, e, t) {
|
|
5042
5042
|
const n = r !== "==" && r !== "!=";
|
|
5043
|
-
return class
|
|
5043
|
+
return class _n {
|
|
5044
5044
|
constructor(o, i, s) {
|
|
5045
5045
|
this.type = C, this.lhs = o, this.rhs = i, this.collator = s, this.hasUntypedArgument = o.type.kind === "value" || i.type.kind === "value";
|
|
5046
5046
|
}
|
|
@@ -5051,12 +5051,12 @@ function Fe(r, e, t) {
|
|
|
5051
5051
|
let l = i.parse(o[1], 1, L);
|
|
5052
5052
|
if (!l)
|
|
5053
5053
|
return null;
|
|
5054
|
-
if (!
|
|
5054
|
+
if (!Or(s, l.type))
|
|
5055
5055
|
return i.concat(1).error(`"${s}" comparisons are not supported for type '${F(l.type)}'.`);
|
|
5056
5056
|
let u = i.parse(o[2], 2, L);
|
|
5057
5057
|
if (!u)
|
|
5058
5058
|
return null;
|
|
5059
|
-
if (!
|
|
5059
|
+
if (!Or(s, u.type))
|
|
5060
5060
|
return i.concat(2).error(`"${s}" comparisons are not supported for type '${F(u.type)}'.`);
|
|
5061
5061
|
if (l.type.kind !== u.type.kind && l.type.kind !== "value" && u.type.kind !== "value")
|
|
5062
5062
|
return i.error(`Cannot compare types '${F(l.type)}' and '${F(u.type)}'.`);
|
|
@@ -5068,7 +5068,7 @@ function Fe(r, e, t) {
|
|
|
5068
5068
|
if (c = i.parse(o[3], 3, gt), !c)
|
|
5069
5069
|
return null;
|
|
5070
5070
|
}
|
|
5071
|
-
return new
|
|
5071
|
+
return new _n(l, u, c);
|
|
5072
5072
|
}
|
|
5073
5073
|
evaluate(o) {
|
|
5074
5074
|
const i = this.lhs.evaluate(o), s = this.rhs.evaluate(o);
|
|
@@ -5092,7 +5092,7 @@ function Fe(r, e, t) {
|
|
|
5092
5092
|
}
|
|
5093
5093
|
};
|
|
5094
5094
|
}
|
|
5095
|
-
const
|
|
5095
|
+
const _i = Fe("==", wi, Mn), zi = Fe("!=", xi, Ai), $i = Fe("<", Si, Ti), Pi = Fe(">", ki, Ei), Ri = Fe("<=", Ci, Ii), Fi = Fe(">=", Li, Mi);
|
|
5096
5096
|
class Lt {
|
|
5097
5097
|
constructor(e, t, n) {
|
|
5098
5098
|
this.type = gt, this.locale = n, this.caseSensitive = e, this.diacriticSensitive = t;
|
|
@@ -5263,24 +5263,24 @@ class pr {
|
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
5265
5265
|
const ie = 8192;
|
|
5266
|
-
function
|
|
5267
|
-
const t =
|
|
5266
|
+
function Ni(r, e) {
|
|
5267
|
+
const t = Oi(r[0]), n = ji(r[1]), a = Math.pow(2, e.z);
|
|
5268
5268
|
return [Math.round(t * a * ie), Math.round(n * a * ie)];
|
|
5269
5269
|
}
|
|
5270
5270
|
function fr(r, e) {
|
|
5271
5271
|
const t = Math.pow(2, e.z), n = (r[0] / ie + e.x) / t, a = (r[1] / ie + e.y) / t;
|
|
5272
|
-
return [
|
|
5272
|
+
return [Di(n), qi(a)];
|
|
5273
5273
|
}
|
|
5274
|
-
function
|
|
5274
|
+
function Oi(r) {
|
|
5275
5275
|
return (180 + r) / 360;
|
|
5276
5276
|
}
|
|
5277
|
-
function
|
|
5277
|
+
function Di(r) {
|
|
5278
5278
|
return r * 360 - 180;
|
|
5279
5279
|
}
|
|
5280
|
-
function
|
|
5280
|
+
function ji(r) {
|
|
5281
5281
|
return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + r * Math.PI / 360))) / 360;
|
|
5282
5282
|
}
|
|
5283
|
-
function
|
|
5283
|
+
function qi(r) {
|
|
5284
5284
|
return 360 / Math.PI * Math.atan(Math.exp((180 - r * 360) * Math.PI / 180)) - 90;
|
|
5285
5285
|
}
|
|
5286
5286
|
function Ye(r, e) {
|
|
@@ -5289,18 +5289,18 @@ function Ye(r, e) {
|
|
|
5289
5289
|
function He(r, e) {
|
|
5290
5290
|
return !(r[0] <= e[0] || r[2] >= e[2] || r[1] <= e[1] || r[3] >= e[3]);
|
|
5291
5291
|
}
|
|
5292
|
-
function
|
|
5292
|
+
function Ui(r, e, t) {
|
|
5293
5293
|
return e[1] > r[1] != t[1] > r[1] && r[0] < (t[0] - e[0]) * (r[1] - e[1]) / (t[1] - e[1]) + e[0];
|
|
5294
5294
|
}
|
|
5295
|
-
function
|
|
5295
|
+
function Bi(r, e, t) {
|
|
5296
5296
|
const n = r[0] - e[0], a = r[1] - e[1], o = r[0] - t[0], i = r[1] - t[1];
|
|
5297
5297
|
return n * i - o * a === 0 && n * o <= 0 && a * i <= 0;
|
|
5298
5298
|
}
|
|
5299
5299
|
function At(r, e, t, n) {
|
|
5300
5300
|
const a = [e[0] - r[0], e[1] - r[1]], o = [n[0] - t[0], n[1] - t[1]];
|
|
5301
|
-
return
|
|
5301
|
+
return Ki(o, a) === 0 ? !1 : !!(Dr(r, e, t, n) && Dr(t, n, r, e));
|
|
5302
5302
|
}
|
|
5303
|
-
function
|
|
5303
|
+
function Vi(r, e, t) {
|
|
5304
5304
|
for (const n of t)
|
|
5305
5305
|
for (let a = 0; a < n.length - 1; ++a)
|
|
5306
5306
|
if (At(r, e, n[a], n[a + 1]))
|
|
@@ -5311,37 +5311,37 @@ function Ne(r, e, t = !1) {
|
|
|
5311
5311
|
let n = !1;
|
|
5312
5312
|
for (const a of e)
|
|
5313
5313
|
for (let o = 0; o < a.length - 1; o++) {
|
|
5314
|
-
if (
|
|
5314
|
+
if (Bi(r, a[o], a[o + 1]))
|
|
5315
5315
|
return t;
|
|
5316
|
-
|
|
5316
|
+
Ui(r, a[o], a[o + 1]) && (n = !n);
|
|
5317
5317
|
}
|
|
5318
5318
|
return n;
|
|
5319
5319
|
}
|
|
5320
|
-
function
|
|
5320
|
+
function Gi(r, e) {
|
|
5321
5321
|
for (const t of e)
|
|
5322
5322
|
if (Ne(r, t))
|
|
5323
5323
|
return !0;
|
|
5324
5324
|
return !1;
|
|
5325
5325
|
}
|
|
5326
|
-
function
|
|
5326
|
+
function zn(r, e) {
|
|
5327
5327
|
for (const t of r)
|
|
5328
5328
|
if (!Ne(t, e))
|
|
5329
5329
|
return !1;
|
|
5330
5330
|
for (let t = 0; t < r.length - 1; ++t)
|
|
5331
|
-
if (
|
|
5331
|
+
if (Vi(r[t], r[t + 1], e))
|
|
5332
5332
|
return !1;
|
|
5333
5333
|
return !0;
|
|
5334
5334
|
}
|
|
5335
|
-
function
|
|
5335
|
+
function Hi(r, e) {
|
|
5336
5336
|
for (const t of e)
|
|
5337
|
-
if (
|
|
5337
|
+
if (zn(r, t))
|
|
5338
5338
|
return !0;
|
|
5339
5339
|
return !1;
|
|
5340
5340
|
}
|
|
5341
|
-
function
|
|
5341
|
+
function Ki(r, e) {
|
|
5342
5342
|
return r[0] * e[1] - r[1] * e[0];
|
|
5343
5343
|
}
|
|
5344
|
-
function
|
|
5344
|
+
function Dr(r, e, t, n) {
|
|
5345
5345
|
const a = r[0] - t[0], o = r[1] - t[1], i = e[0] - t[0], s = e[1] - t[1], l = n[0] - t[0], u = n[1] - t[1], c = a * u - l * o, p = i * u - l * s;
|
|
5346
5346
|
return c > 0 && p < 0 || c < 0 && p > 0;
|
|
5347
5347
|
}
|
|
@@ -5350,14 +5350,14 @@ function dr(r, e, t) {
|
|
|
5350
5350
|
for (let a = 0; a < r.length; a++) {
|
|
5351
5351
|
const o = [];
|
|
5352
5352
|
for (let i = 0; i < r[a].length; i++) {
|
|
5353
|
-
const s =
|
|
5353
|
+
const s = Ni(r[a][i], t);
|
|
5354
5354
|
Ye(e, s), o.push(s);
|
|
5355
5355
|
}
|
|
5356
5356
|
n.push(o);
|
|
5357
5357
|
}
|
|
5358
5358
|
return n;
|
|
5359
5359
|
}
|
|
5360
|
-
function
|
|
5360
|
+
function $n(r, e, t) {
|
|
5361
5361
|
const n = [];
|
|
5362
5362
|
for (let a = 0; a < r.length; a++) {
|
|
5363
5363
|
const o = dr(r[a], e, t);
|
|
@@ -5365,7 +5365,7 @@ function zn(r, e, t) {
|
|
|
5365
5365
|
}
|
|
5366
5366
|
return n;
|
|
5367
5367
|
}
|
|
5368
|
-
function
|
|
5368
|
+
function Pn(r, e, t, n) {
|
|
5369
5369
|
if (r[0] < t[0] || r[0] > t[2]) {
|
|
5370
5370
|
const a = n * 0.5;
|
|
5371
5371
|
let o = r[0] - t[0] > a ? -n : t[0] - r[0] > a ? n : 0;
|
|
@@ -5373,19 +5373,19 @@ function $n(r, e, t, n) {
|
|
|
5373
5373
|
}
|
|
5374
5374
|
Ye(e, r);
|
|
5375
5375
|
}
|
|
5376
|
-
function
|
|
5376
|
+
function Zi(r) {
|
|
5377
5377
|
r[0] = r[1] = 1 / 0, r[2] = r[3] = -1 / 0;
|
|
5378
5378
|
}
|
|
5379
|
-
function
|
|
5379
|
+
function jr(r, e, t, n) {
|
|
5380
5380
|
const a = Math.pow(2, n.z) * ie, o = [n.x * ie, n.y * ie], i = [];
|
|
5381
5381
|
for (const s of r)
|
|
5382
5382
|
for (const l of s) {
|
|
5383
5383
|
const u = [l.x + o[0], l.y + o[1]];
|
|
5384
|
-
|
|
5384
|
+
Pn(u, e, t, a), i.push(u);
|
|
5385
5385
|
}
|
|
5386
5386
|
return i;
|
|
5387
5387
|
}
|
|
5388
|
-
function
|
|
5388
|
+
function qr(r, e, t, n) {
|
|
5389
5389
|
const a = Math.pow(2, n.z) * ie, o = [n.x * ie, n.y * ie], i = [];
|
|
5390
5390
|
for (const s of r) {
|
|
5391
5391
|
const l = [];
|
|
@@ -5396,17 +5396,17 @@ function jr(r, e, t, n) {
|
|
|
5396
5396
|
i.push(l);
|
|
5397
5397
|
}
|
|
5398
5398
|
if (e[2] - e[0] <= a / 2) {
|
|
5399
|
-
|
|
5399
|
+
Zi(e);
|
|
5400
5400
|
for (const s of i)
|
|
5401
5401
|
for (const l of s)
|
|
5402
|
-
|
|
5402
|
+
Pn(l, e, t, a);
|
|
5403
5403
|
}
|
|
5404
5404
|
return i;
|
|
5405
5405
|
}
|
|
5406
|
-
function
|
|
5406
|
+
function Wi(r, e) {
|
|
5407
5407
|
const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n = [1 / 0, 1 / 0, -1 / 0, -1 / 0], a = r.canonicalID();
|
|
5408
5408
|
if (e.type === "Polygon") {
|
|
5409
|
-
const o = dr(e.coordinates, n, a), i =
|
|
5409
|
+
const o = dr(e.coordinates, n, a), i = jr(r.geometry(), t, n, a);
|
|
5410
5410
|
if (!He(t, n))
|
|
5411
5411
|
return !1;
|
|
5412
5412
|
for (const s of i)
|
|
@@ -5414,31 +5414,31 @@ function Ji(r, e) {
|
|
|
5414
5414
|
return !1;
|
|
5415
5415
|
}
|
|
5416
5416
|
if (e.type === "MultiPolygon") {
|
|
5417
|
-
const o =
|
|
5417
|
+
const o = $n(e.coordinates, n, a), i = jr(r.geometry(), t, n, a);
|
|
5418
5418
|
if (!He(t, n))
|
|
5419
5419
|
return !1;
|
|
5420
5420
|
for (const s of i)
|
|
5421
|
-
if (!
|
|
5421
|
+
if (!Gi(s, o))
|
|
5422
5422
|
return !1;
|
|
5423
5423
|
}
|
|
5424
5424
|
return !0;
|
|
5425
5425
|
}
|
|
5426
|
-
function
|
|
5426
|
+
function Ji(r, e) {
|
|
5427
5427
|
const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n = [1 / 0, 1 / 0, -1 / 0, -1 / 0], a = r.canonicalID();
|
|
5428
5428
|
if (e.type === "Polygon") {
|
|
5429
|
-
const o = dr(e.coordinates, n, a), i =
|
|
5429
|
+
const o = dr(e.coordinates, n, a), i = qr(r.geometry(), t, n, a);
|
|
5430
5430
|
if (!He(t, n))
|
|
5431
5431
|
return !1;
|
|
5432
5432
|
for (const s of i)
|
|
5433
|
-
if (!
|
|
5433
|
+
if (!zn(s, o))
|
|
5434
5434
|
return !1;
|
|
5435
5435
|
}
|
|
5436
5436
|
if (e.type === "MultiPolygon") {
|
|
5437
|
-
const o =
|
|
5437
|
+
const o = $n(e.coordinates, n, a), i = qr(r.geometry(), t, n, a);
|
|
5438
5438
|
if (!He(t, n))
|
|
5439
5439
|
return !1;
|
|
5440
5440
|
for (const s of i)
|
|
5441
|
-
if (!
|
|
5441
|
+
if (!Hi(s, o))
|
|
5442
5442
|
return !1;
|
|
5443
5443
|
}
|
|
5444
5444
|
return !0;
|
|
@@ -5477,9 +5477,9 @@ class ke {
|
|
|
5477
5477
|
evaluate(e) {
|
|
5478
5478
|
if (e.geometry() != null && e.canonicalID() != null) {
|
|
5479
5479
|
if (e.geometryType() === "Point")
|
|
5480
|
-
return
|
|
5480
|
+
return Wi(e, this.geometries);
|
|
5481
5481
|
if (e.geometryType() === "LineString")
|
|
5482
|
-
return
|
|
5482
|
+
return Ji(e, this.geometries);
|
|
5483
5483
|
}
|
|
5484
5484
|
return !1;
|
|
5485
5485
|
}
|
|
@@ -5489,7 +5489,7 @@ class ke {
|
|
|
5489
5489
|
return !0;
|
|
5490
5490
|
}
|
|
5491
5491
|
}
|
|
5492
|
-
class
|
|
5492
|
+
class Rn {
|
|
5493
5493
|
constructor(e = [], t = (n, a) => n < a ? -1 : n > a ? 1 : 0) {
|
|
5494
5494
|
if (this.data = e, this.length = this.data.length, this.compare = t, this.length > 0)
|
|
5495
5495
|
for (let n = (this.length >> 1) - 1; n >= 0; n--) this._down(n);
|
|
@@ -5525,28 +5525,28 @@ class Pn {
|
|
|
5525
5525
|
t[e] = o;
|
|
5526
5526
|
}
|
|
5527
5527
|
}
|
|
5528
|
-
function
|
|
5528
|
+
function Yi(r, e) {
|
|
5529
5529
|
if (r.length <= 1)
|
|
5530
5530
|
return [r];
|
|
5531
5531
|
const n = [];
|
|
5532
5532
|
let a, o;
|
|
5533
5533
|
for (const i of r) {
|
|
5534
|
-
const s =
|
|
5534
|
+
const s = Xi(i);
|
|
5535
5535
|
s !== 0 && (i.area = Math.abs(s), o === void 0 && (o = s < 0), o === s < 0 ? (a && n.push(a), a = [i]) : a.push(i));
|
|
5536
5536
|
}
|
|
5537
5537
|
return a && n.push(a), n;
|
|
5538
5538
|
}
|
|
5539
|
-
function
|
|
5539
|
+
function Xi(r) {
|
|
5540
5540
|
let e = 0;
|
|
5541
5541
|
for (let t = 0, n = r.length, a = n - 1, o, i; t < n; a = t++)
|
|
5542
5542
|
o = r[t], i = r[a], e += (i.x - o.x) * (o.y + i.y);
|
|
5543
5543
|
return e;
|
|
5544
5544
|
}
|
|
5545
|
-
const
|
|
5545
|
+
const Qi = 6378.137, Ur = 1 / 298.257223563, Br = Ur * (2 - Ur), Vr = Math.PI / 180;
|
|
5546
5546
|
class yr {
|
|
5547
5547
|
constructor(e) {
|
|
5548
|
-
const t =
|
|
5549
|
-
this.kx = t * o * n, this.ky = t * o * a * (1 -
|
|
5548
|
+
const t = Vr * Qi * 1e3, n = Math.cos(e * Vr), a = 1 / (1 - Br * (1 - n * n)), o = Math.sqrt(a);
|
|
5549
|
+
this.kx = t * o * n, this.ky = t * o * a * (1 - Br);
|
|
5550
5550
|
}
|
|
5551
5551
|
/**
|
|
5552
5552
|
* Given two points of the form [longitude, latitude], returns the distance.
|
|
@@ -5597,7 +5597,7 @@ class yr {
|
|
|
5597
5597
|
}
|
|
5598
5598
|
}
|
|
5599
5599
|
const Zt = 100, Wt = 50;
|
|
5600
|
-
function
|
|
5600
|
+
function Fn(r, e) {
|
|
5601
5601
|
return e[0] - r[0];
|
|
5602
5602
|
}
|
|
5603
5603
|
function ct(r) {
|
|
@@ -5642,11 +5642,11 @@ function Xt(r) {
|
|
|
5642
5642
|
Ye(e, n);
|
|
5643
5643
|
return e;
|
|
5644
5644
|
}
|
|
5645
|
-
function
|
|
5645
|
+
function Gr(r) {
|
|
5646
5646
|
return r[0] !== -1 / 0 && r[1] !== -1 / 0 && r[2] !== 1 / 0 && r[3] !== 1 / 0;
|
|
5647
5647
|
}
|
|
5648
5648
|
function mr(r, e, t) {
|
|
5649
|
-
if (!
|
|
5649
|
+
if (!Gr(r) || !Gr(e))
|
|
5650
5650
|
return NaN;
|
|
5651
5651
|
let n = 0, a = 0;
|
|
5652
5652
|
return r[2] < e[0] && (n = e[0] - r[2]), r[0] > e[2] && (n = r[0] - e[2]), r[1] > e[3] && (a = r[1] - e[3]), r[3] < e[1] && (a = e[1] - r[3]), t.distance([0, 0], [n, a]);
|
|
@@ -5659,7 +5659,7 @@ function hr(r, e, t, n, a) {
|
|
|
5659
5659
|
const o = Math.min(we(r, [t, n], a), we(e, [t, n], a)), i = Math.min(we(t, [r, e], a), we(n, [r, e], a));
|
|
5660
5660
|
return Math.min(o, i);
|
|
5661
5661
|
}
|
|
5662
|
-
function
|
|
5662
|
+
function es(r, e, t, n, a) {
|
|
5663
5663
|
if (!(pe(e, r.length) && pe(n, t.length)))
|
|
5664
5664
|
return 1 / 0;
|
|
5665
5665
|
let i = 1 / 0;
|
|
@@ -5674,7 +5674,7 @@ function ts(r, e, t, n, a) {
|
|
|
5674
5674
|
}
|
|
5675
5675
|
return i;
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5677
|
+
function ts(r, e, t, n, a) {
|
|
5678
5678
|
if (!(pe(e, r.length) && pe(n, t.length)))
|
|
5679
5679
|
return NaN;
|
|
5680
5680
|
let i = 1 / 0;
|
|
@@ -5684,7 +5684,7 @@ function rs(r, e, t, n, a) {
|
|
|
5684
5684
|
return i;
|
|
5685
5685
|
return i;
|
|
5686
5686
|
}
|
|
5687
|
-
function
|
|
5687
|
+
function rs(r, e, t) {
|
|
5688
5688
|
if (Ne(r, e, !0))
|
|
5689
5689
|
return 0;
|
|
5690
5690
|
let n = 1 / 0;
|
|
@@ -5698,7 +5698,7 @@ function ns(r, e, t) {
|
|
|
5698
5698
|
}
|
|
5699
5699
|
return n;
|
|
5700
5700
|
}
|
|
5701
|
-
function
|
|
5701
|
+
function ns(r, e, t, n) {
|
|
5702
5702
|
if (!pe(e, r.length))
|
|
5703
5703
|
return NaN;
|
|
5704
5704
|
for (let o = e[0]; o <= e[1]; ++o)
|
|
@@ -5717,21 +5717,21 @@ function as(r, e, t, n) {
|
|
|
5717
5717
|
}
|
|
5718
5718
|
return a;
|
|
5719
5719
|
}
|
|
5720
|
-
function
|
|
5720
|
+
function Hr(r, e) {
|
|
5721
5721
|
for (const t of r)
|
|
5722
5722
|
for (const n of t)
|
|
5723
5723
|
if (Ne(n, e, !0))
|
|
5724
5724
|
return !0;
|
|
5725
5725
|
return !1;
|
|
5726
5726
|
}
|
|
5727
|
-
function
|
|
5727
|
+
function as(r, e, t, n = 1 / 0) {
|
|
5728
5728
|
const a = Xt(r), o = Xt(e);
|
|
5729
5729
|
if (n !== 1 / 0 && mr(a, o, t) >= n)
|
|
5730
5730
|
return n;
|
|
5731
5731
|
if (He(a, o)) {
|
|
5732
|
-
if (
|
|
5732
|
+
if (Hr(r, e))
|
|
5733
5733
|
return 0;
|
|
5734
|
-
} else if (
|
|
5734
|
+
} else if (Hr(e, r))
|
|
5735
5735
|
return 0;
|
|
5736
5736
|
let i = 1 / 0;
|
|
5737
5737
|
for (const s of r)
|
|
@@ -5747,7 +5747,7 @@ function os(r, e, t, n = 1 / 0) {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
return i;
|
|
5749
5749
|
}
|
|
5750
|
-
function
|
|
5750
|
+
function Kr(r, e, t, n, a, o) {
|
|
5751
5751
|
if (!o)
|
|
5752
5752
|
return;
|
|
5753
5753
|
const i = mr(Yt(n, o), a, t);
|
|
@@ -5763,7 +5763,7 @@ function pt(r, e, t, n, a = 1 / 0) {
|
|
|
5763
5763
|
let o = Math.min(n.distance(r[0], t[0][0]), a);
|
|
5764
5764
|
if (o === 0)
|
|
5765
5765
|
return o;
|
|
5766
|
-
const i = new
|
|
5766
|
+
const i = new Rn([[0, [0, r.length - 1], [0, 0]]], Fn), s = Xt(t);
|
|
5767
5767
|
for (; i.length > 0; ) {
|
|
5768
5768
|
const l = i.pop();
|
|
5769
5769
|
if (l[0] >= o)
|
|
@@ -5773,19 +5773,19 @@ function pt(r, e, t, n, a = 1 / 0) {
|
|
|
5773
5773
|
if (!pe(u, r.length))
|
|
5774
5774
|
return NaN;
|
|
5775
5775
|
if (e) {
|
|
5776
|
-
const p =
|
|
5776
|
+
const p = ns(r, u, t, n);
|
|
5777
5777
|
if (isNaN(p) || p === 0)
|
|
5778
5778
|
return p;
|
|
5779
5779
|
o = Math.min(o, p);
|
|
5780
5780
|
} else
|
|
5781
5781
|
for (let p = u[0]; p <= u[1]; ++p) {
|
|
5782
|
-
const m =
|
|
5782
|
+
const m = rs(r[p], t, n);
|
|
5783
5783
|
if (o = Math.min(o, m), o === 0)
|
|
5784
5784
|
return 0;
|
|
5785
5785
|
}
|
|
5786
5786
|
} else {
|
|
5787
5787
|
const p = Jt(u, e);
|
|
5788
|
-
|
|
5788
|
+
Kr(i, o, n, r, s, p[0]), Kr(i, o, n, r, s, p[1]);
|
|
5789
5789
|
}
|
|
5790
5790
|
}
|
|
5791
5791
|
return o;
|
|
@@ -5794,7 +5794,7 @@ function ft(r, e, t, n, a, o = 1 / 0) {
|
|
|
5794
5794
|
let i = Math.min(o, a.distance(r[0], t[0]));
|
|
5795
5795
|
if (i === 0)
|
|
5796
5796
|
return i;
|
|
5797
|
-
const s = new
|
|
5797
|
+
const s = new Rn([[0, [0, r.length - 1], [0, t.length - 1]]], Fn);
|
|
5798
5798
|
for (; s.length > 0; ) {
|
|
5799
5799
|
const l = s.pop();
|
|
5800
5800
|
if (l[0] >= i)
|
|
@@ -5805,7 +5805,7 @@ function ft(r, e, t, n, a, o = 1 / 0) {
|
|
|
5805
5805
|
return NaN;
|
|
5806
5806
|
let f;
|
|
5807
5807
|
if (e && n)
|
|
5808
|
-
f =
|
|
5808
|
+
f = es(r, u, t, c, a), i = Math.min(i, f);
|
|
5809
5809
|
else if (e && !n) {
|
|
5810
5810
|
const d = r.slice(u[0], u[1] + 1);
|
|
5811
5811
|
for (let y = c[0]; y <= c[1]; ++y)
|
|
@@ -5817,7 +5817,7 @@ function ft(r, e, t, n, a, o = 1 / 0) {
|
|
|
5817
5817
|
if (f = we(r[y], d, a), i = Math.min(i, f), i === 0)
|
|
5818
5818
|
return i;
|
|
5819
5819
|
} else
|
|
5820
|
-
f =
|
|
5820
|
+
f = ts(r, u, t, c, a), i = Math.min(i, f);
|
|
5821
5821
|
} else {
|
|
5822
5822
|
const f = Jt(u, e), d = Jt(c, n);
|
|
5823
5823
|
rt(s, i, a, r, t, f[0], d[0]), rt(s, i, a, r, t, f[0], d[1]), rt(s, i, a, r, t, f[1], d[0]), rt(s, i, a, r, t, f[1], d[1]);
|
|
@@ -5825,7 +5825,7 @@ function ft(r, e, t, n, a, o = 1 / 0) {
|
|
|
5825
5825
|
}
|
|
5826
5826
|
return i;
|
|
5827
5827
|
}
|
|
5828
|
-
function
|
|
5828
|
+
function os(r, e) {
|
|
5829
5829
|
const t = r.geometry(), n = t.flat().map((i) => fr([i.x, i.y], r.canonical));
|
|
5830
5830
|
if (t.length === 0)
|
|
5831
5831
|
return NaN;
|
|
@@ -5848,7 +5848,7 @@ function is(r, e) {
|
|
|
5848
5848
|
}
|
|
5849
5849
|
return o;
|
|
5850
5850
|
}
|
|
5851
|
-
function
|
|
5851
|
+
function is(r, e) {
|
|
5852
5852
|
const t = r.geometry(), n = t.flat().map((i) => fr([i.x, i.y], r.canonical));
|
|
5853
5853
|
if (t.length === 0)
|
|
5854
5854
|
return NaN;
|
|
@@ -5871,11 +5871,11 @@ function ss(r, e) {
|
|
|
5871
5871
|
}
|
|
5872
5872
|
return o;
|
|
5873
5873
|
}
|
|
5874
|
-
function
|
|
5874
|
+
function ss(r, e) {
|
|
5875
5875
|
const t = r.geometry();
|
|
5876
5876
|
if (t.length === 0 || t[0].length === 0)
|
|
5877
5877
|
return NaN;
|
|
5878
|
-
const n =
|
|
5878
|
+
const n = Yi(t).map((i) => i.map((s) => s.map((l) => fr([l.x, l.y], r.canonical)))), a = new yr(n[0][0][0][1]);
|
|
5879
5879
|
let o = 1 / 0;
|
|
5880
5880
|
for (const i of e)
|
|
5881
5881
|
for (const s of n) {
|
|
@@ -5887,7 +5887,7 @@ function ls(r, e) {
|
|
|
5887
5887
|
o = Math.min(o, pt(i.coordinates, !0, s, a, o));
|
|
5888
5888
|
break;
|
|
5889
5889
|
case "Polygon":
|
|
5890
|
-
o = Math.min(o,
|
|
5890
|
+
o = Math.min(o, as(s, i.coordinates, a, o));
|
|
5891
5891
|
break;
|
|
5892
5892
|
}
|
|
5893
5893
|
if (o === 0)
|
|
@@ -5928,11 +5928,11 @@ class Ce {
|
|
|
5928
5928
|
evaluate(e) {
|
|
5929
5929
|
if (e.geometry() != null && e.canonicalID() != null) {
|
|
5930
5930
|
if (e.geometryType() === "Point")
|
|
5931
|
-
return
|
|
5931
|
+
return os(e, this.geometries);
|
|
5932
5932
|
if (e.geometryType() === "LineString")
|
|
5933
|
-
return
|
|
5933
|
+
return is(e, this.geometries);
|
|
5934
5934
|
if (e.geometryType() === "Polygon")
|
|
5935
|
-
return
|
|
5935
|
+
return ss(e, this.geometries);
|
|
5936
5936
|
}
|
|
5937
5937
|
return NaN;
|
|
5938
5938
|
}
|
|
@@ -5944,12 +5944,12 @@ class Ce {
|
|
|
5944
5944
|
}
|
|
5945
5945
|
const gr = {
|
|
5946
5946
|
// special forms
|
|
5947
|
-
"==":
|
|
5948
|
-
"!=":
|
|
5949
|
-
">":
|
|
5950
|
-
"<":
|
|
5951
|
-
">=":
|
|
5952
|
-
"<=":
|
|
5947
|
+
"==": _i,
|
|
5948
|
+
"!=": zi,
|
|
5949
|
+
">": Pi,
|
|
5950
|
+
"<": $i,
|
|
5951
|
+
">=": Fi,
|
|
5952
|
+
"<=": Ri,
|
|
5953
5953
|
array: Q,
|
|
5954
5954
|
at: ar,
|
|
5955
5955
|
boolean: Q,
|
|
@@ -6029,7 +6029,7 @@ class ee {
|
|
|
6029
6029
|
if (s.length === 1)
|
|
6030
6030
|
t.errors.push(...l.errors);
|
|
6031
6031
|
else {
|
|
6032
|
-
const c = (s.length ? s : i).map(([m]) =>
|
|
6032
|
+
const c = (s.length ? s : i).map(([m]) => us(m)).join(" | "), p = [];
|
|
6033
6033
|
for (let m = 1; m < e.length; m++) {
|
|
6034
6034
|
const f = t.parse(e[m], 1 + p.length);
|
|
6035
6035
|
if (!f)
|
|
@@ -6046,21 +6046,21 @@ class ee {
|
|
|
6046
6046
|
e[n] = ee;
|
|
6047
6047
|
}
|
|
6048
6048
|
}
|
|
6049
|
-
function
|
|
6049
|
+
function Zr(r, [e, t, n, a]) {
|
|
6050
6050
|
e = e.evaluate(r), t = t.evaluate(r), n = n.evaluate(r);
|
|
6051
|
-
const o = a ? a.evaluate(r) : 1, i =
|
|
6051
|
+
const o = a ? a.evaluate(r) : 1, i = An(e, t, n, o);
|
|
6052
6052
|
if (i)
|
|
6053
6053
|
throw new D(i);
|
|
6054
6054
|
return new N(e / 255, t / 255, n / 255, o, !1);
|
|
6055
6055
|
}
|
|
6056
|
-
function
|
|
6056
|
+
function Wr(r, e) {
|
|
6057
6057
|
return r in e;
|
|
6058
6058
|
}
|
|
6059
6059
|
function Ut(r, e) {
|
|
6060
6060
|
const t = e[r];
|
|
6061
6061
|
return typeof t > "u" ? null : t;
|
|
6062
6062
|
}
|
|
6063
|
-
function
|
|
6063
|
+
function ls(r, e, t, n) {
|
|
6064
6064
|
for (; t <= n; ) {
|
|
6065
6065
|
const a = t + n >> 1;
|
|
6066
6066
|
if (e[a] === r)
|
|
@@ -6074,7 +6074,7 @@ function be(r) {
|
|
|
6074
6074
|
}
|
|
6075
6075
|
ee.register(gr, {
|
|
6076
6076
|
error: [
|
|
6077
|
-
|
|
6077
|
+
ri,
|
|
6078
6078
|
[A],
|
|
6079
6079
|
(r, [e]) => {
|
|
6080
6080
|
throw new D(e.evaluate(r));
|
|
@@ -6096,23 +6096,23 @@ ee.register(gr, {
|
|
|
6096
6096
|
rgb: [
|
|
6097
6097
|
ne,
|
|
6098
6098
|
[g, g, g],
|
|
6099
|
-
|
|
6099
|
+
Zr
|
|
6100
6100
|
],
|
|
6101
6101
|
rgba: [
|
|
6102
6102
|
ne,
|
|
6103
6103
|
[g, g, g, g],
|
|
6104
|
-
|
|
6104
|
+
Zr
|
|
6105
6105
|
],
|
|
6106
6106
|
has: {
|
|
6107
6107
|
type: C,
|
|
6108
6108
|
overloads: [
|
|
6109
6109
|
[
|
|
6110
6110
|
[A],
|
|
6111
|
-
(r, [e]) =>
|
|
6111
|
+
(r, [e]) => Wr(e.evaluate(r), r.properties())
|
|
6112
6112
|
],
|
|
6113
6113
|
[
|
|
6114
6114
|
[A, ze],
|
|
6115
|
-
(r, [e, t]) =>
|
|
6115
|
+
(r, [e, t]) => Wr(e.evaluate(r), t.evaluate(r))
|
|
6116
6116
|
]
|
|
6117
6117
|
]
|
|
6118
6118
|
},
|
|
@@ -6424,7 +6424,7 @@ ee.register(gr, {
|
|
|
6424
6424
|
C,
|
|
6425
6425
|
[A, Z(L)],
|
|
6426
6426
|
// assumes v is a array literal with values sorted in ascending order and of a single type
|
|
6427
|
-
(r, [e, t]) =>
|
|
6427
|
+
(r, [e, t]) => ls(r.properties()[e.value], t.value, 0, t.value.length - 1)
|
|
6428
6428
|
],
|
|
6429
6429
|
all: {
|
|
6430
6430
|
type: C,
|
|
@@ -6497,7 +6497,7 @@ ee.register(gr, {
|
|
|
6497
6497
|
(r, [e]) => e.evaluate(r).resolvedLocale()
|
|
6498
6498
|
]
|
|
6499
6499
|
});
|
|
6500
|
-
function
|
|
6500
|
+
function us(r) {
|
|
6501
6501
|
return Array.isArray(r) ? `(${r.map(F).join(", ")})` : `(${F(r.type)}...)`;
|
|
6502
6502
|
}
|
|
6503
6503
|
function dt(r) {
|
|
@@ -6562,10 +6562,10 @@ function Me(r) {
|
|
|
6562
6562
|
function yt(r) {
|
|
6563
6563
|
return r["property-type"] === "data-driven" || r["property-type"] === "cross-faded-data-driven";
|
|
6564
6564
|
}
|
|
6565
|
-
function
|
|
6565
|
+
function Nn(r) {
|
|
6566
6566
|
return !!r.expression && r.expression.parameters.indexOf("zoom") > -1;
|
|
6567
6567
|
}
|
|
6568
|
-
function
|
|
6568
|
+
function On(r) {
|
|
6569
6569
|
return !!r.expression && r.expression.interpolated;
|
|
6570
6570
|
}
|
|
6571
6571
|
function _(r) {
|
|
@@ -6574,9 +6574,9 @@ function _(r) {
|
|
|
6574
6574
|
function vr(r) {
|
|
6575
6575
|
return typeof r == "object" && r !== null && !Array.isArray(r);
|
|
6576
6576
|
}
|
|
6577
|
-
class
|
|
6577
|
+
class cs {
|
|
6578
6578
|
constructor(e, t) {
|
|
6579
|
-
this.expression = e, this._warningHistory = {}, this._evaluator = new
|
|
6579
|
+
this.expression = e, this._warningHistory = {}, this._evaluator = new Tn(), this._defaultValue = t ? ds(t) : null, this._enumValues = t && t.type === "enum" ? t.values : null;
|
|
6580
6580
|
}
|
|
6581
6581
|
evaluateWithoutErrorHandling(e, t, n, a, o, i) {
|
|
6582
6582
|
return this._evaluator.globals = e, this._evaluator.feature = t, this._evaluator.featureState = n, this._evaluator.canonical = a, this._evaluator.availableImages = o || null, this._evaluator.formattedSection = i, this.expression.evaluate(this._evaluator);
|
|
@@ -6595,14 +6595,14 @@ class ps {
|
|
|
6595
6595
|
}
|
|
6596
6596
|
}
|
|
6597
6597
|
}
|
|
6598
|
-
function
|
|
6598
|
+
function Dn(r) {
|
|
6599
6599
|
return Array.isArray(r) && r.length > 0 && typeof r[0] == "string" && r[0] in gr;
|
|
6600
6600
|
}
|
|
6601
|
-
function
|
|
6602
|
-
const t = new xt(gr, dt, [], e ?
|
|
6603
|
-
return n ? Qt(new
|
|
6601
|
+
function jn(r, e) {
|
|
6602
|
+
const t = new xt(gr, dt, [], e ? fs(e) : void 0), n = t.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
|
6603
|
+
return n ? Qt(new cs(n, e)) : Me(t.errors);
|
|
6604
6604
|
}
|
|
6605
|
-
class
|
|
6605
|
+
class Jr {
|
|
6606
6606
|
constructor(e, t) {
|
|
6607
6607
|
this.kind = e, this._styleExpression = t, this.isStateDependent = e !== "constant" && !Ke(t.expression);
|
|
6608
6608
|
}
|
|
@@ -6613,7 +6613,7 @@ class Wr {
|
|
|
6613
6613
|
return this._styleExpression.evaluate(e, t, n, a, o, i);
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
6616
|
-
class
|
|
6616
|
+
class Yr {
|
|
6617
6617
|
constructor(e, t, n, a) {
|
|
6618
6618
|
this.kind = e, this.zoomStops = n, this._styleExpression = t, this.isStateDependent = e !== "camera" && !Ke(t.expression), this.interpolationType = a;
|
|
6619
6619
|
}
|
|
@@ -6627,27 +6627,27 @@ class Jr {
|
|
|
6627
6627
|
return this.interpolationType ? oe.interpolationFactor(this.interpolationType, e, t, n) : 0;
|
|
6628
6628
|
}
|
|
6629
6629
|
}
|
|
6630
|
-
function
|
|
6631
|
-
const t =
|
|
6630
|
+
function ps(r, e) {
|
|
6631
|
+
const t = jn(r, e);
|
|
6632
6632
|
if (t.result === "error")
|
|
6633
6633
|
return t;
|
|
6634
6634
|
const n = t.value.expression, a = Tt(n);
|
|
6635
6635
|
if (!a && !yt(e))
|
|
6636
6636
|
return Me([new re("", "data expressions not supported")]);
|
|
6637
6637
|
const o = Et(n, ["zoom"]);
|
|
6638
|
-
if (!o && !
|
|
6638
|
+
if (!o && !Nn(e))
|
|
6639
6639
|
return Me([new re("", "zoom expressions not supported")]);
|
|
6640
6640
|
const i = at(n);
|
|
6641
6641
|
if (!i && !o)
|
|
6642
6642
|
return Me([new re("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
|
6643
6643
|
if (i instanceof re)
|
|
6644
6644
|
return Me([i]);
|
|
6645
|
-
if (i instanceof oe && !
|
|
6645
|
+
if (i instanceof oe && !On(e))
|
|
6646
6646
|
return Me([new re("", '"interpolate" expressions cannot be used with this property')]);
|
|
6647
6647
|
if (!i)
|
|
6648
|
-
return Qt(a ? new
|
|
6648
|
+
return Qt(a ? new Jr("constant", t.value) : new Jr("source", t.value));
|
|
6649
6649
|
const s = i instanceof oe ? i.interpolation : void 0;
|
|
6650
|
-
return Qt(a ? new
|
|
6650
|
+
return Qt(a ? new Yr("camera", t.value, i.labels, s) : new Yr("composite", t.value, i.labels, s));
|
|
6651
6651
|
}
|
|
6652
6652
|
function at(r) {
|
|
6653
6653
|
let e = null;
|
|
@@ -6663,7 +6663,7 @@ function at(r) {
|
|
|
6663
6663
|
n instanceof re ? e = n : !e && n ? e = new re("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : e && n && e !== n && (e = new re("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
|
|
6664
6664
|
}), e;
|
|
6665
6665
|
}
|
|
6666
|
-
function
|
|
6666
|
+
function fs(r) {
|
|
6667
6667
|
const e = {
|
|
6668
6668
|
color: ne,
|
|
6669
6669
|
string: A,
|
|
@@ -6677,10 +6677,10 @@ function ds(r) {
|
|
|
6677
6677
|
};
|
|
6678
6678
|
return r.type === "array" ? Z(e[r.value] || L, r.length) : e[r.type];
|
|
6679
6679
|
}
|
|
6680
|
-
function
|
|
6680
|
+
function ds(r) {
|
|
6681
6681
|
return r.type === "color" && vr(r.default) ? new N(0, 0, 0, 0) : r.type === "color" ? N.parse(r.default) || null : r.type === "padding" ? ae.parse(r.default) || null : r.type === "variableAnchorOffsetCollection" ? ce.parse(r.default) || null : r.default === void 0 ? null : r.default;
|
|
6682
6682
|
}
|
|
6683
|
-
function
|
|
6683
|
+
function qn(r) {
|
|
6684
6684
|
if (r === !0 || r === !1)
|
|
6685
6685
|
return !0;
|
|
6686
6686
|
if (!Array.isArray(r) || r.length === 0)
|
|
@@ -6704,14 +6704,14 @@ function jn(r) {
|
|
|
6704
6704
|
case "any":
|
|
6705
6705
|
case "all":
|
|
6706
6706
|
for (const e of r.slice(1))
|
|
6707
|
-
if (!
|
|
6707
|
+
if (!qn(e) && typeof e != "boolean")
|
|
6708
6708
|
return !1;
|
|
6709
6709
|
return !0;
|
|
6710
6710
|
default:
|
|
6711
6711
|
return !0;
|
|
6712
6712
|
}
|
|
6713
6713
|
}
|
|
6714
|
-
function
|
|
6714
|
+
function Un(r) {
|
|
6715
6715
|
const e = r.key, t = r.value;
|
|
6716
6716
|
return t ? [new h(e, t, "constants have been deprecated as of v8")] : [];
|
|
6717
6717
|
}
|
|
@@ -6797,7 +6797,7 @@ function wr(r) {
|
|
|
6797
6797
|
let a = _(t);
|
|
6798
6798
|
return a === "number" && t !== t && (a = "NaN"), a !== "number" ? [new h(e, t, `number expected, ${a} found`)] : "minimum" in n && t < n.minimum ? [new h(e, t, `${t} is less than the minimum value ${n.minimum}`)] : "maximum" in n && t > n.maximum ? [new h(e, t, `${t} is greater than the maximum value ${n.maximum}`)] : [];
|
|
6799
6799
|
}
|
|
6800
|
-
function
|
|
6800
|
+
function Bn(r) {
|
|
6801
6801
|
const e = r.valueSpec, t = O(r.value.type);
|
|
6802
6802
|
let n, a = {}, o, i;
|
|
6803
6803
|
const s = t !== "categorical" && r.value.property === void 0, l = !s, u = _(r.value.stops) === "array" && _(r.value.stops[0]) === "array" && _(r.value.stops[0][0]) === "object", c = J({
|
|
@@ -6812,7 +6812,7 @@ function Un(r) {
|
|
|
6812
6812
|
default: d
|
|
6813
6813
|
}
|
|
6814
6814
|
});
|
|
6815
|
-
return t === "identity" && s && c.push(new h(r.key, r.value, 'missing required property "property"')), t !== "identity" && !r.value.stops && c.push(new h(r.key, r.value, 'missing required property "stops"')), t === "exponential" && r.valueSpec.expression && !
|
|
6815
|
+
return t === "identity" && s && c.push(new h(r.key, r.value, 'missing required property "property"')), t !== "identity" && !r.value.stops && c.push(new h(r.key, r.value, 'missing required property "stops"')), t === "exponential" && r.valueSpec.expression && !On(r.valueSpec) && c.push(new h(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (l && !yt(r.valueSpec) ? c.push(new h(r.key, r.value, "property functions not supported")) : s && !Nn(r.valueSpec) && c.push(new h(r.key, r.value, "zoom functions not supported"))), (t === "categorical" || u) && r.value.property === void 0 && c.push(new h(r.key, r.value, '"property" property is required')), c;
|
|
6816
6816
|
function p(y) {
|
|
6817
6817
|
if (t === "identity")
|
|
6818
6818
|
return [new h(y.key, y.value, 'identity function may not have a "stops" property')];
|
|
@@ -6862,7 +6862,7 @@ function Un(r) {
|
|
|
6862
6862
|
style: y.style,
|
|
6863
6863
|
styleSpec: y.styleSpec
|
|
6864
6864
|
}, w));
|
|
6865
|
-
return
|
|
6865
|
+
return Dn(Te(w[1])) ? b.concat([new h(`${v}[1]`, w[1], "expressions are not allowed in function stops.")]) : b.concat(y.validateSpec({
|
|
6866
6866
|
key: `${v}[1]`,
|
|
6867
6867
|
value: w[1],
|
|
6868
6868
|
valueSpec: e,
|
|
@@ -6897,7 +6897,7 @@ function Un(r) {
|
|
|
6897
6897
|
}
|
|
6898
6898
|
}
|
|
6899
6899
|
function Re(r) {
|
|
6900
|
-
const e = (r.expressionContext === "property" ?
|
|
6900
|
+
const e = (r.expressionContext === "property" ? ps : jn)(Te(r.value), r.valueSpec);
|
|
6901
6901
|
if (e.result === "error")
|
|
6902
6902
|
return e.value.map((n) => new h(`${r.key}${n.key}`, r.value, n.message));
|
|
6903
6903
|
const t = e.value.expression || e.value._styleExpression.expression;
|
|
@@ -6915,11 +6915,11 @@ function Re(r) {
|
|
|
6915
6915
|
}
|
|
6916
6916
|
return [];
|
|
6917
6917
|
}
|
|
6918
|
-
function
|
|
6918
|
+
function ys(r) {
|
|
6919
6919
|
const e = r.value, t = r.key, n = _(e);
|
|
6920
6920
|
return n !== "boolean" ? [new h(t, e, `boolean expected, ${n} found`)] : [];
|
|
6921
6921
|
}
|
|
6922
|
-
function
|
|
6922
|
+
function ms(r) {
|
|
6923
6923
|
const e = r.key, t = r.value, n = _(t);
|
|
6924
6924
|
return n !== "string" ? [new h(e, t, `color expected, ${n} found`)] : N.parse(String(t)) ? [] : [new h(e, t, `color expected, "${t}" found`)];
|
|
6925
6925
|
}
|
|
@@ -6928,12 +6928,12 @@ function Ze(r) {
|
|
|
6928
6928
|
return Array.isArray(n.values) ? n.values.indexOf(O(t)) === -1 && a.push(new h(e, t, `expected one of [${n.values.join(", ")}], ${JSON.stringify(t)} found`)) : Object.keys(n.values).indexOf(O(t)) === -1 && a.push(new h(e, t, `expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(t)} found`)), a;
|
|
6929
6929
|
}
|
|
6930
6930
|
function xr(r) {
|
|
6931
|
-
return
|
|
6931
|
+
return qn(Te(r.value)) ? Re(it({}, r, {
|
|
6932
6932
|
expressionContext: "filter",
|
|
6933
6933
|
valueSpec: { value: "boolean" }
|
|
6934
|
-
})) :
|
|
6934
|
+
})) : Vn(r);
|
|
6935
6935
|
}
|
|
6936
|
-
function
|
|
6936
|
+
function Vn(r) {
|
|
6937
6937
|
const e = r.value, t = r.key;
|
|
6938
6938
|
if (_(e) !== "array")
|
|
6939
6939
|
return [new h(t, e, `array expected, ${_(e)} found`)];
|
|
@@ -6972,7 +6972,7 @@ function Bn(r) {
|
|
|
6972
6972
|
case "all":
|
|
6973
6973
|
case "none":
|
|
6974
6974
|
for (let i = 1; i < e.length; i++)
|
|
6975
|
-
o = o.concat(
|
|
6975
|
+
o = o.concat(Vn({
|
|
6976
6976
|
key: `${t}[${i}]`,
|
|
6977
6977
|
value: e[i],
|
|
6978
6978
|
style: r.style,
|
|
@@ -6986,7 +6986,7 @@ function Bn(r) {
|
|
|
6986
6986
|
}
|
|
6987
6987
|
return o;
|
|
6988
6988
|
}
|
|
6989
|
-
function
|
|
6989
|
+
function Gn(r, e) {
|
|
6990
6990
|
const t = r.key, n = r.validateSpec, a = r.style, o = r.styleSpec, i = r.value, s = r.objectKey, l = o[`${e}_${r.layerType}`];
|
|
6991
6991
|
if (!l)
|
|
6992
6992
|
return [];
|
|
@@ -7018,13 +7018,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
7018
7018
|
propertyKey: s
|
|
7019
7019
|
}));
|
|
7020
7020
|
}
|
|
7021
|
-
function Gn(r) {
|
|
7022
|
-
return Vn(r, "paint");
|
|
7023
|
-
}
|
|
7024
7021
|
function Hn(r) {
|
|
7025
|
-
return
|
|
7022
|
+
return Gn(r, "paint");
|
|
7026
7023
|
}
|
|
7027
7024
|
function Kn(r) {
|
|
7025
|
+
return Gn(r, "layout");
|
|
7026
|
+
}
|
|
7027
|
+
function Zn(r) {
|
|
7028
7028
|
let e = [];
|
|
7029
7029
|
const t = r.value, n = r.key, a = r.style, o = r.styleSpec;
|
|
7030
7030
|
!t.type && !t.ref && e.push(new h(n, t, 'either "type" or "ref" is required'));
|
|
@@ -7088,7 +7088,7 @@ function Kn(r) {
|
|
|
7088
7088
|
validateSpec: l.validateSpec,
|
|
7089
7089
|
objectElementValidators: {
|
|
7090
7090
|
"*"(u) {
|
|
7091
|
-
return
|
|
7091
|
+
return Kn(it({ layerType: i }, u));
|
|
7092
7092
|
}
|
|
7093
7093
|
}
|
|
7094
7094
|
});
|
|
@@ -7103,7 +7103,7 @@ function Kn(r) {
|
|
|
7103
7103
|
validateSpec: l.validateSpec,
|
|
7104
7104
|
objectElementValidators: {
|
|
7105
7105
|
"*"(u) {
|
|
7106
|
-
return
|
|
7106
|
+
return Hn(it({ layerType: i }, u));
|
|
7107
7107
|
}
|
|
7108
7108
|
}
|
|
7109
7109
|
});
|
|
@@ -7115,7 +7115,7 @@ function Ee(r) {
|
|
|
7115
7115
|
const e = r.value, t = r.key, n = _(e);
|
|
7116
7116
|
return n !== "string" ? [new h(t, e, `string expected, ${n} found`)] : [];
|
|
7117
7117
|
}
|
|
7118
|
-
function
|
|
7118
|
+
function hs(r) {
|
|
7119
7119
|
var e;
|
|
7120
7120
|
const t = (e = r.sourceName) !== null && e !== void 0 ? e : "", n = r.value, a = r.styleSpec, o = a.source_raster_dem, i = r.style;
|
|
7121
7121
|
let s = [];
|
|
@@ -7136,10 +7136,10 @@ function gs(r) {
|
|
|
7136
7136
|
})) : s.push(new h(f, n[f], `unknown property "${f}"`));
|
|
7137
7137
|
return s;
|
|
7138
7138
|
}
|
|
7139
|
-
const
|
|
7140
|
-
promoteId:
|
|
7139
|
+
const Xr = {
|
|
7140
|
+
promoteId: gs
|
|
7141
7141
|
};
|
|
7142
|
-
function
|
|
7142
|
+
function Wn(r) {
|
|
7143
7143
|
const e = r.value, t = r.key, n = r.styleSpec, a = r.style, o = r.validateSpec;
|
|
7144
7144
|
if (!e.type)
|
|
7145
7145
|
return [new h(t, e, '"type" is required')];
|
|
@@ -7154,11 +7154,11 @@ function Zn(r) {
|
|
|
7154
7154
|
valueSpec: n[`source_${i.replace("-", "_")}`],
|
|
7155
7155
|
style: r.style,
|
|
7156
7156
|
styleSpec: n,
|
|
7157
|
-
objectElementValidators:
|
|
7157
|
+
objectElementValidators: Xr,
|
|
7158
7158
|
validateSpec: o
|
|
7159
7159
|
}), s;
|
|
7160
7160
|
case "raster-dem":
|
|
7161
|
-
return s =
|
|
7161
|
+
return s = hs({
|
|
7162
7162
|
sourceName: t,
|
|
7163
7163
|
value: e,
|
|
7164
7164
|
style: r.style,
|
|
@@ -7173,7 +7173,7 @@ function Zn(r) {
|
|
|
7173
7173
|
style: a,
|
|
7174
7174
|
styleSpec: n,
|
|
7175
7175
|
validateSpec: o,
|
|
7176
|
-
objectElementValidators:
|
|
7176
|
+
objectElementValidators: Xr
|
|
7177
7177
|
}), e.cluster)
|
|
7178
7178
|
for (const l in e.clusterProperties) {
|
|
7179
7179
|
const [u, c] = e.clusterProperties[l], p = typeof u == "string" ? [u, ["accumulated"], ["get", l]] : u;
|
|
@@ -7221,7 +7221,7 @@ function Zn(r) {
|
|
|
7221
7221
|
});
|
|
7222
7222
|
}
|
|
7223
7223
|
}
|
|
7224
|
-
function
|
|
7224
|
+
function gs({ key: r, value: e }) {
|
|
7225
7225
|
if (_(e) === "string")
|
|
7226
7226
|
return Ee({ key: r, value: e });
|
|
7227
7227
|
{
|
|
@@ -7231,7 +7231,7 @@ function vs({ key: r, value: e }) {
|
|
|
7231
7231
|
return t;
|
|
7232
7232
|
}
|
|
7233
7233
|
}
|
|
7234
|
-
function
|
|
7234
|
+
function Jn(r) {
|
|
7235
7235
|
const e = r.value, t = r.styleSpec, n = t.light, a = r.style;
|
|
7236
7236
|
let o = [];
|
|
7237
7237
|
const i = _(e);
|
|
@@ -7259,7 +7259,7 @@ function Wn(r) {
|
|
|
7259
7259
|
}
|
|
7260
7260
|
return o;
|
|
7261
7261
|
}
|
|
7262
|
-
function
|
|
7262
|
+
function Yn(r) {
|
|
7263
7263
|
const e = r.value, t = r.styleSpec, n = t.sky, a = r.style, o = _(e);
|
|
7264
7264
|
if (e === void 0)
|
|
7265
7265
|
return [];
|
|
@@ -7276,7 +7276,7 @@ function Jn(r) {
|
|
|
7276
7276
|
})) : i = i.concat([new h(s, e[s], `unknown property "${s}"`)]);
|
|
7277
7277
|
return i;
|
|
7278
7278
|
}
|
|
7279
|
-
function
|
|
7279
|
+
function Xn(r) {
|
|
7280
7280
|
const e = r.value, t = r.styleSpec, n = t.terrain, a = r.style;
|
|
7281
7281
|
let o = [];
|
|
7282
7282
|
const i = _(e);
|
|
@@ -7295,13 +7295,13 @@ function Yn(r) {
|
|
|
7295
7295
|
})) : o = o.concat([new h(s, e[s], `unknown property "${s}"`)]);
|
|
7296
7296
|
return o;
|
|
7297
7297
|
}
|
|
7298
|
-
function
|
|
7298
|
+
function vs(r) {
|
|
7299
7299
|
return Ee(r).length === 0 ? [] : Re(r);
|
|
7300
7300
|
}
|
|
7301
|
-
function
|
|
7301
|
+
function bs(r) {
|
|
7302
7302
|
return Ee(r).length === 0 ? [] : Re(r);
|
|
7303
7303
|
}
|
|
7304
|
-
function
|
|
7304
|
+
function ws(r) {
|
|
7305
7305
|
const e = r.key, t = r.value;
|
|
7306
7306
|
if (_(t) === "array") {
|
|
7307
7307
|
if (t.length < 1 || t.length > 4)
|
|
@@ -7325,7 +7325,7 @@ function xs(r) {
|
|
|
7325
7325
|
valueSpec: {}
|
|
7326
7326
|
});
|
|
7327
7327
|
}
|
|
7328
|
-
function
|
|
7328
|
+
function xs(r) {
|
|
7329
7329
|
const e = r.key, t = r.value, n = _(t), a = r.styleSpec;
|
|
7330
7330
|
if (n !== "array" || t.length < 1 || t.length % 2 !== 0)
|
|
7331
7331
|
return [new h(e, t, "variableAnchorOffsetCollection requires a non-empty array of even length")];
|
|
@@ -7348,7 +7348,7 @@ function Ss(r) {
|
|
|
7348
7348
|
}));
|
|
7349
7349
|
return o;
|
|
7350
7350
|
}
|
|
7351
|
-
function
|
|
7351
|
+
function Qn(r) {
|
|
7352
7352
|
let e = [];
|
|
7353
7353
|
const t = r.value, n = r.key;
|
|
7354
7354
|
if (Array.isArray(t)) {
|
|
@@ -7379,7 +7379,7 @@ function Xn(r) {
|
|
|
7379
7379
|
value: t
|
|
7380
7380
|
});
|
|
7381
7381
|
}
|
|
7382
|
-
function
|
|
7382
|
+
function Ss(r) {
|
|
7383
7383
|
const e = r.value, t = r.styleSpec, n = t.projection, a = r.style, o = _(e);
|
|
7384
7384
|
if (e === void 0)
|
|
7385
7385
|
return [];
|
|
@@ -7396,43 +7396,43 @@ function ks(r) {
|
|
|
7396
7396
|
})) : i = i.concat([new h(s, e[s], `unknown property "${s}"`)]);
|
|
7397
7397
|
return i;
|
|
7398
7398
|
}
|
|
7399
|
-
const
|
|
7399
|
+
const Qr = {
|
|
7400
7400
|
"*"() {
|
|
7401
7401
|
return [];
|
|
7402
7402
|
},
|
|
7403
7403
|
array: br,
|
|
7404
|
-
boolean:
|
|
7404
|
+
boolean: ys,
|
|
7405
7405
|
number: wr,
|
|
7406
|
-
color:
|
|
7407
|
-
constants:
|
|
7406
|
+
color: ms,
|
|
7407
|
+
constants: Un,
|
|
7408
7408
|
enum: Ze,
|
|
7409
7409
|
filter: xr,
|
|
7410
|
-
function:
|
|
7411
|
-
layer:
|
|
7410
|
+
function: Bn,
|
|
7411
|
+
layer: Zn,
|
|
7412
7412
|
object: J,
|
|
7413
|
-
source:
|
|
7414
|
-
light:
|
|
7415
|
-
sky:
|
|
7416
|
-
terrain:
|
|
7417
|
-
projection:
|
|
7413
|
+
source: Wn,
|
|
7414
|
+
light: Jn,
|
|
7415
|
+
sky: Yn,
|
|
7416
|
+
terrain: Xn,
|
|
7417
|
+
projection: Ss,
|
|
7418
7418
|
string: Ee,
|
|
7419
|
-
formatted:
|
|
7420
|
-
resolvedImage:
|
|
7421
|
-
padding:
|
|
7422
|
-
variableAnchorOffsetCollection:
|
|
7423
|
-
sprite:
|
|
7419
|
+
formatted: vs,
|
|
7420
|
+
resolvedImage: bs,
|
|
7421
|
+
padding: ws,
|
|
7422
|
+
variableAnchorOffsetCollection: xs,
|
|
7423
|
+
sprite: Qn
|
|
7424
7424
|
};
|
|
7425
7425
|
function Ue(r) {
|
|
7426
7426
|
const e = r.value, t = r.valueSpec, n = r.styleSpec;
|
|
7427
|
-
return r.validateSpec = Ue, t.expression && vr(O(e)) ?
|
|
7427
|
+
return r.validateSpec = Ue, t.expression && vr(O(e)) ? Bn(r) : t.expression && Dn(Te(e)) ? Re(r) : t.type && Qr[t.type] ? Qr[t.type](r) : J(it({}, r, {
|
|
7428
7428
|
valueSpec: t.type ? n[t.type] : t
|
|
7429
7429
|
}));
|
|
7430
7430
|
}
|
|
7431
|
-
function
|
|
7431
|
+
function ea(r) {
|
|
7432
7432
|
const e = r.value, t = r.key, n = Ee(r);
|
|
7433
7433
|
return n.length || (e.indexOf("{fontstack}") === -1 && n.push(new h(t, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && n.push(new h(t, e, '"glyphs" url must include a "{range}" token'))), n;
|
|
7434
7434
|
}
|
|
7435
|
-
function Y(r, e =
|
|
7435
|
+
function Y(r, e = ti) {
|
|
7436
7436
|
let t = [];
|
|
7437
7437
|
return t = t.concat(Ue({
|
|
7438
7438
|
key: "",
|
|
@@ -7442,29 +7442,29 @@ function Y(r, e = ri) {
|
|
|
7442
7442
|
style: r,
|
|
7443
7443
|
validateSpec: Ue,
|
|
7444
7444
|
objectElementValidators: {
|
|
7445
|
-
glyphs:
|
|
7445
|
+
glyphs: ea,
|
|
7446
7446
|
"*"() {
|
|
7447
7447
|
return [];
|
|
7448
7448
|
}
|
|
7449
7449
|
}
|
|
7450
|
-
})), r.constants && (t = t.concat(
|
|
7450
|
+
})), r.constants && (t = t.concat(Un({
|
|
7451
7451
|
key: "constants",
|
|
7452
7452
|
value: r.constants,
|
|
7453
7453
|
style: r,
|
|
7454
7454
|
styleSpec: e,
|
|
7455
7455
|
validateSpec: Ue
|
|
7456
|
-
}))),
|
|
7457
|
-
}
|
|
7458
|
-
Y.source = le(se(
|
|
7459
|
-
Y.sprite = le(se(
|
|
7460
|
-
Y.glyphs = le(se(
|
|
7461
|
-
Y.light = le(se(
|
|
7462
|
-
Y.sky = le(se(
|
|
7463
|
-
Y.terrain = le(se(
|
|
7464
|
-
Y.layer = le(se(
|
|
7456
|
+
}))), ta(t);
|
|
7457
|
+
}
|
|
7458
|
+
Y.source = le(se(Wn));
|
|
7459
|
+
Y.sprite = le(se(Qn));
|
|
7460
|
+
Y.glyphs = le(se(ea));
|
|
7461
|
+
Y.light = le(se(Jn));
|
|
7462
|
+
Y.sky = le(se(Yn));
|
|
7463
|
+
Y.terrain = le(se(Xn));
|
|
7464
|
+
Y.layer = le(se(Zn));
|
|
7465
7465
|
Y.filter = le(se(xr));
|
|
7466
|
-
Y.paintProperty = le(se(
|
|
7467
|
-
Y.layoutProperty = le(se(
|
|
7466
|
+
Y.paintProperty = le(se(Hn));
|
|
7467
|
+
Y.layoutProperty = le(se(Kn));
|
|
7468
7468
|
function se(r) {
|
|
7469
7469
|
return function(e) {
|
|
7470
7470
|
return r({
|
|
@@ -7473,15 +7473,15 @@ function se(r) {
|
|
|
7473
7473
|
});
|
|
7474
7474
|
};
|
|
7475
7475
|
}
|
|
7476
|
-
function
|
|
7476
|
+
function ta(r) {
|
|
7477
7477
|
return [].concat(r).sort((e, t) => e.line - t.line);
|
|
7478
7478
|
}
|
|
7479
7479
|
function le(r) {
|
|
7480
7480
|
return function(...e) {
|
|
7481
|
-
return
|
|
7481
|
+
return ta(r.apply(this, e));
|
|
7482
7482
|
};
|
|
7483
7483
|
}
|
|
7484
|
-
function
|
|
7484
|
+
function en(r) {
|
|
7485
7485
|
if (!r)
|
|
7486
7486
|
return {
|
|
7487
7487
|
style: je[$t[0].referenceStyleID].getDefaultVariant().getExpandedStyleURL(),
|
|
@@ -7490,7 +7490,7 @@ function Qr(r) {
|
|
|
7490
7490
|
isFallback: !0
|
|
7491
7491
|
};
|
|
7492
7492
|
if (typeof r == "string") {
|
|
7493
|
-
const t =
|
|
7493
|
+
const t = Cs(r);
|
|
7494
7494
|
return t.isValidStyle ? {
|
|
7495
7495
|
style: t.styleObject,
|
|
7496
7496
|
requiresUrlMonitoring: !1,
|
|
@@ -7500,7 +7500,7 @@ function Qr(r) {
|
|
|
7500
7500
|
requiresUrlMonitoring: !1,
|
|
7501
7501
|
// default styles don't require URL monitoring
|
|
7502
7502
|
isFallback: !0
|
|
7503
|
-
} : r.startsWith("http") ? { style: r, requiresUrlMonitoring: !0, isFallback: !1 } : r.toLowerCase().includes(".json") ? { style:
|
|
7503
|
+
} : r.startsWith("http") ? { style: r, requiresUrlMonitoring: !0, isFallback: !1 } : r.toLowerCase().includes(".json") ? { style: ks(r), requiresUrlMonitoring: !0, isFallback: !1 } : { style: Aa(r), requiresUrlMonitoring: !0, isFallback: !1 };
|
|
7504
7504
|
}
|
|
7505
7505
|
return r instanceof Ta ? { style: r.getExpandedStyleURL(), requiresUrlMonitoring: !1, isFallback: !1 } : r instanceof Ea ? {
|
|
7506
7506
|
style: r.getDefaultVariant().getExpandedStyleURL(),
|
|
@@ -7517,14 +7517,14 @@ function Qr(r) {
|
|
|
7517
7517
|
isFallback: !0
|
|
7518
7518
|
};
|
|
7519
7519
|
}
|
|
7520
|
-
function
|
|
7520
|
+
function ks(r) {
|
|
7521
7521
|
try {
|
|
7522
7522
|
return new URL(r).href;
|
|
7523
7523
|
} catch {
|
|
7524
7524
|
}
|
|
7525
7525
|
return new URL(r, location.origin).href;
|
|
7526
7526
|
}
|
|
7527
|
-
function
|
|
7527
|
+
function Cs(r) {
|
|
7528
7528
|
try {
|
|
7529
7529
|
const e = JSON.parse(r), t = Y(e);
|
|
7530
7530
|
return {
|
|
@@ -7540,18 +7540,18 @@ function Ls(r) {
|
|
|
7540
7540
|
};
|
|
7541
7541
|
}
|
|
7542
7542
|
}
|
|
7543
|
-
class
|
|
7543
|
+
class Ls {
|
|
7544
7544
|
constructor() {
|
|
7545
7545
|
M(this, "_map");
|
|
7546
7546
|
M(this, "_container");
|
|
7547
7547
|
M(this, "_terrainButton");
|
|
7548
|
-
|
|
7548
|
+
ao(["_toggleTerrain", "_updateTerrainIcon"], this);
|
|
7549
7549
|
}
|
|
7550
7550
|
onAdd(e) {
|
|
7551
7551
|
return this._map = e, this._container = _e("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._terrainButton = _e("button", "maplibregl-ctrl-terrain", this._container), _e("span", "maplibregl-ctrl-icon", this._terrainButton).setAttribute("aria-hidden", "true"), this._terrainButton.type = "button", this._terrainButton.addEventListener("click", this._toggleTerrain), this._updateTerrainIcon(), this._map.on("terrain", this._updateTerrainIcon), this._container;
|
|
7552
7552
|
}
|
|
7553
7553
|
onRemove() {
|
|
7554
|
-
|
|
7554
|
+
hn(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
|
|
7555
7555
|
}
|
|
7556
7556
|
_toggleTerrain() {
|
|
7557
7557
|
this._map.hasTerrain() ? this._map.disableTerrain() : this._map.enableTerrain(), this._updateTerrainIcon();
|
|
@@ -7560,7 +7560,7 @@ class As {
|
|
|
7560
7560
|
this._terrainButton.classList.remove("maplibregl-ctrl-terrain"), this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"), this._map.hasTerrain() ? (this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"), this._terrainButton.title = this._map._getUIString("TerrainControl.Disable")) : (this._terrainButton.classList.add("maplibregl-ctrl-terrain"), this._terrainButton.title = this._map._getUIString("TerrainControl.Enable"));
|
|
7561
7561
|
}
|
|
7562
7562
|
}
|
|
7563
|
-
class
|
|
7563
|
+
class As extends uo {
|
|
7564
7564
|
constructor(t = {}) {
|
|
7565
7565
|
super({
|
|
7566
7566
|
showCompass: t.showCompass ?? !0,
|
|
@@ -7589,11 +7589,11 @@ class Ts extends co {
|
|
|
7589
7589
|
return a.clickFunction = n, a;
|
|
7590
7590
|
}
|
|
7591
7591
|
}
|
|
7592
|
-
const
|
|
7593
|
-
class
|
|
7592
|
+
const tn = x.Marker, rn = x.LngLat, Ts = x.LngLatBounds;
|
|
7593
|
+
class Es extends co {
|
|
7594
7594
|
constructor() {
|
|
7595
7595
|
super(...arguments);
|
|
7596
|
-
M(this, "lastUpdatedCenter", new
|
|
7596
|
+
M(this, "lastUpdatedCenter", new rn(0, 0));
|
|
7597
7597
|
/**
|
|
7598
7598
|
* Update the camera location to center on the current position
|
|
7599
7599
|
*
|
|
@@ -7602,12 +7602,12 @@ class Is extends po {
|
|
|
7602
7602
|
*/
|
|
7603
7603
|
M(this, "_updateCamera", (t) => {
|
|
7604
7604
|
var c, p;
|
|
7605
|
-
const n = new
|
|
7605
|
+
const n = new rn(t.coords.longitude, t.coords.latitude), a = t.coords.accuracy, i = {
|
|
7606
7606
|
bearing: this._map.getBearing(),
|
|
7607
7607
|
...this.options.fitBoundsOptions,
|
|
7608
7608
|
linear: !0
|
|
7609
7609
|
}, s = this._map.getZoom();
|
|
7610
|
-
s > (((p = (c = this.options) == null ? void 0 : c.fitBoundsOptions) == null ? void 0 : p.maxZoom) ?? 30) && (i.zoom = s), this._map.fitBounds(
|
|
7610
|
+
s > (((p = (c = this.options) == null ? void 0 : c.fitBoundsOptions) == null ? void 0 : p.maxZoom) ?? 30) && (i.zoom = s), this._map.fitBounds(Ts.fromLngLat(n, a), i, {
|
|
7611
7611
|
geolocateSource: !0
|
|
7612
7612
|
// tag this camera change so it won't cause the control to change to background state
|
|
7613
7613
|
});
|
|
@@ -7628,7 +7628,7 @@ class Is extends po {
|
|
|
7628
7628
|
const n = this._map._getUIString("GeolocateControl.FindMyLocation");
|
|
7629
7629
|
this._geolocateButton.disabled = !1, this._geolocateButton.title = n, this._geolocateButton.setAttribute("aria-label", n);
|
|
7630
7630
|
}
|
|
7631
|
-
this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = _e("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new
|
|
7631
|
+
this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = _e("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new tn({ element: this._dotElement }), this._circleElement = _e("div", "maplibregl-user-location-accuracy-circle"), this._accuracyCircleMarker = new tn({
|
|
7632
7632
|
element: this._circleElement,
|
|
7633
7633
|
pitchAlignment: "map"
|
|
7634
7634
|
}), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("move", this._onZoom)), this._geolocateButton.addEventListener("click", this.trigger.bind(this)), this._setup = !0, this.options.trackUserLocation && this._map.on("moveend", (n) => {
|
|
@@ -7651,7 +7651,7 @@ class Is extends po {
|
|
|
7651
7651
|
this._circleElement.style.width = `${s}px`, this._circleElement.style.height = `${s}px`;
|
|
7652
7652
|
}
|
|
7653
7653
|
}
|
|
7654
|
-
var G, X, de, ye, K, We, q,
|
|
7654
|
+
var G, X, de, ye, K, We, q, ra, W, na;
|
|
7655
7655
|
class Bt {
|
|
7656
7656
|
constructor(e, t) {
|
|
7657
7657
|
fe(this, q);
|
|
@@ -7718,18 +7718,18 @@ class Bt {
|
|
|
7718
7718
|
ve(this, X, e), ve(this, de, _e("div", "maplibregl-ctrl maplibregl-ctrl-group"));
|
|
7719
7719
|
for (const [t, n] of Object.entries(T(this, G).containerStyle))
|
|
7720
7720
|
T(this, de).style.setProperty(t, n);
|
|
7721
|
-
return T(this, G).container = T(this, de), T(this, G).zoom = e.getZoom() + T(this, G).zoomAdjust, this.map = new
|
|
7721
|
+
return T(this, G).container = T(this, de), T(this, G).zoom = e.getZoom() + T(this, G).zoomAdjust, this.map = new Ms(T(this, G)), this.map.once("style.load", () => {
|
|
7722
7722
|
this.map.resize();
|
|
7723
7723
|
}), this.map.once("load", () => {
|
|
7724
|
-
V(this, q,
|
|
7724
|
+
V(this, q, ra).call(this, T(this, G).parentRect), ve(this, We, V(this, q, na).call(this));
|
|
7725
7725
|
}), T(this, de);
|
|
7726
7726
|
}
|
|
7727
7727
|
onRemove() {
|
|
7728
7728
|
var e;
|
|
7729
|
-
(e = T(this, We)) == null || e.call(this),
|
|
7729
|
+
(e = T(this, We)) == null || e.call(this), hn(T(this, de));
|
|
7730
7730
|
}
|
|
7731
7731
|
}
|
|
7732
|
-
G = new WeakMap(), X = new WeakMap(), de = new WeakMap(), ye = new WeakMap(), K = new WeakMap(), We = new WeakMap(), q = new WeakSet(),
|
|
7732
|
+
G = new WeakMap(), X = new WeakMap(), de = new WeakMap(), ye = new WeakMap(), K = new WeakMap(), We = new WeakMap(), q = new WeakSet(), ra = function(e) {
|
|
7733
7733
|
e === void 0 || e.linePaint === void 0 && e.fillPaint === void 0 || (ve(this, ye, {
|
|
7734
7734
|
type: "Feature",
|
|
7735
7735
|
properties: {
|
|
@@ -7772,7 +7772,7 @@ G = new WeakMap(), X = new WeakMap(), de = new WeakMap(), ye = new WeakMap(), K
|
|
|
7772
7772
|
T(this, ye).geometry.coordinates = [
|
|
7773
7773
|
[l.toArray(), u.toArray(), s.toArray(), i.toArray(), l.toArray()]
|
|
7774
7774
|
], this.map.getSource("parentRect").setData(T(this, ye));
|
|
7775
|
-
},
|
|
7775
|
+
}, na = function() {
|
|
7776
7776
|
const { pitchAdjust: e } = T(this, G), t = () => {
|
|
7777
7777
|
i("parent");
|
|
7778
7778
|
}, n = () => {
|
|
@@ -7795,17 +7795,17 @@ G = new WeakMap(), X = new WeakMap(), de = new WeakMap(), ye = new WeakMap(), K
|
|
|
7795
7795
|
o();
|
|
7796
7796
|
};
|
|
7797
7797
|
};
|
|
7798
|
-
const
|
|
7798
|
+
const Is = {
|
|
7799
7799
|
POINT: "POINT",
|
|
7800
7800
|
COUNTRY: "COUNTRY"
|
|
7801
7801
|
};
|
|
7802
|
-
class
|
|
7802
|
+
class Ms extends x.Map {
|
|
7803
7803
|
constructor(t) {
|
|
7804
|
-
|
|
7805
|
-
const { style: n, requiresUrlMonitoring: a, isFallback: o } =
|
|
7804
|
+
so(t.container), t.apiKey && (U.apiKey = t.apiKey);
|
|
7805
|
+
const { style: n, requiresUrlMonitoring: a, isFallback: o } = en(t.style);
|
|
7806
7806
|
o && console.warn(
|
|
7807
7807
|
"Invalid style. A style must be a valid URL to a style.json, a JSON string representing a valid StyleSpecification or a valid StyleSpecification object. Fallback to default MapTiler style."
|
|
7808
|
-
),
|
|
7808
|
+
), U.apiKey || console.warn("MapTiler Cloud API key is not set. Visit https://maptiler.com and try Cloud for free!");
|
|
7809
7809
|
const i = location.hash;
|
|
7810
7810
|
let s = {
|
|
7811
7811
|
compact: !1
|
|
@@ -7818,7 +7818,7 @@ class _s extends x.Map {
|
|
|
7818
7818
|
...t,
|
|
7819
7819
|
style: n,
|
|
7820
7820
|
maplibreLogo: !1,
|
|
7821
|
-
transformRequest:
|
|
7821
|
+
transformRequest: $r(t.transformRequest),
|
|
7822
7822
|
attributionControl: t.forceNoAttributionControl === !0 ? !1 : s
|
|
7823
7823
|
};
|
|
7824
7824
|
delete l.style;
|
|
@@ -7840,10 +7840,10 @@ class _s extends x.Map {
|
|
|
7840
7840
|
let d = "The distant style could not be loaded.";
|
|
7841
7841
|
this.getStyle() ? d += "Leaving the style as is." : (this.setStyle(je.STREETS), d += `Loading default MapTiler Cloud style "${je.STREETS.getDefaultVariant().getId()}" as a fallback.`), console.warn(d);
|
|
7842
7842
|
};
|
|
7843
|
-
this.on("style.load", () => {
|
|
7843
|
+
if (this.on("style.load", () => {
|
|
7844
7844
|
this.styleInProcess = !1;
|
|
7845
7845
|
}), this.on("error", (d) => {
|
|
7846
|
-
if (d.error instanceof
|
|
7846
|
+
if (d.error instanceof x.AJAXError) {
|
|
7847
7847
|
const b = d.error.url, w = new URL(b);
|
|
7848
7848
|
w.search = "";
|
|
7849
7849
|
const v = w.href;
|
|
@@ -7852,13 +7852,19 @@ class _s extends x.Map {
|
|
|
7852
7852
|
}
|
|
7853
7853
|
if (this.styleInProcess)
|
|
7854
7854
|
return u();
|
|
7855
|
-
}),
|
|
7855
|
+
}), U.caching && !Ht && console.warn(
|
|
7856
7856
|
"The cache API is only available in secure contexts. More info at https://developer.mozilla.org/en-US/docs/Web/API/Cache"
|
|
7857
|
-
),
|
|
7857
|
+
), U.caching && Ht && ro(), typeof t.language > "u")
|
|
7858
|
+
this.primaryLanguage = U.primaryLanguage;
|
|
7859
|
+
else {
|
|
7860
|
+
const d = Tr(t.language, I);
|
|
7861
|
+
this.primaryLanguage = d ?? U.primaryLanguage;
|
|
7862
|
+
}
|
|
7863
|
+
this.forceLanguageUpdate = !(this.primaryLanguage === I.STYLE || this.primaryLanguage === I.STYLE_LOCK), this.languageAlwaysBeenStyle = this.primaryLanguage === I.STYLE, this.terrainExaggeration = t.terrainExaggeration ?? this.terrainExaggeration, this.once("styledata", async () => {
|
|
7858
7864
|
if (!t.geolocate || t.center || t.hash && i)
|
|
7859
7865
|
return;
|
|
7860
7866
|
try {
|
|
7861
|
-
if (t.geolocate ===
|
|
7867
|
+
if (t.geolocate === Is.COUNTRY) {
|
|
7862
7868
|
await this.fitToIpBounds();
|
|
7863
7869
|
return;
|
|
7864
7870
|
}
|
|
@@ -7909,29 +7915,29 @@ class _s extends x.Map {
|
|
|
7909
7915
|
const y = Object.keys(this.style.sourceCaches).map((v) => this.getSource(v)).filter(
|
|
7910
7916
|
(v) => v && "url" in v && typeof v.url == "string" && (v == null ? void 0 : v.url.includes("tiles.json"))
|
|
7911
7917
|
), b = new URL(y[0].url);
|
|
7912
|
-
b.searchParams.has("key") || b.searchParams.append("key",
|
|
7918
|
+
b.searchParams.has("key") || b.searchParams.append("key", U.apiKey), d = await (await fetch(b.href)).json();
|
|
7913
7919
|
} catch {
|
|
7914
7920
|
}
|
|
7915
7921
|
if (t.forceNoAttributionControl !== !0)
|
|
7916
7922
|
if ("logo" in d && d.logo) {
|
|
7917
7923
|
const y = d.logo;
|
|
7918
|
-
this.addControl(new
|
|
7919
|
-
} else t.maptilerLogo && this.addControl(new
|
|
7924
|
+
this.addControl(new Pr({ logoURL: y }), t.logoPosition);
|
|
7925
|
+
} else t.maptilerLogo && this.addControl(new Pr(), t.logoPosition);
|
|
7920
7926
|
if (t.scaleControl) {
|
|
7921
|
-
const y = t.scaleControl === !0 || t.scaleControl === void 0 ? "bottom-right" : t.scaleControl, b = new
|
|
7922
|
-
this.addControl(b, y),
|
|
7927
|
+
const y = t.scaleControl === !0 || t.scaleControl === void 0 ? "bottom-right" : t.scaleControl, b = new fo({ unit: U.unit });
|
|
7928
|
+
this.addControl(b, y), U.on("unit", (w) => {
|
|
7923
7929
|
b.setUnit(w);
|
|
7924
7930
|
});
|
|
7925
7931
|
}
|
|
7926
7932
|
if (t.navigationControl !== !1) {
|
|
7927
7933
|
const y = t.navigationControl === !0 || t.navigationControl === void 0 ? "top-right" : t.navigationControl;
|
|
7928
|
-
this.addControl(new
|
|
7934
|
+
this.addControl(new As(), y);
|
|
7929
7935
|
}
|
|
7930
7936
|
if (t.geolocateControl !== !1) {
|
|
7931
7937
|
const y = t.geolocateControl === !0 || t.geolocateControl === void 0 ? "top-right" : t.geolocateControl;
|
|
7932
7938
|
this.addControl(
|
|
7933
7939
|
// new maplibregl.GeolocateControl({
|
|
7934
|
-
new
|
|
7940
|
+
new Es({
|
|
7935
7941
|
positionOptions: {
|
|
7936
7942
|
enableHighAccuracy: !0,
|
|
7937
7943
|
maximumAge: 0,
|
|
@@ -7949,11 +7955,11 @@ class _s extends x.Map {
|
|
|
7949
7955
|
}
|
|
7950
7956
|
if (t.terrainControl) {
|
|
7951
7957
|
const y = t.terrainControl === !0 || t.terrainControl === void 0 ? "top-right" : t.terrainControl;
|
|
7952
|
-
this.addControl(new
|
|
7958
|
+
this.addControl(new Ls(), y);
|
|
7953
7959
|
}
|
|
7954
7960
|
if (t.fullscreenControl) {
|
|
7955
7961
|
const y = t.fullscreenControl === !0 || t.fullscreenControl === void 0 ? "top-right" : t.fullscreenControl;
|
|
7956
|
-
this.addControl(new
|
|
7962
|
+
this.addControl(new yo({}), y);
|
|
7957
7963
|
}
|
|
7958
7964
|
this.isReady = !0, this.fire("ready", { target: this });
|
|
7959
7965
|
});
|
|
@@ -7976,15 +7982,15 @@ class _s extends x.Map {
|
|
|
7976
7982
|
scrollZoom: Oe,
|
|
7977
7983
|
minZoom: Xe,
|
|
7978
7984
|
maxZoom: Qe,
|
|
7979
|
-
boxZoom:
|
|
7980
|
-
locale:
|
|
7981
|
-
fadeDuration:
|
|
7982
|
-
crossSourceCollisions:
|
|
7983
|
-
clickTolerance:
|
|
7984
|
-
bounds:
|
|
7985
|
-
fitBoundsOptions:
|
|
7986
|
-
pixelRatio:
|
|
7987
|
-
validateStyle:
|
|
7985
|
+
boxZoom: ya,
|
|
7986
|
+
locale: ma,
|
|
7987
|
+
fadeDuration: ha,
|
|
7988
|
+
crossSourceCollisions: ga,
|
|
7989
|
+
clickTolerance: va,
|
|
7990
|
+
bounds: ba,
|
|
7991
|
+
fitBoundsOptions: wa,
|
|
7992
|
+
pixelRatio: xa,
|
|
7993
|
+
validateStyle: Sa
|
|
7988
7994
|
} = t;
|
|
7989
7995
|
this.minimap = new Bt(d, {
|
|
7990
7996
|
zoom: y,
|
|
@@ -8000,15 +8006,15 @@ class _s extends x.Map {
|
|
|
8000
8006
|
scrollZoom: Oe,
|
|
8001
8007
|
minZoom: Xe,
|
|
8002
8008
|
maxZoom: Qe,
|
|
8003
|
-
boxZoom:
|
|
8004
|
-
locale:
|
|
8005
|
-
fadeDuration:
|
|
8006
|
-
crossSourceCollisions:
|
|
8007
|
-
clickTolerance:
|
|
8008
|
-
bounds:
|
|
8009
|
-
fitBoundsOptions:
|
|
8010
|
-
pixelRatio:
|
|
8011
|
-
validateStyle:
|
|
8009
|
+
boxZoom: ya,
|
|
8010
|
+
locale: ma,
|
|
8011
|
+
fadeDuration: ha,
|
|
8012
|
+
crossSourceCollisions: ga,
|
|
8013
|
+
clickTolerance: va,
|
|
8014
|
+
bounds: ba,
|
|
8015
|
+
fitBoundsOptions: wa,
|
|
8016
|
+
pixelRatio: xa,
|
|
8017
|
+
validateStyle: Sa
|
|
8012
8018
|
}), this.addControl(this.minimap, d.position ?? "bottom-left");
|
|
8013
8019
|
} else d === !0 ? (this.minimap = new Bt({}, t), this.addControl(this.minimap, "bottom-left")) : d !== void 0 && d !== !1 && (this.minimap = new Bt({}, t), this.addControl(this.minimap, d));
|
|
8014
8020
|
});
|
|
@@ -8021,7 +8027,7 @@ class _s extends x.Map {
|
|
|
8021
8027
|
};
|
|
8022
8028
|
this.on("terrain", f), t.terrain && this.enableTerrain(t.terrainExaggeration ?? this.terrainExaggeration), this.once("load", () => {
|
|
8023
8029
|
this.getCanvas().addEventListener("webglcontextlost", (d) => {
|
|
8024
|
-
console.warn(d),
|
|
8030
|
+
console.warn(d), lo(t.container), this.fire("webglContextLost", { error: d });
|
|
8025
8031
|
});
|
|
8026
8032
|
});
|
|
8027
8033
|
}
|
|
@@ -8097,7 +8103,7 @@ class _s extends x.Map {
|
|
|
8097
8103
|
(o = this.minimap) == null || o.setStyle(t), this.forceLanguageUpdate = !0, this.once("idle", () => {
|
|
8098
8104
|
this.forceLanguageUpdate = !1;
|
|
8099
8105
|
});
|
|
8100
|
-
const a =
|
|
8106
|
+
const a = en(t);
|
|
8101
8107
|
if (a.requiresUrlMonitoring && this.monitorStyleUrl(a.style), a.isFallback) {
|
|
8102
8108
|
if (this.getStyle())
|
|
8103
8109
|
return console.warn(
|
|
@@ -8263,7 +8269,7 @@ class _s extends x.Map {
|
|
|
8263
8269
|
* Define the primary language of the map. Note that not all the languages shorthands provided are available.
|
|
8264
8270
|
*/
|
|
8265
8271
|
setPrimaryLanguage(t) {
|
|
8266
|
-
const n = this.getStyleLanguage(), a =
|
|
8272
|
+
const n = this.getStyleLanguage(), a = Tr(t, I);
|
|
8267
8273
|
if (!a) {
|
|
8268
8274
|
console.warn(`The language "${a}" is not supported.`);
|
|
8269
8275
|
return;
|
|
@@ -8286,7 +8292,7 @@ class _s extends x.Map {
|
|
|
8286
8292
|
o = n;
|
|
8287
8293
|
}
|
|
8288
8294
|
let i = I.LOCAL.flag, s = `{${i}}`;
|
|
8289
|
-
o.flag === I.VISITOR.flag ? (i =
|
|
8295
|
+
o.flag === I.VISITOR.flag ? (i = Ir().flag, s = [
|
|
8290
8296
|
"case",
|
|
8291
8297
|
["all", ["has", i], ["has", I.LOCAL.flag]],
|
|
8292
8298
|
[
|
|
@@ -8322,7 +8328,7 @@ class _s extends x.Map {
|
|
|
8322
8328
|
]
|
|
8323
8329
|
],
|
|
8324
8330
|
["get", I.LOCAL.flag]
|
|
8325
|
-
]) : o.flag === I.AUTO.flag ? (i =
|
|
8331
|
+
]) : o.flag === I.AUTO.flag ? (i = Ir().flag, s = ["case", ["has", i], ["get", i], ["get", I.LOCAL.flag]]) : o === I.LOCAL ? (i = I.LOCAL.flag, s = `{${i}}`) : (i = o.flag, s = ["case", ["has", i], ["get", i], ["get", I.LOCAL.flag]]);
|
|
8326
8332
|
const { layers: l } = this.getStyle();
|
|
8327
8333
|
for (const u of l) {
|
|
8328
8334
|
if (u.type !== "symbol")
|
|
@@ -8441,14 +8447,14 @@ class _s extends x.Map {
|
|
|
8441
8447
|
});
|
|
8442
8448
|
}
|
|
8443
8449
|
async fitToIpBounds() {
|
|
8444
|
-
const t = await
|
|
8450
|
+
const t = await Er.info();
|
|
8445
8451
|
this.fitBounds(t.country_bounds, {
|
|
8446
8452
|
duration: 0,
|
|
8447
8453
|
padding: 100
|
|
8448
8454
|
});
|
|
8449
8455
|
}
|
|
8450
8456
|
async centerOnIpPoint(t) {
|
|
8451
|
-
const n = await
|
|
8457
|
+
const n = await Er.info();
|
|
8452
8458
|
this.jumpTo({
|
|
8453
8459
|
center: [(n == null ? void 0 : n.longitude) ?? 0, (n == null ? void 0 : n.latitude) ?? 0],
|
|
8454
8460
|
zoom: t || 11
|
|
@@ -8456,7 +8462,7 @@ class _s extends x.Map {
|
|
|
8456
8462
|
}
|
|
8457
8463
|
getCameraHash() {
|
|
8458
8464
|
const t = new Float32Array(5), n = this.getCenter();
|
|
8459
|
-
return t[0] = n.lng, t[1] = n.lat, t[2] = this.getZoom(), t[3] = this.getPitch(), t[4] = this.getBearing(),
|
|
8465
|
+
return t[0] = n.lng, t[1] = n.lat, t[2] = this.getZoom(), t[3] = this.getPitch(), t[4] = this.getBearing(), za.fromUint8Array(new Uint8Array(t.buffer));
|
|
8460
8466
|
}
|
|
8461
8467
|
/**
|
|
8462
8468
|
* Get the SDK config object.
|
|
@@ -8464,7 +8470,7 @@ class _s extends x.Map {
|
|
|
8464
8470
|
* that do not directly have access to the SDK configuration but do have access to a Map instance.
|
|
8465
8471
|
*/
|
|
8466
8472
|
getSdkConfig() {
|
|
8467
|
-
return
|
|
8473
|
+
return U;
|
|
8468
8474
|
}
|
|
8469
8475
|
/**
|
|
8470
8476
|
* Get the MapTiler session ID. Convenient to dispatch to externaly built component
|
|
@@ -8472,7 +8478,7 @@ class _s extends x.Map {
|
|
|
8472
8478
|
* @returns
|
|
8473
8479
|
*/
|
|
8474
8480
|
getMaptilerSessionId() {
|
|
8475
|
-
return
|
|
8481
|
+
return yn;
|
|
8476
8482
|
}
|
|
8477
8483
|
/**
|
|
8478
8484
|
* Updates the requestManager's transform request with a new function.
|
|
@@ -8486,7 +8492,7 @@ class _s extends x.Map {
|
|
|
8486
8492
|
* map.setTransformRequest((url: string, resourceType: string) => {});
|
|
8487
8493
|
*/
|
|
8488
8494
|
setTransformRequest(t) {
|
|
8489
|
-
return super.setTransformRequest(
|
|
8495
|
+
return super.setTransformRequest($r(t)), this;
|
|
8490
8496
|
}
|
|
8491
8497
|
}
|
|
8492
8498
|
function Sr(r) {
|
|
@@ -8498,7 +8504,7 @@ function Sr(r) {
|
|
|
8498
8504
|
}
|
|
8499
8505
|
throw new Error("No XML parser found");
|
|
8500
8506
|
}
|
|
8501
|
-
function
|
|
8507
|
+
function aa(r, e) {
|
|
8502
8508
|
if (!r.hasChildNodes())
|
|
8503
8509
|
return !1;
|
|
8504
8510
|
for (const t of Array.from(r.childNodes)) {
|
|
@@ -8508,71 +8514,71 @@ function na(r, e) {
|
|
|
8508
8514
|
}
|
|
8509
8515
|
return !1;
|
|
8510
8516
|
}
|
|
8511
|
-
function
|
|
8517
|
+
function nn(r) {
|
|
8512
8518
|
if (typeof XMLSerializer < "u")
|
|
8513
8519
|
return new XMLSerializer().serializeToString(r);
|
|
8514
8520
|
throw new Error("No XML serializer found");
|
|
8515
8521
|
}
|
|
8516
|
-
function
|
|
8522
|
+
function oa(r) {
|
|
8517
8523
|
const e = typeof r == "string" ? Sr(r) : r;
|
|
8518
|
-
if (!
|
|
8524
|
+
if (!aa(e, "gpx"))
|
|
8519
8525
|
throw new Error("The XML document is not valid GPX");
|
|
8520
|
-
const t =
|
|
8526
|
+
const t = B(e, "trk"), n = B(e, "rte"), a = B(e, "wpt"), o = {
|
|
8521
8527
|
type: "FeatureCollection",
|
|
8522
8528
|
features: []
|
|
8523
8529
|
};
|
|
8524
8530
|
for (const i of Array.from(t)) {
|
|
8525
|
-
const s =
|
|
8531
|
+
const s = Ps(i);
|
|
8526
8532
|
s && o.features.push(s);
|
|
8527
8533
|
}
|
|
8528
8534
|
for (const i of Array.from(n)) {
|
|
8529
|
-
const s =
|
|
8535
|
+
const s = Rs(i);
|
|
8530
8536
|
s && o.features.push(s);
|
|
8531
8537
|
}
|
|
8532
8538
|
for (const i of Array.from(a))
|
|
8533
|
-
o.features.push(
|
|
8539
|
+
o.features.push(Fs(i));
|
|
8534
8540
|
return o;
|
|
8535
8541
|
}
|
|
8536
|
-
function
|
|
8542
|
+
function ia(r, e) {
|
|
8537
8543
|
let t = r;
|
|
8538
|
-
if (typeof t == "string" && (t = Sr(t)), !
|
|
8544
|
+
if (typeof t == "string" && (t = Sr(t)), !aa(t, "kml"))
|
|
8539
8545
|
throw new Error("The XML document is not valid KML");
|
|
8540
8546
|
const n = {
|
|
8541
8547
|
type: "FeatureCollection",
|
|
8542
8548
|
features: []
|
|
8543
|
-
}, a = {}, o = {}, i = {}, s =
|
|
8549
|
+
}, a = {}, o = {}, i = {}, s = B(t, "Placemark"), l = B(t, "Style"), u = B(t, "StyleMap");
|
|
8544
8550
|
for (const c of Array.from(l)) {
|
|
8545
|
-
const p =
|
|
8551
|
+
const p = on(e !== void 0 ? e(c) : nn(c)).toString(16);
|
|
8546
8552
|
a[`#${Le(c, "id")}`] = p, o[p] = c;
|
|
8547
8553
|
}
|
|
8548
8554
|
for (const c of Array.from(u)) {
|
|
8549
|
-
a[`#${Le(c, "id")}`] =
|
|
8550
|
-
e !== void 0 ? e(c) :
|
|
8555
|
+
a[`#${Le(c, "id")}`] = on(
|
|
8556
|
+
e !== void 0 ? e(c) : nn(c)
|
|
8551
8557
|
).toString(16);
|
|
8552
|
-
const p =
|
|
8558
|
+
const p = B(c, "Pair"), m = {};
|
|
8553
8559
|
for (const f of Array.from(p))
|
|
8554
8560
|
m[z(k(f, "key")) ?? ""] = z(k(f, "styleUrl"));
|
|
8555
8561
|
i[`#${Le(c, "id")}`] = m;
|
|
8556
8562
|
}
|
|
8557
8563
|
for (const c of Array.from(s))
|
|
8558
|
-
n.features = n.features.concat(
|
|
8564
|
+
n.features = n.features.concat($s(c, a, o, i));
|
|
8559
8565
|
return n;
|
|
8560
8566
|
}
|
|
8561
|
-
function
|
|
8567
|
+
function an(r) {
|
|
8562
8568
|
if (r === null) return ["#000000", 1];
|
|
8563
8569
|
let e = "", t = 1, n = r;
|
|
8564
8570
|
return n.substring(0, 1) === "#" && (n = n.substring(1)), (n.length === 6 || n.length === 3) && (e = n), n.length === 8 && (t = Number.parseInt(n.substring(0, 2), 16) / 255, e = `#${n.substring(6, 8)}${n.substring(4, 6)}${n.substring(2, 4)}`), [e ?? "#000000", t ?? 1];
|
|
8565
8571
|
}
|
|
8566
|
-
function
|
|
8567
|
-
return
|
|
8572
|
+
function _s(r) {
|
|
8573
|
+
return ua(r.split(" "));
|
|
8568
8574
|
}
|
|
8569
|
-
function
|
|
8570
|
-
let e =
|
|
8575
|
+
function zs(r) {
|
|
8576
|
+
let e = B(r, "coord");
|
|
8571
8577
|
const t = [], n = [];
|
|
8572
|
-
e.length === 0 && (e =
|
|
8578
|
+
e.length === 0 && (e = B(r, "gx:coord"));
|
|
8573
8579
|
for (const o of Array.from(e))
|
|
8574
|
-
t.push(
|
|
8575
|
-
const a =
|
|
8580
|
+
t.push(_s(z(o) ?? ""));
|
|
8581
|
+
const a = B(r, "when");
|
|
8576
8582
|
for (const o of Array.from(a)) n.push(z(o));
|
|
8577
8583
|
return {
|
|
8578
8584
|
coords: t,
|
|
@@ -8590,28 +8596,28 @@ function ot(r) {
|
|
|
8590
8596
|
if (k(r, "gx:MultiTrack") !== null)
|
|
8591
8597
|
return ot(k(r, "gx:MultiTrack"));
|
|
8592
8598
|
for (a = 0; a < e.length; a++)
|
|
8593
|
-
if (n =
|
|
8599
|
+
if (n = B(r, e[a]), n) {
|
|
8594
8600
|
for (o = 0; o < n.length; o++)
|
|
8595
8601
|
if (t = n[o], e[a] === "Point")
|
|
8596
8602
|
s.push({
|
|
8597
8603
|
type: "Point",
|
|
8598
|
-
coordinates:
|
|
8604
|
+
coordinates: ca(z(k(t, "coordinates")) ?? "")
|
|
8599
8605
|
});
|
|
8600
8606
|
else if (e[a] === "LineString")
|
|
8601
8607
|
s.push({
|
|
8602
8608
|
type: "LineString",
|
|
8603
|
-
coordinates:
|
|
8609
|
+
coordinates: ln(z(k(t, "coordinates")) ?? "")
|
|
8604
8610
|
});
|
|
8605
8611
|
else if (e[a] === "Polygon") {
|
|
8606
|
-
const u =
|
|
8612
|
+
const u = B(t, "LinearRing"), c = [];
|
|
8607
8613
|
for (i = 0; i < u.length; i++)
|
|
8608
|
-
c.push(
|
|
8614
|
+
c.push(ln(z(k(u[i], "coordinates")) ?? ""));
|
|
8609
8615
|
s.push({
|
|
8610
8616
|
type: "Polygon",
|
|
8611
8617
|
coordinates: c
|
|
8612
8618
|
});
|
|
8613
8619
|
} else if (e[a] === "Track" || e[a] === "gx:Track") {
|
|
8614
|
-
const u =
|
|
8620
|
+
const u = zs(t);
|
|
8615
8621
|
s.push({
|
|
8616
8622
|
type: "LineString",
|
|
8617
8623
|
coordinates: u.coords
|
|
@@ -8620,7 +8626,7 @@ function ot(r) {
|
|
|
8620
8626
|
}
|
|
8621
8627
|
return { geoms: s, coordTimes: l };
|
|
8622
8628
|
}
|
|
8623
|
-
function
|
|
8629
|
+
function $s(r, e, t, n) {
|
|
8624
8630
|
const a = ot(r), o = {}, i = z(k(r, "name")), s = z(k(r, "address")), l = z(k(r, "description")), u = k(r, "TimeSpan"), c = k(r, "TimeStamp"), p = k(r, "ExtendedData"), m = k(r, "visibility");
|
|
8625
8631
|
let f, d = z(k(r, "styleUrl")), y = k(r, "LineStyle"), b = k(r, "PolyStyle");
|
|
8626
8632
|
if (!a.geoms.length) return [];
|
|
@@ -8644,15 +8650,15 @@ function Ps(r, e, t, n) {
|
|
|
8644
8650
|
v && E && (o.timespan = { begin: v, end: E });
|
|
8645
8651
|
}
|
|
8646
8652
|
if (c !== null && (o.timestamp = z(k(c, "when")) ?? (/* @__PURE__ */ new Date()).toISOString()), y !== null) {
|
|
8647
|
-
const v =
|
|
8653
|
+
const v = an(z(k(y, "color"))), E = v[0], R = v[1], P = Number.parseFloat(z(k(y, "width")) ?? "");
|
|
8648
8654
|
E && (o.stroke = E), Number.isNaN(R) || (o["stroke-opacity"] = R), Number.isNaN(P) || (o["stroke-width"] = P);
|
|
8649
8655
|
}
|
|
8650
8656
|
if (b) {
|
|
8651
|
-
const v =
|
|
8657
|
+
const v = an(z(k(b, "color"))), E = v[0], R = v[1], P = z(k(b, "fill")), te = z(k(b, "outline"));
|
|
8652
8658
|
E && (o.fill = E), Number.isNaN(R) || (o["fill-opacity"] = R), P && (o["fill-opacity"] = P === "1" ? o["fill-opacity"] || 1 : 0), te && (o["stroke-opacity"] = te === "1" ? o["stroke-opacity"] || 1 : 0);
|
|
8653
8659
|
}
|
|
8654
8660
|
if (p) {
|
|
8655
|
-
const v =
|
|
8661
|
+
const v = B(p, "Data"), E = B(p, "SimpleData");
|
|
8656
8662
|
for (f = 0; f < v.length; f++)
|
|
8657
8663
|
o[v[f].getAttribute("name") ?? ""] = z(k(v[f], "value")) ?? "";
|
|
8658
8664
|
for (f = 0; f < E.length; f++)
|
|
@@ -8669,13 +8675,13 @@ function Ps(r, e, t, n) {
|
|
|
8669
8675
|
};
|
|
8670
8676
|
return Le(r, "id") && (w.id = Le(r, "id") ?? void 0), [w];
|
|
8671
8677
|
}
|
|
8672
|
-
function
|
|
8673
|
-
const t =
|
|
8678
|
+
function sa(r, e) {
|
|
8679
|
+
const t = B(r, e), n = [], a = [];
|
|
8674
8680
|
let o = [];
|
|
8675
8681
|
const i = t.length;
|
|
8676
8682
|
if (!(i < 2)) {
|
|
8677
8683
|
for (let s = 0; s < i; s++) {
|
|
8678
|
-
const l =
|
|
8684
|
+
const l = pa(t[s]);
|
|
8679
8685
|
n.push(l.coordinates), l.time && a.push(l.time), (l.heartRate || o.length) && (o.length === 0 && (o = new Array(s).fill(null)), o.push(l.heartRate));
|
|
8680
8686
|
}
|
|
8681
8687
|
return {
|
|
@@ -8685,11 +8691,11 @@ function ia(r, e) {
|
|
|
8685
8691
|
};
|
|
8686
8692
|
}
|
|
8687
8693
|
}
|
|
8688
|
-
function
|
|
8689
|
-
const e =
|
|
8694
|
+
function Ps(r) {
|
|
8695
|
+
const e = B(r, "trkseg"), t = [], n = [], a = [];
|
|
8690
8696
|
let o;
|
|
8691
8697
|
for (let s = 0; s < e.length; s++)
|
|
8692
|
-
if (o =
|
|
8698
|
+
if (o = sa(e[s], "trkpt"), o !== void 0 && (o.line && t.push(o.line), o.times && o.times.length && n.push(o.times), a.length || o.heartRates && o.heartRates.length)) {
|
|
8693
8699
|
if (!a.length)
|
|
8694
8700
|
for (let l = 0; l < s; l++)
|
|
8695
8701
|
a.push(new Array(t[l].length).fill(null));
|
|
@@ -8698,7 +8704,7 @@ function Rs(r) {
|
|
|
8698
8704
|
if (t.length === 0) return;
|
|
8699
8705
|
const i = {
|
|
8700
8706
|
...kr(r),
|
|
8701
|
-
...
|
|
8707
|
+
...la(k(r, "extensions"))
|
|
8702
8708
|
};
|
|
8703
8709
|
return n.length !== 0 && (i.coordTimes = t.length === 1 ? n[0] : n), a.length !== 0 && (i.heartRates = t.length === 1 ? a[0] : a), t.length === 1 ? {
|
|
8704
8710
|
type: "Feature",
|
|
@@ -8716,13 +8722,13 @@ function Rs(r) {
|
|
|
8716
8722
|
}
|
|
8717
8723
|
};
|
|
8718
8724
|
}
|
|
8719
|
-
function
|
|
8720
|
-
const e =
|
|
8725
|
+
function Rs(r) {
|
|
8726
|
+
const e = sa(r, "rtept");
|
|
8721
8727
|
return e === void 0 ? void 0 : {
|
|
8722
8728
|
type: "Feature",
|
|
8723
8729
|
properties: {
|
|
8724
8730
|
...kr(r),
|
|
8725
|
-
...
|
|
8731
|
+
...la(k(r, "extensions"))
|
|
8726
8732
|
},
|
|
8727
8733
|
geometry: {
|
|
8728
8734
|
type: "LineString",
|
|
@@ -8730,17 +8736,17 @@ function Fs(r) {
|
|
|
8730
8736
|
}
|
|
8731
8737
|
};
|
|
8732
8738
|
}
|
|
8733
|
-
function
|
|
8739
|
+
function Fs(r) {
|
|
8734
8740
|
return {
|
|
8735
8741
|
type: "Feature",
|
|
8736
8742
|
properties: { ...kr(r), ...er(r, ["sym"]) },
|
|
8737
8743
|
geometry: {
|
|
8738
8744
|
type: "Point",
|
|
8739
|
-
coordinates:
|
|
8745
|
+
coordinates: pa(r).coordinates
|
|
8740
8746
|
}
|
|
8741
8747
|
};
|
|
8742
8748
|
}
|
|
8743
|
-
function
|
|
8749
|
+
function la(r) {
|
|
8744
8750
|
const e = {};
|
|
8745
8751
|
if (r) {
|
|
8746
8752
|
const t = k(r, "line");
|
|
@@ -8759,7 +8765,7 @@ function kr(r) {
|
|
|
8759
8765
|
"type",
|
|
8760
8766
|
"time",
|
|
8761
8767
|
"keywords"
|
|
8762
|
-
]), t =
|
|
8768
|
+
]), t = B(r, "link");
|
|
8763
8769
|
if (t.length !== 0) {
|
|
8764
8770
|
e.links = [];
|
|
8765
8771
|
for (const n of Array.from(t)) {
|
|
@@ -8772,34 +8778,34 @@ function kr(r) {
|
|
|
8772
8778
|
}
|
|
8773
8779
|
return e;
|
|
8774
8780
|
}
|
|
8775
|
-
function
|
|
8781
|
+
function on(r) {
|
|
8776
8782
|
let e = 0;
|
|
8777
8783
|
if (!r || !r.length) return e;
|
|
8778
8784
|
for (let t = 0; t < r.length; t++)
|
|
8779
8785
|
e = (e << 5) - e + r.charCodeAt(t) | 0;
|
|
8780
8786
|
return e;
|
|
8781
8787
|
}
|
|
8782
|
-
function
|
|
8788
|
+
function B(r, e) {
|
|
8783
8789
|
return r.getElementsByTagName(e);
|
|
8784
8790
|
}
|
|
8785
8791
|
function Le(r, e) {
|
|
8786
8792
|
return r.getAttribute(e);
|
|
8787
8793
|
}
|
|
8788
|
-
function
|
|
8794
|
+
function sn(r, e) {
|
|
8789
8795
|
return Number.parseFloat(Le(r, e) ?? "0");
|
|
8790
8796
|
}
|
|
8791
8797
|
function k(r, e) {
|
|
8792
|
-
const t =
|
|
8798
|
+
const t = B(r, e);
|
|
8793
8799
|
return t.length ? t[0] : null;
|
|
8794
8800
|
}
|
|
8795
|
-
function
|
|
8801
|
+
function Ns(r) {
|
|
8796
8802
|
return r.normalize && r.normalize(), r;
|
|
8797
8803
|
}
|
|
8798
|
-
function
|
|
8804
|
+
function ua(r) {
|
|
8799
8805
|
return r.map(Number.parseFloat).map((e) => Number.isNaN(e) ? null : e);
|
|
8800
8806
|
}
|
|
8801
8807
|
function z(r) {
|
|
8802
|
-
return r &&
|
|
8808
|
+
return r && Ns(r), r && r.textContent;
|
|
8803
8809
|
}
|
|
8804
8810
|
function er(r, e) {
|
|
8805
8811
|
const t = {};
|
|
@@ -8808,16 +8814,16 @@ function er(r, e) {
|
|
|
8808
8814
|
n = k(r, e[a]), n && (t[e[a]] = z(n) ?? "");
|
|
8809
8815
|
return t;
|
|
8810
8816
|
}
|
|
8811
|
-
function
|
|
8812
|
-
return
|
|
8817
|
+
function ca(r) {
|
|
8818
|
+
return ua(r.replace(/\s*/g, "").split(","));
|
|
8813
8819
|
}
|
|
8814
|
-
function
|
|
8820
|
+
function ln(r) {
|
|
8815
8821
|
const e = r.replace(/^\s*|\s*$/g, "").split(/\s+/), t = [];
|
|
8816
|
-
for (const n of e) t.push(
|
|
8822
|
+
for (const n of e) t.push(ca(n));
|
|
8817
8823
|
return t;
|
|
8818
8824
|
}
|
|
8819
|
-
function
|
|
8820
|
-
const e = [
|
|
8825
|
+
function pa(r) {
|
|
8826
|
+
const e = [sn(r, "lon"), sn(r, "lat")], t = k(r, "ele"), n = k(r, "gpxtpx:hr") || k(r, "hr"), a = k(r, "time");
|
|
8821
8827
|
let o;
|
|
8822
8828
|
return t && (o = Number.parseFloat(z(t) ?? "0"), Number.isNaN(o) || e.push(o)), {
|
|
8823
8829
|
coordinates: e,
|
|
@@ -8825,7 +8831,7 @@ function ca(r) {
|
|
|
8825
8831
|
heartRate: n !== null ? Number.parseFloat(z(n) ?? "0") : null
|
|
8826
8832
|
};
|
|
8827
8833
|
}
|
|
8828
|
-
function
|
|
8834
|
+
function Os(r) {
|
|
8829
8835
|
let e = r;
|
|
8830
8836
|
try {
|
|
8831
8837
|
typeof e == "string" && (e = Sr(e));
|
|
@@ -8833,11 +8839,11 @@ function Ds(r) {
|
|
|
8833
8839
|
return null;
|
|
8834
8840
|
}
|
|
8835
8841
|
try {
|
|
8836
|
-
return
|
|
8842
|
+
return oa(e);
|
|
8837
8843
|
} catch {
|
|
8838
8844
|
}
|
|
8839
8845
|
try {
|
|
8840
|
-
return
|
|
8846
|
+
return ia(e);
|
|
8841
8847
|
} catch {
|
|
8842
8848
|
}
|
|
8843
8849
|
return null;
|
|
@@ -8846,7 +8852,7 @@ function nt(r) {
|
|
|
8846
8852
|
const e = r.toString(16);
|
|
8847
8853
|
return e.length === 1 ? `0${e}` : e;
|
|
8848
8854
|
}
|
|
8849
|
-
function
|
|
8855
|
+
function Ds(r) {
|
|
8850
8856
|
return `#${nt(r[0])}${nt(r[1])}${nt(r[2])}${r.length === 4 ? nt(r[3]) : ""}`;
|
|
8851
8857
|
}
|
|
8852
8858
|
class S extends Array {
|
|
@@ -8942,7 +8948,7 @@ class S extends Array {
|
|
|
8942
8948
|
smooth: !0,
|
|
8943
8949
|
withAlpha: !1
|
|
8944
8950
|
}) {
|
|
8945
|
-
return
|
|
8951
|
+
return Ds(this.getColor(t, n));
|
|
8946
8952
|
}
|
|
8947
8953
|
/**
|
|
8948
8954
|
* Get the color of the color ramp at a relative position in [0, 1]
|
|
@@ -9029,7 +9035,7 @@ class S extends Array {
|
|
|
9029
9035
|
return this[0].color.length === 4 && this[0].color[3] === 0;
|
|
9030
9036
|
}
|
|
9031
9037
|
}
|
|
9032
|
-
const
|
|
9038
|
+
const fa = {
|
|
9033
9039
|
/**
|
|
9034
9040
|
* A fully transparent [0, 0, 0, 0] colorramp to hide data.
|
|
9035
9041
|
* Defined in interval [0, 1], without unit.
|
|
@@ -9785,8 +9791,8 @@ const pa = {
|
|
|
9785
9791
|
]
|
|
9786
9792
|
})
|
|
9787
9793
|
};
|
|
9788
|
-
async function
|
|
9789
|
-
const t = e.download ?? !1, n = await
|
|
9794
|
+
async function js(r, e = {}) {
|
|
9795
|
+
const t = e.download ?? !1, n = await qs(r);
|
|
9790
9796
|
if (t) {
|
|
9791
9797
|
const a = e.filename ?? "maptiler_screenshot.png", o = document.createElement("a");
|
|
9792
9798
|
o.style.display = "none", document.body.appendChild(o), o.href = URL.createObjectURL(n), o.download = a, o.click(), setTimeout(() => {
|
|
@@ -9795,7 +9801,7 @@ async function qs(r, e = {}) {
|
|
|
9795
9801
|
}
|
|
9796
9802
|
return n;
|
|
9797
9803
|
}
|
|
9798
|
-
function
|
|
9804
|
+
function qs(r) {
|
|
9799
9805
|
return new Promise((e, t) => {
|
|
9800
9806
|
r.redraw(), r.once("idle", () => {
|
|
9801
9807
|
r.getCanvas().toBlob((n) => {
|
|
@@ -9806,7 +9812,7 @@ function Us(r) {
|
|
|
9806
9812
|
});
|
|
9807
9813
|
});
|
|
9808
9814
|
}
|
|
9809
|
-
const
|
|
9815
|
+
const un = [
|
|
9810
9816
|
// https://colorhunt.co/palette/1d5b79468b97ef6262f3aa60
|
|
9811
9817
|
["#1D5B79", "#468B97", "#EF6262", "#F3AA60"],
|
|
9812
9818
|
// https://colorhunt.co/palette/614bc333bbc585e6c5c8ffe0
|
|
@@ -9827,15 +9833,15 @@ const ln = [
|
|
|
9827
9833
|
["#10A19D", "#540375", "#FF7000", "#FFBF00"]
|
|
9828
9834
|
];
|
|
9829
9835
|
function Cr() {
|
|
9830
|
-
return
|
|
9836
|
+
return un[~~(Math.random() * un.length)][~~(Math.random() * 4)];
|
|
9831
9837
|
}
|
|
9832
9838
|
function It() {
|
|
9833
|
-
return `maptiler_source_${
|
|
9839
|
+
return `maptiler_source_${gn()}`;
|
|
9834
9840
|
}
|
|
9835
9841
|
function Mt() {
|
|
9836
|
-
return `maptiler_layer_${
|
|
9842
|
+
return `maptiler_layer_${gn()}`;
|
|
9837
9843
|
}
|
|
9838
|
-
function
|
|
9844
|
+
function cn(r, e) {
|
|
9839
9845
|
if (e <= r[0].zoom)
|
|
9840
9846
|
return r[0].value;
|
|
9841
9847
|
if (e >= r[r.length - 1].zoom)
|
|
@@ -9853,7 +9859,7 @@ function Ae(r) {
|
|
|
9853
9859
|
function $(r) {
|
|
9854
9860
|
return ["interpolate", ["linear"], ["zoom"], ...r.flatMap((e) => [e.zoom, e.value])];
|
|
9855
9861
|
}
|
|
9856
|
-
function
|
|
9862
|
+
function Us(r, e) {
|
|
9857
9863
|
if (typeof e == "number" && typeof r == "number")
|
|
9858
9864
|
return 2 * e + r;
|
|
9859
9865
|
if (typeof e == "number" && Array.isArray(r))
|
|
@@ -9868,15 +9874,15 @@ function Bs(r, e) {
|
|
|
9868
9874
|
"interpolate",
|
|
9869
9875
|
["linear"],
|
|
9870
9876
|
["zoom"],
|
|
9871
|
-
...t.flatMap((n) => [n, 2 *
|
|
9877
|
+
...t.flatMap((n) => [n, 2 * cn(e, n) + cn(r, n)])
|
|
9872
9878
|
];
|
|
9873
9879
|
}
|
|
9874
9880
|
return 0;
|
|
9875
9881
|
}
|
|
9876
|
-
function
|
|
9882
|
+
function Bs(r, e) {
|
|
9877
9883
|
return ["interpolate", ["linear"], ["get", e], ...r.flatMap((t) => [t.propertyValue, t.value])];
|
|
9878
9884
|
}
|
|
9879
|
-
function
|
|
9885
|
+
function da(r) {
|
|
9880
9886
|
const e = r.trimStart(), t = `${e}${" ".repeat(r.length - e.length)}`, n = Array.from(t);
|
|
9881
9887
|
if (!n.every((s) => s === " " || s === "_"))
|
|
9882
9888
|
throw new Error("A dash pattern must be composed only of whitespace and underscore characters.");
|
|
@@ -9889,10 +9895,10 @@ function fa(r) {
|
|
|
9889
9895
|
}
|
|
9890
9896
|
return i;
|
|
9891
9897
|
}
|
|
9892
|
-
function
|
|
9898
|
+
function pn(r, e) {
|
|
9893
9899
|
return ["interpolate", ["linear"], ["get", e], ...r.flatMap((t) => [t.value, t.color])];
|
|
9894
9900
|
}
|
|
9895
|
-
function
|
|
9901
|
+
function fn(r, e, t = !0) {
|
|
9896
9902
|
return t ? [
|
|
9897
9903
|
"interpolate",
|
|
9898
9904
|
["linear"],
|
|
@@ -9909,7 +9915,7 @@ function pn(r, e, t = !0) {
|
|
|
9909
9915
|
["interpolate", ["linear"], ["get", e], ...r.flatMap((n) => [n.value, n.pointRadius])]
|
|
9910
9916
|
] : ["interpolate", ["linear"], ["get", e], ...r.flatMap((n) => [n.value, n.pointRadius])];
|
|
9911
9917
|
}
|
|
9912
|
-
function
|
|
9918
|
+
function Vs(r, e, t = !0) {
|
|
9913
9919
|
return t ? [
|
|
9914
9920
|
"interpolate",
|
|
9915
9921
|
["linear"],
|
|
@@ -9926,7 +9932,7 @@ function Gs(r, e, t = !0) {
|
|
|
9926
9932
|
["interpolate", ["linear"], ["get", e], ...r.flatMap((n) => [n.propertyValue, n.value])]
|
|
9927
9933
|
] : ["interpolate", ["linear"], ["get", e], ...r.flatMap((n) => [n.propertyValue, n.value])];
|
|
9928
9934
|
}
|
|
9929
|
-
function
|
|
9935
|
+
function dn(r, e) {
|
|
9930
9936
|
return r.every((t) => t.color[3] === r[0].color[3]) ? r[0].color[3] ? r[0].color[3] / 255 : 1 : [
|
|
9931
9937
|
"interpolate",
|
|
9932
9938
|
["linear"],
|
|
@@ -9937,7 +9943,7 @@ function fn(r, e) {
|
|
|
9937
9943
|
})
|
|
9938
9944
|
];
|
|
9939
9945
|
}
|
|
9940
|
-
function
|
|
9946
|
+
function Gs(r, e = 10) {
|
|
9941
9947
|
return [
|
|
9942
9948
|
"interpolate",
|
|
9943
9949
|
["linear"],
|
|
@@ -9948,33 +9954,33 @@ function Hs(r, e = 10) {
|
|
|
9948
9954
|
}).flat()
|
|
9949
9955
|
];
|
|
9950
9956
|
}
|
|
9951
|
-
async function
|
|
9957
|
+
async function Hs(r, e, t = {}) {
|
|
9952
9958
|
var a, o;
|
|
9953
9959
|
if (!e.sourceId && !e.data)
|
|
9954
9960
|
throw new Error("Creating a polyline layer requires an existing .sourceId or a valid .data property");
|
|
9955
9961
|
let n = e.data;
|
|
9956
9962
|
if (typeof n == "string") {
|
|
9957
9963
|
if (mt(n))
|
|
9958
|
-
n = `https://api.maptiler.com/data/${e.data}/features.json?key=${
|
|
9964
|
+
n = `https://api.maptiler.com/data/${e.data}/features.json?key=${U.apiKey}`;
|
|
9959
9965
|
else if (((a = n.split(".").pop()) == null ? void 0 : a.toLowerCase().trim()) === "gpx") {
|
|
9960
9966
|
const s = await (await fetch(n, t)).text();
|
|
9961
|
-
n =
|
|
9967
|
+
n = oa(s);
|
|
9962
9968
|
} else if (((o = n.split(".").pop()) == null ? void 0 : o.toLowerCase().trim()) === "kml") {
|
|
9963
9969
|
const s = await (await fetch(n, t)).text();
|
|
9964
|
-
n =
|
|
9970
|
+
n = ia(s);
|
|
9965
9971
|
} else {
|
|
9966
|
-
const i =
|
|
9972
|
+
const i = oo(n) ?? Os(n);
|
|
9967
9973
|
i && (n = i);
|
|
9968
9974
|
}
|
|
9969
9975
|
if (!n)
|
|
9970
9976
|
throw new Error("Polyline data was provided as string but is incompatible with valid formats.");
|
|
9971
9977
|
}
|
|
9972
|
-
return
|
|
9978
|
+
return Ks(r, {
|
|
9973
9979
|
...e,
|
|
9974
9980
|
data: n
|
|
9975
9981
|
});
|
|
9976
9982
|
}
|
|
9977
|
-
function
|
|
9983
|
+
function Ks(r, e) {
|
|
9978
9984
|
if (e.layerId && r.getLayer(e.layerId))
|
|
9979
9985
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
9980
9986
|
const t = e.sourceId ?? It(), n = e.layerId ?? Mt(), a = {
|
|
@@ -9989,7 +9995,7 @@ function Zs(r, e) {
|
|
|
9989
9995
|
const o = e.lineWidth ?? 3, i = e.lineColor ?? Cr(), s = e.lineOpacity ?? 1, l = e.lineBlur ?? 0, u = e.lineGapWidth ?? 0;
|
|
9990
9996
|
let c = e.lineDashArray ?? null;
|
|
9991
9997
|
const p = e.outlineWidth ?? 1, m = e.outlineColor ?? "#FFFFFF", f = e.outlineOpacity ?? 1, d = e.outlineBlur ?? 0;
|
|
9992
|
-
if (typeof c == "string" && (c =
|
|
9998
|
+
if (typeof c == "string" && (c = da(c)), e.outline === !0) {
|
|
9993
9999
|
const y = `${n}_outline`;
|
|
9994
10000
|
a.polylineOutlineLayerId = y, r.addLayer(
|
|
9995
10001
|
{
|
|
@@ -10005,7 +10011,7 @@ function Zs(r, e) {
|
|
|
10005
10011
|
paint: {
|
|
10006
10012
|
"line-opacity": typeof f == "number" ? f : $(f),
|
|
10007
10013
|
"line-color": typeof m == "string" ? m : Ae(m),
|
|
10008
|
-
"line-width":
|
|
10014
|
+
"line-width": Us(o, p),
|
|
10009
10015
|
"line-blur": typeof d == "number" ? d : $(d)
|
|
10010
10016
|
}
|
|
10011
10017
|
},
|
|
@@ -10040,7 +10046,7 @@ function Zs(r, e) {
|
|
|
10040
10046
|
e.beforeId
|
|
10041
10047
|
), a;
|
|
10042
10048
|
}
|
|
10043
|
-
function
|
|
10049
|
+
function Zs(r, e) {
|
|
10044
10050
|
if (e.layerId && r.getLayer(e.layerId))
|
|
10045
10051
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
10046
10052
|
const t = e.sourceId ?? It(), n = e.layerId ?? Mt(), a = {
|
|
@@ -10050,14 +10056,14 @@ function Ws(r, e) {
|
|
|
10050
10056
|
};
|
|
10051
10057
|
if (e.data && !r.getSource(t)) {
|
|
10052
10058
|
let y = e.data;
|
|
10053
|
-
typeof y == "string" && mt(y) && (y = `https://api.maptiler.com/data/${y}/features.json?key=${
|
|
10059
|
+
typeof y == "string" && mt(y) && (y = `https://api.maptiler.com/data/${y}/features.json?key=${U.apiKey}`), r.addSource(t, {
|
|
10054
10060
|
type: "geojson",
|
|
10055
10061
|
data: y
|
|
10056
10062
|
});
|
|
10057
10063
|
}
|
|
10058
10064
|
let o = e.outlineDashArray ?? null;
|
|
10059
10065
|
const i = e.outlineWidth ?? 1, s = e.outlineColor ?? "#FFFFFF", l = e.outlineOpacity ?? 1, u = e.outlineBlur ?? 0, c = e.fillColor ?? Cr(), p = e.fillOpacity ?? 1, m = e.outlinePosition ?? "center", f = e.pattern ?? null;
|
|
10060
|
-
typeof o == "string" && (o =
|
|
10066
|
+
typeof o == "string" && (o = da(o));
|
|
10061
10067
|
const d = (y = null) => {
|
|
10062
10068
|
if (r.addLayer(
|
|
10063
10069
|
{
|
|
@@ -10121,13 +10127,13 @@ function Ws(r, e) {
|
|
|
10121
10127
|
r.addImage(f, y.data), d(f);
|
|
10122
10128
|
}).catch((y) => (console.error("Could not load the pattern image.", y.message), d())) : d(), a;
|
|
10123
10129
|
}
|
|
10124
|
-
function
|
|
10130
|
+
function Ws(r, e) {
|
|
10125
10131
|
if (e.layerId && r.getLayer(e.layerId))
|
|
10126
10132
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
10127
|
-
const t = e.minPointRadius ?? 10, n = e.maxPointRadius ?? 50, a = e.cluster ?? !1, o = 20, i = Array.isArray(e.pointColor) ? e.pointColor :
|
|
10133
|
+
const t = e.minPointRadius ?? 10, n = e.maxPointRadius ?? 50, a = e.cluster ?? !1, o = 20, i = Array.isArray(e.pointColor) ? e.pointColor : fa.TURBO.scale(10, e.cluster ? 1e4 : 1e3).resample("ease-out-square"), s = i.getBounds(), l = e.sourceId ?? It(), u = e.layerId ?? Mt(), c = e.showLabel ?? a, p = e.alignOnViewport ?? !0, m = e.outline ?? !1, f = e.outlineOpacity ?? 1, d = e.outlineWidth ?? 1, y = e.outlineColor ?? "#FFFFFF";
|
|
10128
10134
|
let b;
|
|
10129
10135
|
const w = e.zoomCompensation ?? !0, v = e.minzoom ?? 0, E = e.maxzoom ?? 23;
|
|
10130
|
-
typeof e.pointOpacity == "number" ? b = e.pointOpacity : Array.isArray(e.pointOpacity) ? b = $(e.pointOpacity) : e.cluster ? b =
|
|
10136
|
+
typeof e.pointOpacity == "number" ? b = e.pointOpacity : Array.isArray(e.pointOpacity) ? b = $(e.pointOpacity) : e.cluster ? b = dn(i, "point_count") : e.property ? b = dn(i, e.property) : b = $([
|
|
10131
10137
|
{ zoom: v, value: 0 },
|
|
10132
10138
|
{ zoom: v + 0.25, value: 1 },
|
|
10133
10139
|
{ zoom: E - 0.25, value: 1 },
|
|
@@ -10141,7 +10147,7 @@ function Js(r, e) {
|
|
|
10141
10147
|
};
|
|
10142
10148
|
if (e.data && !r.getSource(l)) {
|
|
10143
10149
|
let P = e.data;
|
|
10144
|
-
typeof P == "string" && mt(P) && (P = `https://api.maptiler.com/data/${P}/features.json?key=${
|
|
10150
|
+
typeof P == "string" && mt(P) && (P = `https://api.maptiler.com/data/${P}/features.json?key=${U.apiKey}`), r.addSource(l, {
|
|
10145
10151
|
type: "geojson",
|
|
10146
10152
|
data: P,
|
|
10147
10153
|
cluster: a
|
|
@@ -10165,8 +10171,8 @@ function Js(r, e) {
|
|
|
10165
10171
|
filter: ["has", "point_count"],
|
|
10166
10172
|
paint: {
|
|
10167
10173
|
// 'circle-color': options.pointColor ?? colorDrivenByProperty(clusterStyle, "point_count"),
|
|
10168
|
-
"circle-color": typeof e.pointColor == "string" ? e.pointColor :
|
|
10169
|
-
"circle-radius": typeof e.pointRadius == "number" ? e.pointRadius : Array.isArray(e.pointRadius) ? $(e.pointRadius) :
|
|
10174
|
+
"circle-color": typeof e.pointColor == "string" ? e.pointColor : pn(P, "point_count"),
|
|
10175
|
+
"circle-radius": typeof e.pointRadius == "number" ? e.pointRadius : Array.isArray(e.pointRadius) ? $(e.pointRadius) : fn(P, "point_count", !1),
|
|
10170
10176
|
"circle-pitch-alignment": p ? "viewport" : "map",
|
|
10171
10177
|
"circle-pitch-scale": "map",
|
|
10172
10178
|
// scale with camera distance regardless of viewport/biewport alignement
|
|
@@ -10229,7 +10235,7 @@ function Js(r, e) {
|
|
|
10229
10235
|
color: typeof e.pointColor == "string" ? e.pointColor : i.getColorHex(Qe)
|
|
10230
10236
|
};
|
|
10231
10237
|
});
|
|
10232
|
-
P =
|
|
10238
|
+
P = pn(ge, e.property), te = fn(ge, e.property, w);
|
|
10233
10239
|
}
|
|
10234
10240
|
r.addLayer(
|
|
10235
10241
|
{
|
|
@@ -10288,7 +10294,7 @@ function Js(r, e) {
|
|
|
10288
10294
|
}
|
|
10289
10295
|
return R;
|
|
10290
10296
|
}
|
|
10291
|
-
function
|
|
10297
|
+
function Js(r, e) {
|
|
10292
10298
|
if (e.layerId && r.getLayer(e.layerId))
|
|
10293
10299
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
10294
10300
|
const t = e.sourceId ?? It(), n = e.layerId ?? Mt(), a = e.minzoom ?? 0, o = e.maxzoom ?? 23, i = e.zoomCompensation ?? !0, s = e.opacity ?? [
|
|
@@ -10297,7 +10303,7 @@ function Ys(r, e) {
|
|
|
10297
10303
|
{ zoom: o - 0.25, value: 1 },
|
|
10298
10304
|
{ zoom: o, value: 0 }
|
|
10299
10305
|
];
|
|
10300
|
-
let l = Array.isArray(e.colorRamp) ? e.colorRamp :
|
|
10306
|
+
let l = Array.isArray(e.colorRamp) ? e.colorRamp : fa.TURBO.transparentStart();
|
|
10301
10307
|
const u = l.getBounds();
|
|
10302
10308
|
(u.min !== 0 || u.max !== 1) && (l = l.scale(0, 1)), l.hasTransparentStart() || (l = l.transparentStart());
|
|
10303
10309
|
const c = e.intensity ?? [
|
|
@@ -10308,7 +10314,7 @@ function Ys(r, e) {
|
|
|
10308
10314
|
let f = 1;
|
|
10309
10315
|
p ? typeof m == "number" ? (f = m, typeof e.weight == "number" && console.warn(
|
|
10310
10316
|
"The option `.property` is ignored when `.propertyValueWeights` is not of type `PropertyValueWeights`"
|
|
10311
|
-
)) : Array.isArray(m) ? f =
|
|
10317
|
+
)) : Array.isArray(m) ? f = Bs(m, p) : console.warn(
|
|
10312
10318
|
"The option `.property` is ignored when `.propertyValueWeights` is not of type `PropertyValueWeights`"
|
|
10313
10319
|
) : typeof m == "number" ? f = m : Array.isArray(m) && console.warn("The options `.propertyValueWeights` can only be used when `.property` is provided.");
|
|
10314
10320
|
const d = [
|
|
@@ -10319,14 +10325,14 @@ function Ys(r, e) {
|
|
|
10319
10325
|
{ zoom: 16, value: 50 }
|
|
10320
10326
|
], y = e.radius ?? (i ? d : 10);
|
|
10321
10327
|
let b = 1;
|
|
10322
|
-
typeof y == "number" ? b = y : Array.isArray(y) && "zoom" in y[0] ? b = $(y) : p && Array.isArray(y) && "propertyValue" in y[0] ? b =
|
|
10328
|
+
typeof y == "number" ? b = y : Array.isArray(y) && "zoom" in y[0] ? b = $(y) : p && Array.isArray(y) && "propertyValue" in y[0] ? b = Vs(y, p, i) : !p && Array.isArray(y) && "propertyValue" in y[0] ? (b = $(d), console.warn("The option `.radius` can only be property-driven if the option `.property` is provided.")) : b = $(d);
|
|
10323
10329
|
const w = {
|
|
10324
10330
|
heatmapLayerId: n,
|
|
10325
10331
|
heatmapSourceId: t
|
|
10326
10332
|
};
|
|
10327
10333
|
if (e.data && !r.getSource(t)) {
|
|
10328
10334
|
let v = e.data;
|
|
10329
|
-
typeof v == "string" && mt(v) && (v = `https://api.maptiler.com/data/${v}/features.json?key=${
|
|
10335
|
+
typeof v == "string" && mt(v) && (v = `https://api.maptiler.com/data/${v}/features.json?key=${U.apiKey}`), r.addSource(t, {
|
|
10330
10336
|
type: "geojson",
|
|
10331
10337
|
data: v
|
|
10332
10338
|
});
|
|
@@ -10341,7 +10347,7 @@ function Ys(r, e) {
|
|
|
10341
10347
|
paint: {
|
|
10342
10348
|
"heatmap-weight": f,
|
|
10343
10349
|
"heatmap-intensity": typeof c == "number" ? c : $(c),
|
|
10344
|
-
"heatmap-color":
|
|
10350
|
+
"heatmap-color": Gs(l),
|
|
10345
10351
|
"heatmap-radius": b,
|
|
10346
10352
|
"heatmap-opacity": typeof s == "number" ? s : $(s)
|
|
10347
10353
|
}
|
|
@@ -10349,175 +10355,175 @@ function Ys(r, e) {
|
|
|
10349
10355
|
e.beforeId
|
|
10350
10356
|
), w;
|
|
10351
10357
|
}
|
|
10352
|
-
const
|
|
10353
|
-
addPolyline:
|
|
10354
|
-
addPolygon:
|
|
10355
|
-
addPoint:
|
|
10356
|
-
addHeatmap:
|
|
10357
|
-
takeScreenshot:
|
|
10358
|
+
const Cl = {
|
|
10359
|
+
addPolyline: Hs,
|
|
10360
|
+
addPolygon: Zs,
|
|
10361
|
+
addPoint: Ws,
|
|
10362
|
+
addHeatmap: Js,
|
|
10363
|
+
takeScreenshot: js
|
|
10358
10364
|
};
|
|
10359
|
-
|
|
10360
|
-
function
|
|
10361
|
-
return
|
|
10362
|
-
}
|
|
10363
|
-
const
|
|
10364
|
-
setRTLTextPlugin:
|
|
10365
|
-
getRTLTextPluginStatus:
|
|
10366
|
-
LngLat:
|
|
10367
|
-
LngLatBounds:
|
|
10368
|
-
MercatorCoordinate:
|
|
10369
|
-
Evented:
|
|
10370
|
-
AJAXError:
|
|
10371
|
-
prewarm:
|
|
10372
|
-
clearPrewarmedResources:
|
|
10373
|
-
Hash:
|
|
10374
|
-
Point:
|
|
10375
|
-
EdgeInsets:
|
|
10376
|
-
DragRotateHandler:
|
|
10377
|
-
DragPanHandler:
|
|
10378
|
-
TwoFingersTouchZoomRotateHandler:
|
|
10379
|
-
DoubleClickZoomHandler:
|
|
10380
|
-
TwoFingersTouchZoomHandler:
|
|
10381
|
-
TwoFingersTouchRotateHandler:
|
|
10382
|
-
getWorkerCount:
|
|
10383
|
-
setWorkerCount:
|
|
10384
|
-
getMaxParallelImageRequests:
|
|
10385
|
-
setMaxParallelImageRequests:
|
|
10386
|
-
getWorkerUrl:
|
|
10387
|
-
setWorkerUrl:
|
|
10388
|
-
addSourceType:
|
|
10389
|
-
importScriptInWorkers:
|
|
10390
|
-
addProtocol:
|
|
10391
|
-
removeProtocol:
|
|
10365
|
+
no();
|
|
10366
|
+
function Ll() {
|
|
10367
|
+
return Wa.version;
|
|
10368
|
+
}
|
|
10369
|
+
const Al = x.Map, Tl = x.Marker, El = x.Popup, Il = x.Style, Ml = x.CanvasSource, _l = x.GeoJSONSource, zl = x.ImageSource, $l = x.RasterTileSource, Pl = x.RasterDEMTileSource, Rl = x.VectorTileSource, Fl = x.VideoSource, Nl = x.NavigationControl, Ol = x.GeolocateControl, Dl = x.AttributionControl, jl = x.LogoControl, ql = x.ScaleControl, Ul = x.FullscreenControl, Bl = x.TerrainControl, Vl = x.BoxZoomHandler, Gl = x.ScrollZoomHandler, Hl = x.CooperativeGesturesHandler, Kl = x.KeyboardHandler, Zl = x.TwoFingersTouchPitchHandler, Wl = x.MapWheelEvent, Jl = x.MapTouchEvent, Yl = x.MapMouseEvent, Xl = x.config, Ql = x.getVersion, {
|
|
10370
|
+
setRTLTextPlugin: eu,
|
|
10371
|
+
getRTLTextPluginStatus: tu,
|
|
10372
|
+
LngLat: ru,
|
|
10373
|
+
LngLatBounds: nu,
|
|
10374
|
+
MercatorCoordinate: au,
|
|
10375
|
+
Evented: ou,
|
|
10376
|
+
AJAXError: iu,
|
|
10377
|
+
prewarm: su,
|
|
10378
|
+
clearPrewarmedResources: lu,
|
|
10379
|
+
Hash: uu,
|
|
10380
|
+
Point: cu,
|
|
10381
|
+
EdgeInsets: pu,
|
|
10382
|
+
DragRotateHandler: fu,
|
|
10383
|
+
DragPanHandler: du,
|
|
10384
|
+
TwoFingersTouchZoomRotateHandler: yu,
|
|
10385
|
+
DoubleClickZoomHandler: mu,
|
|
10386
|
+
TwoFingersTouchZoomHandler: hu,
|
|
10387
|
+
TwoFingersTouchRotateHandler: gu,
|
|
10388
|
+
getWorkerCount: vu,
|
|
10389
|
+
setWorkerCount: bu,
|
|
10390
|
+
getMaxParallelImageRequests: wu,
|
|
10391
|
+
setMaxParallelImageRequests: xu,
|
|
10392
|
+
getWorkerUrl: Su,
|
|
10393
|
+
setWorkerUrl: ku,
|
|
10394
|
+
addSourceType: Cu,
|
|
10395
|
+
importScriptInWorkers: Lu,
|
|
10396
|
+
addProtocol: Au,
|
|
10397
|
+
removeProtocol: Tu
|
|
10392
10398
|
} = x;
|
|
10393
10399
|
export {
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10400
|
+
iu as AJAXError,
|
|
10401
|
+
yl as AttributionControl,
|
|
10402
|
+
Dl as AttributionControlMLGL,
|
|
10403
|
+
hl as BoxZoomHandler,
|
|
10404
|
+
Vl as BoxZoomHandlerMLGL,
|
|
10405
|
+
sl as CanvasSource,
|
|
10406
|
+
Ml as CanvasSourceMLGL,
|
|
10401
10407
|
S as ColorRamp,
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10408
|
+
fa as ColorRampCollection,
|
|
10409
|
+
vl as CooperativeGesturesHandler,
|
|
10410
|
+
Hl as CooperativeGesturesHandlerMLGL,
|
|
10411
|
+
mu as DoubleClickZoomHandler,
|
|
10412
|
+
du as DragPanHandler,
|
|
10413
|
+
fu as DragRotateHandler,
|
|
10414
|
+
pu as EdgeInsets,
|
|
10415
|
+
ou as Evented,
|
|
10416
|
+
yo as FullscreenControl,
|
|
10417
|
+
Ul as FullscreenControlMLGL,
|
|
10418
|
+
ll as GeoJSONSource,
|
|
10419
|
+
_l as GeoJSONSourceMLGL,
|
|
10420
|
+
co as GeolocateControl,
|
|
10421
|
+
Ol as GeolocateControlMLGL,
|
|
10422
|
+
Is as GeolocationType,
|
|
10423
|
+
uu as Hash,
|
|
10424
|
+
ul as ImageSource,
|
|
10425
|
+
zl as ImageSourceMLGL,
|
|
10426
|
+
bl as KeyboardHandler,
|
|
10427
|
+
Kl as KeyboardHandlerMLGL,
|
|
10422
10428
|
I as Language,
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10429
|
+
ru as LngLat,
|
|
10430
|
+
nu as LngLatBounds,
|
|
10431
|
+
po as LogoControl,
|
|
10432
|
+
jl as LogoControlMLGL,
|
|
10433
|
+
Ms as Map,
|
|
10434
|
+
Al as MapMLGL,
|
|
10435
|
+
kl as MapMouseEvent,
|
|
10436
|
+
Yl as MapMouseEventMLGL,
|
|
10437
|
+
Mu as MapStyle,
|
|
10438
|
+
_u as MapStyleVariant,
|
|
10439
|
+
Sl as MapTouchEvent,
|
|
10440
|
+
Jl as MapTouchEventMLGL,
|
|
10441
|
+
xl as MapWheelEvent,
|
|
10442
|
+
Wl as MapWheelEventMLGL,
|
|
10443
|
+
Es as MaptilerGeolocateControl,
|
|
10444
|
+
Pr as MaptilerLogoControl,
|
|
10445
|
+
As as MaptilerNavigationControl,
|
|
10446
|
+
Ls as MaptilerTerrainControl,
|
|
10447
|
+
nl as Marker,
|
|
10448
|
+
Tl as MarkerMLGL,
|
|
10449
|
+
au as MercatorCoordinate,
|
|
10450
|
+
Nl as NavigationControMLGL,
|
|
10451
|
+
uo as NavigationControl,
|
|
10452
|
+
cu as Point,
|
|
10453
|
+
ol as Popup,
|
|
10454
|
+
El as PopupMLGL,
|
|
10455
|
+
pl as RasterDEMTileSource,
|
|
10456
|
+
Pl as RasterDEMTileSourceMLGL,
|
|
10457
|
+
cl as RasterTileSource,
|
|
10458
|
+
$l as RasterTileSourceMLGL,
|
|
10459
|
+
zu as ReferenceMapStyle,
|
|
10460
|
+
fo as ScaleControl,
|
|
10461
|
+
ql as ScaleControlMLGL,
|
|
10462
|
+
gl as ScrollZoomHandler,
|
|
10463
|
+
Gl as ScrollZoomHandlerMLGL,
|
|
10464
|
+
Ja as SdkConfig,
|
|
10465
|
+
$u as ServiceError,
|
|
10466
|
+
il as Style,
|
|
10467
|
+
Il as StyleMLGL,
|
|
10468
|
+
Bl as TerrainControMLGL,
|
|
10469
|
+
ml as TerrainControl,
|
|
10470
|
+
wl as TwoFingersTouchPitchHandler,
|
|
10471
|
+
Zl as TwoFingersTouchPitchHandlerMLGL,
|
|
10472
|
+
gu as TwoFingersTouchRotateHandler,
|
|
10473
|
+
hu as TwoFingersTouchZoomHandler,
|
|
10474
|
+
yu as TwoFingersTouchZoomRotateHandler,
|
|
10475
|
+
fl as VectorTileSource,
|
|
10476
|
+
Rl as VectorTileSourceMLGL,
|
|
10477
|
+
dl as VideoSource,
|
|
10478
|
+
Fl as VideoSourceMLGL,
|
|
10479
|
+
Au as addProtocol,
|
|
10480
|
+
Cu as addSourceType,
|
|
10481
|
+
Pu as areSameLanguages,
|
|
10482
|
+
Ru as bufferToPixelDataBrowser,
|
|
10483
|
+
Fu as circumferenceAtLatitude,
|
|
10484
|
+
lu as clearPrewarmedResources,
|
|
10485
|
+
U as config,
|
|
10486
|
+
Xl as configMLGL,
|
|
10487
|
+
Nu as coordinates,
|
|
10488
|
+
Ou as data,
|
|
10489
|
+
Du as elevation,
|
|
10490
|
+
ju as expandMapStyle,
|
|
10491
|
+
qu as geocoding,
|
|
10492
|
+
Uu as geolocation,
|
|
10493
|
+
Bu as getAutoLanguage,
|
|
10494
|
+
Ir as getBrowserLanguage,
|
|
10495
|
+
Vu as getBufferToPixelDataParser,
|
|
10496
|
+
Gu as getLanguageInfoFromCode,
|
|
10497
|
+
Hu as getLanguageInfoFromFlag,
|
|
10498
|
+
Ku as getLanguageInfoFromKey,
|
|
10499
|
+
Ql as getMapLibreVersion,
|
|
10500
|
+
wu as getMaxParallelImageRequests,
|
|
10501
|
+
tu as getRTLTextPluginStatus,
|
|
10502
|
+
Zu as getTileCache,
|
|
10503
|
+
Ll as getVersion,
|
|
10504
|
+
io as getWebGLSupportError,
|
|
10505
|
+
vu as getWorkerCount,
|
|
10506
|
+
Su as getWorkerUrl,
|
|
10507
|
+
oa as gpx,
|
|
10508
|
+
Os as gpxOrKml,
|
|
10509
|
+
aa as hasChildNodeWithName,
|
|
10510
|
+
Cl as helpers,
|
|
10511
|
+
Lu as importScriptInWorkers,
|
|
10512
|
+
Wu as isLanguageInfo,
|
|
10513
|
+
ia as kml,
|
|
10514
|
+
Ju as mapStylePresetList,
|
|
10515
|
+
Yu as math,
|
|
10516
|
+
Xu as misc,
|
|
10517
|
+
su as prewarm,
|
|
10518
|
+
Tu as removeProtocol,
|
|
10519
|
+
xu as setMaxParallelImageRequests,
|
|
10520
|
+
eu as setRTLTextPlugin,
|
|
10521
|
+
bu as setWorkerCount,
|
|
10522
|
+
ku as setWorkerUrl,
|
|
10523
|
+
Qu as staticMaps,
|
|
10518
10524
|
Sr as str2xml,
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10525
|
+
ec as styleToStyle,
|
|
10526
|
+
tc as toLanguageInfo,
|
|
10527
|
+
nn as xml2str
|
|
10522
10528
|
};
|
|
10523
10529
|
//# sourceMappingURL=maptiler-sdk.mjs.map
|