@maptiler/sdk 3.0.0-rc.4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/maptiler-sdk.css +2 -2
- package/dist/maptiler-sdk.d.ts +1 -0
- package/dist/maptiler-sdk.mjs +222 -255
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/dist/src/MLAdapters/AttributionControl.d.ts +0 -1
- package/dist/src/MLAdapters/BoxZoomHandler.d.ts +0 -1
- package/dist/src/MLAdapters/CanvasSource.d.ts +0 -1
- package/dist/src/MLAdapters/CooperativeGesturesHandler.d.ts +0 -1
- package/dist/src/MLAdapters/FullscreenControl.d.ts +0 -1
- package/dist/src/MLAdapters/GeoJSONSource.d.ts +0 -1
- package/dist/src/MLAdapters/GeolocateControl.d.ts +0 -1
- package/dist/src/MLAdapters/ImageSource.d.ts +0 -1
- package/dist/src/MLAdapters/KeyboardHandler.d.ts +0 -1
- package/dist/src/MLAdapters/LogoControl.d.ts +0 -1
- package/dist/src/MLAdapters/MapMouseEvent.d.ts +0 -1
- package/dist/src/MLAdapters/MapTouchEvent.d.ts +0 -1
- package/dist/src/MLAdapters/MapWheelEvent.d.ts +0 -1
- package/dist/src/MLAdapters/Marker.d.ts +0 -1
- package/dist/src/MLAdapters/NavigationControl.d.ts +0 -1
- package/dist/src/MLAdapters/Popup.d.ts +0 -1
- package/dist/src/MLAdapters/RasterDEMTileSource.d.ts +0 -1
- package/dist/src/MLAdapters/RasterTileSource.d.ts +0 -1
- package/dist/src/MLAdapters/ScaleControl.d.ts +0 -1
- package/dist/src/MLAdapters/ScrollZoomHandler.d.ts +0 -1
- package/dist/src/MLAdapters/Style.d.ts +0 -1
- package/dist/src/MLAdapters/TerrainControl.d.ts +0 -1
- package/dist/src/MLAdapters/TwoFingersTouchPitchHandler.d.ts +0 -1
- package/dist/src/MLAdapters/VectorTileSource.d.ts +0 -1
- package/dist/src/MLAdapters/VideoSource.d.ts +0 -1
- package/dist/src/Map.d.ts +4 -5
- package/dist/src/MaptilerGeolocateControl.d.ts +1 -1
- package/dist/src/MaptilerLogoControl.d.ts +0 -1
- package/dist/src/MaptilerNavigationControl.d.ts +0 -1
- package/dist/src/MaptilerProjectionControl.d.ts +0 -1
- package/dist/src/MaptilerTerrainControl.d.ts +0 -1
- package/dist/src/Minimap.d.ts +0 -1
- package/dist/src/Telemetry.d.ts +0 -1
- package/dist/src/caching.d.ts +0 -1
- package/dist/src/config.d.ts +0 -1
- package/dist/src/helpers/index.d.ts +0 -1
- package/dist/src/helpers/screenshot.d.ts +0 -1
- package/dist/src/helpers/stylehelper.d.ts +0 -1
- package/dist/src/helpers/vectorlayerhelpers.d.ts +0 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/language.d.ts +0 -1
- package/dist/src/mapstyle.d.ts +0 -1
- package/dist/src/tools.d.ts +0 -1
- package/package.json +16 -16
- package/readme.md +35 -2
- package/vite.config-dev.ts +27 -0
- package/vite.config-umd.ts +4 -10
- /package/{vite.config.ts → vite.config-test.ts} +0 -0
package/dist/maptiler-sdk.mjs
CHANGED
|
@@ -3,68 +3,15 @@ var Ir = (r) => {
|
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
5
|
var Ea = (r, e, t) => e in r ? Ia(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
|
-
var L = (r, e, t) => Ea(r, typeof e != "symbol" ? e + "" : e, t),
|
|
7
|
-
var I = (r, e, t) => (
|
|
6
|
+
var L = (r, e, t) => Ea(r, typeof e != "symbol" ? e + "" : e, t), Pt = (r, e, t) => e.has(r) || Ir("Cannot " + t);
|
|
7
|
+
var I = (r, e, t) => (Pt(r, e, "read from private field"), t ? t.call(r) : e.get(r)), ye = (r, e, t) => e.has(r) ? Ir("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Se = (r, e, t, n) => (Pt(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), G = (r, e, t) => (Pt(r, e, "access private method"), t);
|
|
8
8
|
import S from "maplibre-gl";
|
|
9
|
-
import { Language as za, getLanguageInfoFromCode as Er, config as
|
|
9
|
+
import { Language as za, getLanguageInfoFromCode as Er, config as Rt, MapStyle as qe, mapStylePresetList as $t, expandMapStyle as _a, MapStyleVariant as Pa, ReferenceMapStyle as Ra, toLanguageInfo as zr, getLanguageInfoFromFlag as $a, geolocation as _r } from "@maptiler/client";
|
|
10
10
|
import { MapStyle as Gu, MapStyleVariant as Hu, ReferenceMapStyle as Ku, ServiceError as Wu, areSameLanguages as Zu, bufferToPixelDataBrowser as Ju, circumferenceAtLatitude as Yu, coordinates as Xu, data as Qu, elevation as ec, expandMapStyle as tc, geocoding as rc, geolocation as nc, getAutoLanguage as ac, getBufferToPixelDataParser as oc, getLanguageInfoFromCode as ic, getLanguageInfoFromFlag as sc, getLanguageInfoFromKey as lc, getTileCache as uc, isLanguageInfo as cc, mapStylePresetList as pc, math as fc, misc as dc, staticMaps as yc, styleToStyle as mc, toLanguageInfo as hc } from "@maptiler/client";
|
|
11
11
|
import ja from "events";
|
|
12
12
|
import { v4 as Na } from "uuid";
|
|
13
13
|
import { Base64 as Fa } from "js-base64";
|
|
14
|
-
const Oa = "@maptiler/sdk", Da = "3.0.0
|
|
15
|
-
".": {
|
|
16
|
-
import: "./dist/maptiler-sdk.mjs",
|
|
17
|
-
types: "./dist/maptiler-sdk.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./dist/maptiler-sdk.css": {
|
|
20
|
-
import: "./dist/maptiler-sdk.css"
|
|
21
|
-
},
|
|
22
|
-
"./style.css": {
|
|
23
|
-
import: "./dist/maptiler-sdk.css"
|
|
24
|
-
}
|
|
25
|
-
}, Ka = [
|
|
26
|
-
"maptiler",
|
|
27
|
-
"map",
|
|
28
|
-
"sdk",
|
|
29
|
-
"webmap",
|
|
30
|
-
"cloud",
|
|
31
|
-
"webGL",
|
|
32
|
-
"maplibre"
|
|
33
|
-
], Wa = "https://docs.maptiler.com/sdk-js/", Za = "BSD-3-Clause", Ja = {
|
|
34
|
-
type: "git",
|
|
35
|
-
url: "https://github.com/maptiler/maptiler-sdk-js.git"
|
|
36
|
-
}, Ya = {
|
|
37
|
-
biome: "biome check --max-diagnostics=1000",
|
|
38
|
-
"biome:fix": "npx @biomejs/biome check --max-diagnostics=1000 --write",
|
|
39
|
-
doc: "rm -rf docs/* && typedoc --out docs && cp -r images docs/",
|
|
40
|
-
test: "vitest run",
|
|
41
|
-
"build-css": "node scripts/replace-path-with-content.js src/style/style_template.css dist/tmp_maptiler-sdk.css && cat node_modules/maplibre-gl/dist/maplibre-gl.css dist/tmp_maptiler-sdk.css > dist/maptiler-sdk.css && rm dist/tmp_maptiler-sdk.css && cp dist/maptiler-sdk.css build/maptiler-sdk.css",
|
|
42
|
-
"build-umd": "tsc && NODE_ENV=production vite build -c vite.config-umd.ts",
|
|
43
|
-
"build-es": "tsc && NODE_ENV=production vite build -c vite.config-es.ts",
|
|
44
|
-
build: "npm run build-es; npm run build-umd; npm run build-css",
|
|
45
|
-
make: "npm run biome:fix && npm run build",
|
|
46
|
-
"dev-umd": "npm run build-css && tsc && NODE_ENV=dev vite build -w -c vite.config-umd.ts",
|
|
47
|
-
help: "vite build --help"
|
|
48
|
-
}, Xa = "MapTiler", Qa = {
|
|
49
|
-
"@biomejs/biome": "1.8.3",
|
|
50
|
-
"@types/uuid": "^9.0.2",
|
|
51
|
-
"@types/xmldom": "^0.1.31",
|
|
52
|
-
"@xmldom/xmldom": "^0.8.10",
|
|
53
|
-
serve: "^14.2.0",
|
|
54
|
-
terser: "^5.17.1",
|
|
55
|
-
typedoc: "^0.24.8",
|
|
56
|
-
typescript: "^5.1.6",
|
|
57
|
-
vite: "^5.3.4",
|
|
58
|
-
"vite-plugin-dts": "^4.0.0-beta.0",
|
|
59
|
-
vitest: "^0.34.2"
|
|
60
|
-
}, eo = {
|
|
61
|
-
"@maplibre/maplibre-gl-style-spec": "^22.0.1",
|
|
62
|
-
"@maptiler/client": "^2.2.0",
|
|
63
|
-
events: "^3.3.0",
|
|
64
|
-
"js-base64": "^3.7.4",
|
|
65
|
-
"maplibre-gl": "^5.0.0-pre.9",
|
|
66
|
-
uuid: "^9.0.0"
|
|
67
|
-
}, Sn = {
|
|
14
|
+
const Oa = "@maptiler/sdk", Da = "3.0.0", qa = "The Javascript & TypeScript map SDK tailored for MapTiler Cloud", Ua = "dist/maptiler-sdk.mjs", Ba = "dist/maptiler-sdk.d.ts", Va = "dist/maptiler-sdk.css", Ga = "module", Ha = { ".": { import: "./dist/maptiler-sdk.mjs", types: "./dist/maptiler-sdk.d.ts" }, "./dist/maptiler-sdk.css": { import: "./dist/maptiler-sdk.css" }, "./style.css": { import: "./dist/maptiler-sdk.css" } }, Ka = ["maptiler", "map", "sdk", "webmap", "cloud", "webGL", "maplibre"], Wa = "https://docs.maptiler.com/sdk-js/", Za = "BSD-3-Clause", Ja = { type: "git", url: "https://github.com/maptiler/maptiler-sdk-js.git" }, Ya = { biome: "biome check --max-diagnostics=1000", "biome:fix": "npx @biomejs/biome check --max-diagnostics=1000 --write", doc: "rm -rf docs/* && typedoc --out docs && cp -r images docs/", test: "vitest run -c vite.config-test.ts", "build-css": "mkdir -p dist build && node scripts/replace-path-with-content.js src/style/style_template.css dist/tmp_maptiler-sdk.css && cat node_modules/maplibre-gl/dist/maplibre-gl.css dist/tmp_maptiler-sdk.css > dist/maptiler-sdk.css && rm dist/tmp_maptiler-sdk.css && cp dist/maptiler-sdk.css build/maptiler-sdk.css", "build-umd": "tsc && NODE_ENV=production vite build -c vite.config-umd.ts", "build-es": "tsc && NODE_ENV=production vite build -c vite.config-es.ts", build: "npm run build-es; npm run build-umd; npm run build-css", make: "npm run biome:fix && npm run build", dev: 'concurrently "vite -c vite.config-dev.ts" "npm run dev-umd"', "dev-umd": "npm run build-css && tsc && NODE_ENV=dev vite build -w -c vite.config-umd.ts", ncu: "npx npm-check-updates" }, Xa = "MapTiler", Qa = { "@biomejs/biome": "1.9.4", "@types/uuid": "^10.0.0", "@types/xmldom": "^0.1.31", "@xmldom/xmldom": "^0.8.10", concurrently: "^9.1.2", typedoc: "^0.27.6", typescript: "^5.7.2", vite: "^6.0.7", "vite-plugin-dts": "^4.4.0", vitest: "^2.1.8" }, eo = { "@maplibre/maplibre-gl-style-spec": "^22.0.1", "@maptiler/client": "^2.2.0", events: "^3.3.0", "js-base64": "^3.7.7", "maplibre-gl": "^5.0.0", uuid: "^11.0.4" }, Sn = {
|
|
68
15
|
name: Oa,
|
|
69
16
|
version: Da,
|
|
70
17
|
description: qa,
|
|
@@ -123,7 +70,7 @@ const Oa = "@maptiler/sdk", Da = "3.0.0-rc.4", qa = "The Javascript & TypeScript
|
|
|
123
70
|
},
|
|
124
71
|
...za
|
|
125
72
|
};
|
|
126
|
-
function
|
|
73
|
+
function Pr() {
|
|
127
74
|
if (typeof navigator > "u") {
|
|
128
75
|
const e = Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0], t = Er(e);
|
|
129
76
|
return t || E.ENGLISH;
|
|
@@ -212,7 +159,7 @@ class to extends ja {
|
|
|
212
159
|
* Set the MapTiler Cloud API key
|
|
213
160
|
*/
|
|
214
161
|
set apiKey(t) {
|
|
215
|
-
this._apiKey = t,
|
|
162
|
+
this._apiKey = t, Rt.apiKey = t, this.emit("apiKey", t);
|
|
216
163
|
}
|
|
217
164
|
/**
|
|
218
165
|
* Get the MapTiler Cloud API key
|
|
@@ -224,16 +171,16 @@ class to extends ja {
|
|
|
224
171
|
* Set a the custom fetch function to replace the default one
|
|
225
172
|
*/
|
|
226
173
|
set fetch(t) {
|
|
227
|
-
|
|
174
|
+
Rt.fetch = t;
|
|
228
175
|
}
|
|
229
176
|
/**
|
|
230
177
|
* Get the fetch fucntion
|
|
231
178
|
*/
|
|
232
179
|
get fetch() {
|
|
233
|
-
return
|
|
180
|
+
return Rt.fetch;
|
|
234
181
|
}
|
|
235
182
|
}
|
|
236
|
-
const F = new to(), { addProtocol:
|
|
183
|
+
const F = new to(), { addProtocol: Rr } = S, Ht = "localcache_source", Kt = "localcache", ro = "maptiler_sdk", no = 1e3, ao = 100, Wt = typeof caches < "u";
|
|
237
184
|
function oo(r, e) {
|
|
238
185
|
if (Wt && F.caching && F.session && r.host === V.maptilerApiHost) {
|
|
239
186
|
if (e === "Source" && r.href.includes("tiles.json"))
|
|
@@ -247,14 +194,14 @@ let jt;
|
|
|
247
194
|
async function xn() {
|
|
248
195
|
return jt || (jt = await caches.open(ro)), jt;
|
|
249
196
|
}
|
|
250
|
-
let
|
|
197
|
+
let $r = 0;
|
|
251
198
|
async function io() {
|
|
252
199
|
const r = await xn(), e = await r.keys(), t = e.slice(0, Math.max(e.length - no, 0));
|
|
253
200
|
for (const n of t)
|
|
254
201
|
r.delete(n);
|
|
255
202
|
}
|
|
256
203
|
function so() {
|
|
257
|
-
|
|
204
|
+
Rr(
|
|
258
205
|
Ht,
|
|
259
206
|
async (r, e) => {
|
|
260
207
|
if (!r.url) throw new Error("");
|
|
@@ -268,7 +215,7 @@ function so() {
|
|
|
268
215
|
expires: n.headers.get("Expires")
|
|
269
216
|
};
|
|
270
217
|
}
|
|
271
|
-
),
|
|
218
|
+
), Rr(
|
|
272
219
|
Kt,
|
|
273
220
|
async (r, e) => {
|
|
274
221
|
if (!r.url) throw new Error("");
|
|
@@ -288,7 +235,7 @@ function so() {
|
|
|
288
235
|
c.signal = e.signal;
|
|
289
236
|
const p = await fetch(i, c);
|
|
290
237
|
return p.status >= 200 && p.status < 300 && (l.put(a, p.clone()).catch(() => {
|
|
291
|
-
}),
|
|
238
|
+
}), ++$r > ao && (io(), $r = 0)), s(p);
|
|
292
239
|
}
|
|
293
240
|
);
|
|
294
241
|
}
|
|
@@ -540,22 +487,22 @@ class zl extends S.BoxZoomHandler {
|
|
|
540
487
|
super(e, t);
|
|
541
488
|
}
|
|
542
489
|
}
|
|
543
|
-
class
|
|
490
|
+
class _l extends S.ScrollZoomHandler {
|
|
544
491
|
constructor(e, t) {
|
|
545
492
|
super(e, t);
|
|
546
493
|
}
|
|
547
494
|
}
|
|
548
|
-
class
|
|
495
|
+
class Pl extends S.CooperativeGesturesHandler {
|
|
549
496
|
constructor(e, t) {
|
|
550
497
|
super(e, t);
|
|
551
498
|
}
|
|
552
499
|
}
|
|
553
|
-
class
|
|
500
|
+
class Rl extends S.KeyboardHandler {
|
|
554
501
|
constructor(e) {
|
|
555
502
|
super(e);
|
|
556
503
|
}
|
|
557
504
|
}
|
|
558
|
-
class
|
|
505
|
+
class $l extends S.TwoFingersTouchPitchHandler {
|
|
559
506
|
constructor(e) {
|
|
560
507
|
super(e);
|
|
561
508
|
}
|
|
@@ -724,7 +671,7 @@ var To = 8, Mo = {
|
|
|
724
671
|
"*": {
|
|
725
672
|
type: "*"
|
|
726
673
|
}
|
|
727
|
-
},
|
|
674
|
+
}, _o = {
|
|
728
675
|
type: {
|
|
729
676
|
required: !0,
|
|
730
677
|
type: "enum",
|
|
@@ -781,7 +728,7 @@ var To = 8, Mo = {
|
|
|
781
728
|
"*": {
|
|
782
729
|
type: "*"
|
|
783
730
|
}
|
|
784
|
-
},
|
|
731
|
+
}, Po = {
|
|
785
732
|
type: {
|
|
786
733
|
required: !0,
|
|
787
734
|
type: "enum",
|
|
@@ -855,7 +802,7 @@ var To = 8, Mo = {
|
|
|
855
802
|
"*": {
|
|
856
803
|
type: "*"
|
|
857
804
|
}
|
|
858
|
-
},
|
|
805
|
+
}, Ro = {
|
|
859
806
|
type: {
|
|
860
807
|
required: !0,
|
|
861
808
|
type: "enum",
|
|
@@ -916,7 +863,7 @@ var To = 8, Mo = {
|
|
|
916
863
|
promoteId: {
|
|
917
864
|
type: "promoteId"
|
|
918
865
|
}
|
|
919
|
-
},
|
|
866
|
+
}, $o = {
|
|
920
867
|
type: {
|
|
921
868
|
required: !0,
|
|
922
869
|
type: "enum",
|
|
@@ -3336,10 +3283,10 @@ var To = 8, Mo = {
|
|
|
3336
3283
|
sources: Io,
|
|
3337
3284
|
source: Eo,
|
|
3338
3285
|
source_vector: zo,
|
|
3339
|
-
source_raster:
|
|
3340
|
-
source_raster_dem:
|
|
3341
|
-
source_geojson:
|
|
3342
|
-
source_video:
|
|
3286
|
+
source_raster: _o,
|
|
3287
|
+
source_raster_dem: Po,
|
|
3288
|
+
source_geojson: Ro,
|
|
3289
|
+
source_video: $o,
|
|
3343
3290
|
source_image: jo,
|
|
3344
3291
|
layer: No,
|
|
3345
3292
|
layout: Fo,
|
|
@@ -3610,7 +3557,7 @@ class or {
|
|
|
3610
3557
|
return this.bindings[e] ? !0 : this.parent ? this.parent.has(e) : !1;
|
|
3611
3558
|
}
|
|
3612
3559
|
}
|
|
3613
|
-
const gt = { kind: "null" }, g = { kind: "number" }, M = { kind: "string" }, C = { kind: "boolean" }, ie = { kind: "color" }, vt = { kind: "projectionDefinition" },
|
|
3560
|
+
const gt = { kind: "null" }, g = { kind: "number" }, M = { kind: "string" }, C = { kind: "boolean" }, ie = { kind: "color" }, vt = { kind: "projectionDefinition" }, Re = { kind: "object" }, A = { kind: "value" }, yi = { kind: "error" }, bt = { kind: "collator" }, wt = { kind: "formatted" }, St = { kind: "padding" }, Xe = { kind: "resolvedImage" }, xt = { kind: "variableAnchorOffsetCollection" };
|
|
3614
3561
|
function W(r, e) {
|
|
3615
3562
|
return {
|
|
3616
3563
|
kind: "array",
|
|
@@ -3633,7 +3580,7 @@ const mi = [
|
|
|
3633
3580
|
ie,
|
|
3634
3581
|
vt,
|
|
3635
3582
|
wt,
|
|
3636
|
-
|
|
3583
|
+
Re,
|
|
3637
3584
|
W(A),
|
|
3638
3585
|
St,
|
|
3639
3586
|
Xe,
|
|
@@ -3665,7 +3612,7 @@ function Le(r, e) {
|
|
|
3665
3612
|
function ze(r, e) {
|
|
3666
3613
|
return r.kind === "array" && e.kind === "array" ? r.itemType.kind === e.itemType.kind && typeof r.N == "number" : r.kind === e.kind;
|
|
3667
3614
|
}
|
|
3668
|
-
const Ln = 0.96422, Cn = 1, An = 0.82521, Tn = 4 / 29,
|
|
3615
|
+
const Ln = 0.96422, Cn = 1, An = 0.82521, Tn = 4 / 29, $e = 6 / 29, Mn = 3 * $e * $e, hi = $e * $e * $e, gi = Math.PI / 180, vi = 180 / Math.PI;
|
|
3669
3616
|
function In(r) {
|
|
3670
3617
|
return r = r % 360, r < 0 && (r += 360), r;
|
|
3671
3618
|
}
|
|
@@ -3697,7 +3644,7 @@ function Ot(r) {
|
|
|
3697
3644
|
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;
|
|
3698
3645
|
}
|
|
3699
3646
|
function Dt(r) {
|
|
3700
|
-
return r >
|
|
3647
|
+
return r > $e ? r * r * r : Mn * (r - Tn);
|
|
3701
3648
|
}
|
|
3702
3649
|
function bi(r) {
|
|
3703
3650
|
const [e, t, n, a] = En(r), o = Math.sqrt(t * t + n * n);
|
|
@@ -3764,14 +3711,14 @@ function xi(r) {
|
|
|
3764
3711
|
if (b === " " || b === " /" || b === ",," || b === ",,,") {
|
|
3765
3712
|
const T = [l, p, d].join(""), j = T === "%%%" ? 100 : T === "" ? 255 : 0;
|
|
3766
3713
|
if (j) {
|
|
3767
|
-
const
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3714
|
+
const R = [
|
|
3715
|
+
_e(+s / j, 0, 1),
|
|
3716
|
+
_e(+c / j, 0, 1),
|
|
3717
|
+
_e(+f / j, 0, 1),
|
|
3771
3718
|
v ? Dr(+v, w) : 1
|
|
3772
3719
|
];
|
|
3773
|
-
if (qr(
|
|
3774
|
-
return
|
|
3720
|
+
if (qr(R))
|
|
3721
|
+
return R;
|
|
3775
3722
|
}
|
|
3776
3723
|
}
|
|
3777
3724
|
return;
|
|
@@ -3802,8 +3749,8 @@ function xi(r) {
|
|
|
3802
3749
|
if (f === " " || f === " /" || f === ",," || f === ",,,") {
|
|
3803
3750
|
const d = [
|
|
3804
3751
|
+o,
|
|
3805
|
-
|
|
3806
|
-
|
|
3752
|
+
_e(+s, 0, 100),
|
|
3753
|
+
_e(+u, 0, 100),
|
|
3807
3754
|
p ? Dr(+p, m) : 1
|
|
3808
3755
|
];
|
|
3809
3756
|
if (qr(d))
|
|
@@ -3815,9 +3762,9 @@ function rt(r) {
|
|
|
3815
3762
|
return parseInt(r.padEnd(2, r), 16) / 255;
|
|
3816
3763
|
}
|
|
3817
3764
|
function Dr(r, e) {
|
|
3818
|
-
return
|
|
3765
|
+
return _e(e ? r / 100 : r, 0, 1);
|
|
3819
3766
|
}
|
|
3820
|
-
function
|
|
3767
|
+
function _e(r, e, t) {
|
|
3821
3768
|
return Math.min(Math.max(e, r), t);
|
|
3822
3769
|
}
|
|
3823
3770
|
function qr(r) {
|
|
@@ -3979,7 +3926,7 @@ function ve(r, e, t) {
|
|
|
3979
3926
|
function Ge(r, e, t) {
|
|
3980
3927
|
return r.map((n, a) => ve(n, e[a], t));
|
|
3981
3928
|
}
|
|
3982
|
-
class
|
|
3929
|
+
class $ {
|
|
3983
3930
|
/**
|
|
3984
3931
|
* @param r Red component premultiplied by `alpha` 0..1
|
|
3985
3932
|
* @param g Green component premultiplied by `alpha` 0..1
|
|
@@ -4004,13 +3951,13 @@ class R {
|
|
|
4004
3951
|
* @returns A `Color` instance, or `undefined` if the input is not a valid color string.
|
|
4005
3952
|
*/
|
|
4006
3953
|
static parse(e) {
|
|
4007
|
-
if (e instanceof
|
|
3954
|
+
if (e instanceof $)
|
|
4008
3955
|
return e;
|
|
4009
3956
|
if (typeof e != "string")
|
|
4010
3957
|
return;
|
|
4011
3958
|
const t = xi(e);
|
|
4012
3959
|
if (t)
|
|
4013
|
-
return new
|
|
3960
|
+
return new $(...t, !1);
|
|
4014
3961
|
}
|
|
4015
3962
|
/**
|
|
4016
3963
|
* Used in color interpolation and by 'to-rgba' expression.
|
|
@@ -4079,7 +4026,7 @@ class R {
|
|
|
4079
4026
|
switch (a) {
|
|
4080
4027
|
case "rgb": {
|
|
4081
4028
|
const [o, i, s, l] = Ge(e.rgb, t.rgb, n);
|
|
4082
|
-
return new
|
|
4029
|
+
return new $(o, i, s, l, !1);
|
|
4083
4030
|
}
|
|
4084
4031
|
case "hcl": {
|
|
4085
4032
|
const [o, i, s, l] = e.hcl, [u, c, p, m] = t.hcl;
|
|
@@ -4094,19 +4041,19 @@ class R {
|
|
|
4094
4041
|
ve(s, p, n),
|
|
4095
4042
|
ve(l, m, n)
|
|
4096
4043
|
]);
|
|
4097
|
-
return new
|
|
4044
|
+
return new $(y, v, w, b, !1);
|
|
4098
4045
|
}
|
|
4099
4046
|
case "lab": {
|
|
4100
4047
|
const [o, i, s, l] = zn(Ge(e.lab, t.lab, n));
|
|
4101
|
-
return new
|
|
4048
|
+
return new $(o, i, s, l, !1);
|
|
4102
4049
|
}
|
|
4103
4050
|
}
|
|
4104
4051
|
}
|
|
4105
4052
|
}
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4053
|
+
$.black = new $(0, 0, 0, 1);
|
|
4054
|
+
$.white = new $(1, 1, 1, 1);
|
|
4055
|
+
$.transparent = new $(0, 0, 0, 0);
|
|
4056
|
+
$.red = new $(1, 0, 0, 1);
|
|
4110
4057
|
class sr {
|
|
4111
4058
|
constructor(e, t, n) {
|
|
4112
4059
|
e ? this.sensitivity = t ? "variant" : "case" : this.sensitivity = t ? "accent" : "base", this.locale = n, this.collator = new Intl.Collator(this.locale ? this.locale : [], { sensitivity: this.sensitivity, usage: "search" });
|
|
@@ -4251,11 +4198,11 @@ class ee {
|
|
|
4251
4198
|
return new ee(e, e, 1);
|
|
4252
4199
|
}
|
|
4253
4200
|
}
|
|
4254
|
-
function
|
|
4201
|
+
function _n(r, e, t, n) {
|
|
4255
4202
|
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.`;
|
|
4256
4203
|
}
|
|
4257
4204
|
function He(r) {
|
|
4258
|
-
if (r === null || typeof r == "string" || typeof r == "boolean" || typeof r == "number" || r instanceof ee || r instanceof
|
|
4205
|
+
if (r === null || typeof r == "string" || typeof r == "boolean" || typeof r == "number" || r instanceof ee || r instanceof $ || r instanceof sr || r instanceof fe || r instanceof J || r instanceof ne || r instanceof be)
|
|
4259
4206
|
return !0;
|
|
4260
4207
|
if (Array.isArray(r)) {
|
|
4261
4208
|
for (const e of r)
|
|
@@ -4279,7 +4226,7 @@ function q(r) {
|
|
|
4279
4226
|
return C;
|
|
4280
4227
|
if (typeof r == "number")
|
|
4281
4228
|
return g;
|
|
4282
|
-
if (r instanceof
|
|
4229
|
+
if (r instanceof $)
|
|
4283
4230
|
return ie;
|
|
4284
4231
|
if (r instanceof ee)
|
|
4285
4232
|
return vt;
|
|
@@ -4309,11 +4256,11 @@ function q(r) {
|
|
|
4309
4256
|
}
|
|
4310
4257
|
return W(t || A, e);
|
|
4311
4258
|
} else
|
|
4312
|
-
return
|
|
4259
|
+
return Re;
|
|
4313
4260
|
}
|
|
4314
4261
|
function Ue(r) {
|
|
4315
4262
|
const e = typeof r;
|
|
4316
|
-
return r === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(r) : r instanceof
|
|
4263
|
+
return r === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(r) : r instanceof $ || r instanceof ee || r instanceof fe || r instanceof J || r instanceof ne || r instanceof be ? r.toString() : JSON.stringify(r);
|
|
4317
4264
|
}
|
|
4318
4265
|
class je {
|
|
4319
4266
|
constructor(e, t) {
|
|
@@ -4342,7 +4289,7 @@ const nt = {
|
|
|
4342
4289
|
string: M,
|
|
4343
4290
|
number: g,
|
|
4344
4291
|
boolean: C,
|
|
4345
|
-
object:
|
|
4292
|
+
object: Re
|
|
4346
4293
|
};
|
|
4347
4294
|
class te {
|
|
4348
4295
|
constructor(e, t) {
|
|
@@ -4434,14 +4381,14 @@ class ge {
|
|
|
4434
4381
|
case "color": {
|
|
4435
4382
|
let t, n;
|
|
4436
4383
|
for (const a of this.args) {
|
|
4437
|
-
if (t = a.evaluate(e), n = null, t instanceof
|
|
4384
|
+
if (t = a.evaluate(e), n = null, t instanceof $)
|
|
4438
4385
|
return t;
|
|
4439
4386
|
if (typeof t == "string") {
|
|
4440
4387
|
const o = e.parseColor(t);
|
|
4441
4388
|
if (o)
|
|
4442
4389
|
return o;
|
|
4443
|
-
} else if (Array.isArray(t) && (t.length < 3 || t.length > 4 ? n = `Invalid rgba value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.` : n =
|
|
4444
|
-
return new
|
|
4390
|
+
} else if (Array.isArray(t) && (t.length < 3 || t.length > 4 ? n = `Invalid rgba value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.` : n = _n(t[0], t[1], t[2], t[3]), !n))
|
|
4391
|
+
return new $(t[0] / 255, t[1] / 255, t[2] / 255, t[3]);
|
|
4445
4392
|
}
|
|
4446
4393
|
throw new D(n || `Could not parse color from value '${typeof t == "string" ? t : JSON.stringify(t)}'`);
|
|
4447
4394
|
}
|
|
@@ -4499,12 +4446,12 @@ function Ci(r, e) {
|
|
|
4499
4446
|
const n = [];
|
|
4500
4447
|
let a, o;
|
|
4501
4448
|
for (const i of r) {
|
|
4502
|
-
const s =
|
|
4449
|
+
const s = Pn(i);
|
|
4503
4450
|
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));
|
|
4504
4451
|
}
|
|
4505
4452
|
return a && n.push(a), n;
|
|
4506
4453
|
}
|
|
4507
|
-
function
|
|
4454
|
+
function Pn(r) {
|
|
4508
4455
|
let e = 0;
|
|
4509
4456
|
for (let t = 0, n = r.length, a = n - 1, o, i; t < n; a = t++)
|
|
4510
4457
|
o = r[t], i = r[a], e += (i.x - o.x) * (o.y + i.y);
|
|
@@ -4513,7 +4460,7 @@ function _n(r) {
|
|
|
4513
4460
|
function Ai(r) {
|
|
4514
4461
|
const e = r.length;
|
|
4515
4462
|
for (let t = 0, n; t < e; t++) {
|
|
4516
|
-
const a =
|
|
4463
|
+
const a = Pn(r[t]);
|
|
4517
4464
|
if (a !== 0) {
|
|
4518
4465
|
if (n === void 0)
|
|
4519
4466
|
n = a < 0;
|
|
@@ -4532,7 +4479,7 @@ const Br = ["Unknown", "Point", "LineString", "Polygon"], Ti = {
|
|
|
4532
4479
|
Polygon: "Polygon",
|
|
4533
4480
|
MultiPolygon: "Polygon"
|
|
4534
4481
|
};
|
|
4535
|
-
class
|
|
4482
|
+
class Rn {
|
|
4536
4483
|
constructor() {
|
|
4537
4484
|
this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = {}, this.availableImages = null, this.canonical = null;
|
|
4538
4485
|
}
|
|
@@ -4560,7 +4507,7 @@ class $n {
|
|
|
4560
4507
|
}
|
|
4561
4508
|
parseColor(e) {
|
|
4562
4509
|
let t = this._parseColorCache[e];
|
|
4563
|
-
return t || (t = this._parseColorCache[e] =
|
|
4510
|
+
return t || (t = this._parseColorCache[e] = $.parse(e)), t;
|
|
4564
4511
|
}
|
|
4565
4512
|
}
|
|
4566
4513
|
class kt {
|
|
@@ -4609,7 +4556,7 @@ class kt {
|
|
|
4609
4556
|
return null;
|
|
4610
4557
|
}
|
|
4611
4558
|
if (!(i instanceof je) && i.type.kind !== "resolvedImage" && this._isConstant(i)) {
|
|
4612
|
-
const s = new
|
|
4559
|
+
const s = new Rn();
|
|
4613
4560
|
try {
|
|
4614
4561
|
i = new je(i.type, i.evaluate(s));
|
|
4615
4562
|
} catch (l) {
|
|
@@ -4938,7 +4885,7 @@ class ct {
|
|
|
4938
4885
|
return !1;
|
|
4939
4886
|
}
|
|
4940
4887
|
}
|
|
4941
|
-
function
|
|
4888
|
+
function $n(r, e) {
|
|
4942
4889
|
const t = r.length - 1;
|
|
4943
4890
|
let n = 0, a = t, o = 0, i, s;
|
|
4944
4891
|
for (; n <= a; )
|
|
@@ -4992,7 +4939,7 @@ class At {
|
|
|
4992
4939
|
const o = t.length;
|
|
4993
4940
|
if (a >= t[o - 1])
|
|
4994
4941
|
return n[o - 1].evaluate(e);
|
|
4995
|
-
const i =
|
|
4942
|
+
const i = $n(t, a);
|
|
4996
4943
|
return n[i].evaluate(e);
|
|
4997
4944
|
}
|
|
4998
4945
|
eachChild(e) {
|
|
@@ -5119,14 +5066,14 @@ class se {
|
|
|
5119
5066
|
const o = t.length;
|
|
5120
5067
|
if (a >= t[o - 1])
|
|
5121
5068
|
return n[o - 1].evaluate(e);
|
|
5122
|
-
const i =
|
|
5069
|
+
const i = $n(t, a), s = t[i], l = t[i + 1], u = se.interpolationFactor(this.interpolation, a, s, l), c = n[i].evaluate(e), p = n[i + 1].evaluate(e);
|
|
5123
5070
|
switch (this.operator) {
|
|
5124
5071
|
case "interpolate":
|
|
5125
5072
|
switch (this.type.kind) {
|
|
5126
5073
|
case "number":
|
|
5127
5074
|
return ve(c, p, u);
|
|
5128
5075
|
case "color":
|
|
5129
|
-
return
|
|
5076
|
+
return $.interpolate(c, p, u);
|
|
5130
5077
|
case "padding":
|
|
5131
5078
|
return J.interpolate(c, p, u);
|
|
5132
5079
|
case "variableAnchorOffsetCollection":
|
|
@@ -5137,9 +5084,9 @@ class se {
|
|
|
5137
5084
|
return ee.interpolate(c, p, u);
|
|
5138
5085
|
}
|
|
5139
5086
|
case "interpolate-hcl":
|
|
5140
|
-
return
|
|
5087
|
+
return $.interpolate(c, p, u, "hcl");
|
|
5141
5088
|
case "interpolate-lab":
|
|
5142
|
-
return
|
|
5089
|
+
return $.interpolate(c, p, u, "lab");
|
|
5143
5090
|
}
|
|
5144
5091
|
}
|
|
5145
5092
|
eachChild(e) {
|
|
@@ -5155,7 +5102,7 @@ function Ut(r, e, t, n) {
|
|
|
5155
5102
|
const a = n - t, o = r - t;
|
|
5156
5103
|
return a === 0 ? 0 : e === 1 ? o / a : (Math.pow(e, o) - 1) / (Math.pow(e, a) - 1);
|
|
5157
5104
|
}
|
|
5158
|
-
|
|
5105
|
+
$.interpolate, J.interpolate, ne.interpolate;
|
|
5159
5106
|
class Ke {
|
|
5160
5107
|
constructor(e, t) {
|
|
5161
5108
|
this.type = e, this.args = t;
|
|
@@ -5194,16 +5141,16 @@ class Ke {
|
|
|
5194
5141
|
function Gr(r, e) {
|
|
5195
5142
|
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";
|
|
5196
5143
|
}
|
|
5197
|
-
function
|
|
5144
|
+
function _i(r, e, t) {
|
|
5198
5145
|
return e === t;
|
|
5199
5146
|
}
|
|
5200
|
-
function
|
|
5147
|
+
function Pi(r, e, t) {
|
|
5201
5148
|
return e !== t;
|
|
5202
5149
|
}
|
|
5203
|
-
function
|
|
5150
|
+
function Ri(r, e, t) {
|
|
5204
5151
|
return e < t;
|
|
5205
5152
|
}
|
|
5206
|
-
function
|
|
5153
|
+
function $i(r, e, t) {
|
|
5207
5154
|
return e > t;
|
|
5208
5155
|
}
|
|
5209
5156
|
function ji(r, e, t) {
|
|
@@ -5284,7 +5231,7 @@ function Fe(r, e, t) {
|
|
|
5284
5231
|
}
|
|
5285
5232
|
};
|
|
5286
5233
|
}
|
|
5287
|
-
const Bi = Fe("==",
|
|
5234
|
+
const Bi = Fe("==", _i, jn), Vi = Fe("!=", Pi, Fi), Gi = Fe("<", Ri, Oi), Hi = Fe(">", $i, Di), Ki = Fe("<=", ji, qi), Wi = Fe(">=", Ni, Ui);
|
|
5288
5235
|
class Tt {
|
|
5289
5236
|
constructor(e, t, n) {
|
|
5290
5237
|
this.type = bt, this.locale = n, this.caseSensitive = e, this.diacriticSensitive = t;
|
|
@@ -6223,10 +6170,10 @@ class re {
|
|
|
6223
6170
|
}
|
|
6224
6171
|
function tn(r, [e, t, n, a]) {
|
|
6225
6172
|
e = e.evaluate(r), t = t.evaluate(r), n = n.evaluate(r);
|
|
6226
|
-
const o = a ? a.evaluate(r) : 1, i =
|
|
6173
|
+
const o = a ? a.evaluate(r) : 1, i = _n(e, t, n, o);
|
|
6227
6174
|
if (i)
|
|
6228
6175
|
throw new D(i);
|
|
6229
|
-
return new
|
|
6176
|
+
return new $(e / 255, t / 255, n / 255, o, !1);
|
|
6230
6177
|
}
|
|
6231
6178
|
function rn(r, e) {
|
|
6232
6179
|
return r in e;
|
|
@@ -6286,7 +6233,7 @@ re.register(Sr, {
|
|
|
6286
6233
|
(r, [e]) => rn(e.evaluate(r), r.properties())
|
|
6287
6234
|
],
|
|
6288
6235
|
[
|
|
6289
|
-
[M,
|
|
6236
|
+
[M, Re],
|
|
6290
6237
|
(r, [e, t]) => rn(e.evaluate(r), t.evaluate(r))
|
|
6291
6238
|
]
|
|
6292
6239
|
]
|
|
@@ -6299,7 +6246,7 @@ re.register(Sr, {
|
|
|
6299
6246
|
(r, [e]) => Vt(e.evaluate(r), r.properties())
|
|
6300
6247
|
],
|
|
6301
6248
|
[
|
|
6302
|
-
[M,
|
|
6249
|
+
[M, Re],
|
|
6303
6250
|
(r, [e, t]) => Vt(e.evaluate(r), t.evaluate(r))
|
|
6304
6251
|
]
|
|
6305
6252
|
]
|
|
@@ -6310,7 +6257,7 @@ re.register(Sr, {
|
|
|
6310
6257
|
(r, [e]) => Vt(e.evaluate(r), r.featureState || {})
|
|
6311
6258
|
],
|
|
6312
6259
|
properties: [
|
|
6313
|
-
|
|
6260
|
+
Re,
|
|
6314
6261
|
[],
|
|
6315
6262
|
(r) => r.properties()
|
|
6316
6263
|
],
|
|
@@ -6731,7 +6678,7 @@ function Et(r, e) {
|
|
|
6731
6678
|
function tr(r) {
|
|
6732
6679
|
return { result: "success", value: r };
|
|
6733
6680
|
}
|
|
6734
|
-
function
|
|
6681
|
+
function Pe(r) {
|
|
6735
6682
|
return { result: "error", value: r };
|
|
6736
6683
|
}
|
|
6737
6684
|
function mt(r) {
|
|
@@ -6751,7 +6698,7 @@ function xr(r) {
|
|
|
6751
6698
|
}
|
|
6752
6699
|
class ws {
|
|
6753
6700
|
constructor(e, t) {
|
|
6754
|
-
this.expression = e, this._warningHistory = {}, this._evaluator = new
|
|
6701
|
+
this.expression = e, this._warningHistory = {}, this._evaluator = new Rn(), this._defaultValue = t ? ks(t) : null, this._enumValues = t && t.type === "enum" ? t.values : null;
|
|
6755
6702
|
}
|
|
6756
6703
|
evaluateWithoutErrorHandling(e, t, n, a, o, i) {
|
|
6757
6704
|
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);
|
|
@@ -6775,7 +6722,7 @@ function Gn(r) {
|
|
|
6775
6722
|
}
|
|
6776
6723
|
function Hn(r, e) {
|
|
6777
6724
|
const t = new kt(Sr, yt, [], e ? xs(e) : void 0), n = t.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
|
6778
|
-
return n ? tr(new ws(n, e)) :
|
|
6725
|
+
return n ? tr(new ws(n, e)) : Pe(t.errors);
|
|
6779
6726
|
}
|
|
6780
6727
|
class nn {
|
|
6781
6728
|
constructor(e, t) {
|
|
@@ -6808,17 +6755,17 @@ function Ss(r, e) {
|
|
|
6808
6755
|
return t;
|
|
6809
6756
|
const n = t.value.expression, a = It(n);
|
|
6810
6757
|
if (!a && !mt(e))
|
|
6811
|
-
return
|
|
6758
|
+
return Pe([new oe("", "data expressions not supported")]);
|
|
6812
6759
|
const o = Et(n, ["zoom"]);
|
|
6813
6760
|
if (!o && !Bn(e))
|
|
6814
|
-
return
|
|
6761
|
+
return Pe([new oe("", "zoom expressions not supported")]);
|
|
6815
6762
|
const i = it(n);
|
|
6816
6763
|
if (!i && !o)
|
|
6817
|
-
return
|
|
6764
|
+
return Pe([new oe("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
|
6818
6765
|
if (i instanceof oe)
|
|
6819
|
-
return
|
|
6766
|
+
return Pe([i]);
|
|
6820
6767
|
if (i instanceof se && !Vn(e))
|
|
6821
|
-
return
|
|
6768
|
+
return Pe([new oe("", '"interpolate" expressions cannot be used with this property')]);
|
|
6822
6769
|
if (!i)
|
|
6823
6770
|
return tr(a ? new nn("constant", t.value) : new nn("source", t.value));
|
|
6824
6771
|
const s = i instanceof se ? i.interpolation : void 0;
|
|
@@ -6854,7 +6801,7 @@ function xs(r) {
|
|
|
6854
6801
|
return r.type === "array" ? W(e[r.value] || A, r.length) : e[r.type];
|
|
6855
6802
|
}
|
|
6856
6803
|
function ks(r) {
|
|
6857
|
-
return r.type === "color" && xr(r.default) ? new
|
|
6804
|
+
return r.type === "color" && xr(r.default) ? new $(0, 0, 0, 0) : r.type === "color" ? $.parse(r.default) || null : r.type === "padding" ? J.parse(r.default) || null : r.type === "variableAnchorOffsetCollection" ? ne.parse(r.default) || null : r.type === "projectionDefinition" ? ee.parse(r.default) || null : r.default === void 0 ? null : r.default;
|
|
6858
6805
|
}
|
|
6859
6806
|
function Kn(r) {
|
|
6860
6807
|
if (r === !0 || r === !1)
|
|
@@ -7097,7 +7044,7 @@ function Ls(r) {
|
|
|
7097
7044
|
}
|
|
7098
7045
|
function Cs(r) {
|
|
7099
7046
|
const e = r.key, t = r.value, n = z(t);
|
|
7100
|
-
return n !== "string" ? [new h(e, t, `color expected, ${n} found`)] :
|
|
7047
|
+
return n !== "string" ? [new h(e, t, `color expected, ${n} found`)] : $.parse(String(t)) ? [] : [new h(e, t, `color expected, "${t}" found`)];
|
|
7101
7048
|
}
|
|
7102
7049
|
function Je(r) {
|
|
7103
7050
|
const e = r.key, t = r.value, n = r.valueSpec, a = [];
|
|
@@ -7129,9 +7076,11 @@ function Jn(r) {
|
|
|
7129
7076
|
case ">":
|
|
7130
7077
|
case ">=":
|
|
7131
7078
|
e.length >= 2 && O(e[1]) === "$type" && o.push(new h(t, e, `"$type" cannot be use with operator "${e[0]}"`));
|
|
7079
|
+
/* falls through */
|
|
7132
7080
|
case "==":
|
|
7133
7081
|
case "!=":
|
|
7134
7082
|
e.length !== 3 && o.push(new h(t, e, `filter array for operator "${e[0]}" must have 3 elements`));
|
|
7083
|
+
/* falls through */
|
|
7135
7084
|
case "in":
|
|
7136
7085
|
case "!in":
|
|
7137
7086
|
e.length >= 2 && (a = z(e[1]), a !== "string" && o.push(new h(`${t}[1]`, e[1], `string expected, ${a} found`)));
|
|
@@ -7555,7 +7504,7 @@ function oa(r) {
|
|
|
7555
7504
|
value: t
|
|
7556
7505
|
});
|
|
7557
7506
|
}
|
|
7558
|
-
function
|
|
7507
|
+
function _s(r) {
|
|
7559
7508
|
const e = r.value, t = r.styleSpec, n = t.projection, a = r.style, o = z(e);
|
|
7560
7509
|
if (e === void 0)
|
|
7561
7510
|
return [];
|
|
@@ -7572,17 +7521,17 @@ function Ps(r) {
|
|
|
7572
7521
|
})) : i = i.concat([new h(s, e[s], `unknown property "${s}"`)]);
|
|
7573
7522
|
return i;
|
|
7574
7523
|
}
|
|
7575
|
-
function
|
|
7524
|
+
function Ps(r) {
|
|
7576
7525
|
const e = r.key;
|
|
7577
7526
|
let t = r.value;
|
|
7578
7527
|
t = t instanceof String ? t.valueOf() : t;
|
|
7579
7528
|
const n = z(t);
|
|
7580
|
-
return n === "array" &&
|
|
7529
|
+
return n === "array" && !$s(t) && !Rs(t) ? [new h(e, t, `projection expected, invalid array ${JSON.stringify(t)} found`)] : ["array", "string"].includes(n) ? [] : [new h(e, t, `projection expected, invalid type "${n}" found`)];
|
|
7581
7530
|
}
|
|
7582
|
-
function
|
|
7531
|
+
function Rs(r) {
|
|
7583
7532
|
return !!["interpolate", "step", "literal"].includes(r[0]);
|
|
7584
7533
|
}
|
|
7585
|
-
function
|
|
7534
|
+
function $s(r) {
|
|
7586
7535
|
return Array.isArray(r) && r.length === 3 && typeof r[0] == "string" && typeof r[1] == "string" && typeof r[2] == "number";
|
|
7587
7536
|
}
|
|
7588
7537
|
const sn = {
|
|
@@ -7603,8 +7552,8 @@ const sn = {
|
|
|
7603
7552
|
light: ra,
|
|
7604
7553
|
sky: na,
|
|
7605
7554
|
terrain: aa,
|
|
7606
|
-
projection:
|
|
7607
|
-
projectionDefinition:
|
|
7555
|
+
projection: _s,
|
|
7556
|
+
projectionDefinition: Ps,
|
|
7608
7557
|
string: Ee,
|
|
7609
7558
|
formatted: Ms,
|
|
7610
7559
|
resolvedImage: Is,
|
|
@@ -7674,7 +7623,7 @@ function ce(r) {
|
|
|
7674
7623
|
function ln(r) {
|
|
7675
7624
|
if (!r)
|
|
7676
7625
|
return {
|
|
7677
|
-
style: qe[
|
|
7626
|
+
style: qe[$t[0].referenceStyleID].getDefaultVariant().getExpandedStyleURL(),
|
|
7678
7627
|
requiresUrlMonitoring: !1,
|
|
7679
7628
|
// default styles don't require URL monitoring
|
|
7680
7629
|
isFallback: !0
|
|
@@ -7686,13 +7635,13 @@ function ln(r) {
|
|
|
7686
7635
|
requiresUrlMonitoring: !1,
|
|
7687
7636
|
isFallback: !1
|
|
7688
7637
|
} : t.isValidJSON ? {
|
|
7689
|
-
style: qe[
|
|
7638
|
+
style: qe[$t[0].referenceStyleID].getDefaultVariant().getExpandedStyleURL(),
|
|
7690
7639
|
requiresUrlMonitoring: !1,
|
|
7691
7640
|
// default styles don't require URL monitoring
|
|
7692
7641
|
isFallback: !0
|
|
7693
|
-
} : r.startsWith("http") ? { style: r, requiresUrlMonitoring: !0, isFallback: !1 } : r.toLowerCase().includes(".json") ? { style: js(r), requiresUrlMonitoring: !0, isFallback: !1 } : { style:
|
|
7642
|
+
} : r.startsWith("http") ? { style: r, requiresUrlMonitoring: !0, isFallback: !1 } : r.toLowerCase().includes(".json") ? { style: js(r), requiresUrlMonitoring: !0, isFallback: !1 } : { style: _a(r), requiresUrlMonitoring: !0, isFallback: !1 };
|
|
7694
7643
|
}
|
|
7695
|
-
return r instanceof
|
|
7644
|
+
return r instanceof Pa ? { style: r.getExpandedStyleURL(), requiresUrlMonitoring: !1, isFallback: !1 } : r instanceof Ra ? {
|
|
7696
7645
|
style: r.getDefaultVariant().getExpandedStyleURL(),
|
|
7697
7646
|
requiresUrlMonitoring: !1,
|
|
7698
7647
|
isFallback: !1
|
|
@@ -7701,7 +7650,7 @@ function ln(r) {
|
|
|
7701
7650
|
requiresUrlMonitoring: !1,
|
|
7702
7651
|
isFallback: !1
|
|
7703
7652
|
} : {
|
|
7704
|
-
style: qe[
|
|
7653
|
+
style: qe[$t[0].referenceStyleID].getDefaultVariant().getExpandedStyleURL(),
|
|
7705
7654
|
requiresUrlMonitoring: !1,
|
|
7706
7655
|
// default styles don't require URL monitoring
|
|
7707
7656
|
isFallback: !0
|
|
@@ -7840,6 +7789,28 @@ class qs extends ko {
|
|
|
7840
7789
|
], n = this._map.project(t), a = this._map.unproject([n.x, n.y]), o = this._map.unproject([n.x + 20, n.y]), i = a.distanceTo(o) / 20, s = Math.ceil(2 * this._accuracy / i);
|
|
7841
7790
|
this._circleElement.style.width = `${s}px`, this._circleElement.style.height = `${s}px`;
|
|
7842
7791
|
}
|
|
7792
|
+
// We are overwriting the method _setErrorState from Maplibre's GeolocateControl because the
|
|
7793
|
+
// case BACKGROUND_ERROR is not dealt with in the original function and yields an error.
|
|
7794
|
+
// Related issue: https://github.com/maplibre/maplibre-gl-js/issues/2294
|
|
7795
|
+
_setErrorState() {
|
|
7796
|
+
switch (this._watchState) {
|
|
7797
|
+
case "WAITING_ACTIVE":
|
|
7798
|
+
this._watchState = "ACTIVE_ERROR", this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");
|
|
7799
|
+
break;
|
|
7800
|
+
case "ACTIVE_LOCK":
|
|
7801
|
+
this._watchState = "ACTIVE_ERROR", this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"), this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");
|
|
7802
|
+
break;
|
|
7803
|
+
case "BACKGROUND":
|
|
7804
|
+
this._watchState = "BACKGROUND_ERROR", this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"), this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");
|
|
7805
|
+
break;
|
|
7806
|
+
case "ACTIVE_ERROR":
|
|
7807
|
+
break;
|
|
7808
|
+
case "BACKGROUND_ERROR":
|
|
7809
|
+
break;
|
|
7810
|
+
default:
|
|
7811
|
+
throw new Error(`Unexpected watchState ${this._watchState}`);
|
|
7812
|
+
}
|
|
7813
|
+
}
|
|
7843
7814
|
}
|
|
7844
7815
|
var H, Q, me, he, K, Ye, U, la, Z, ua;
|
|
7845
7816
|
class Gt {
|
|
@@ -8097,7 +8068,7 @@ class Gs extends S.Map {
|
|
|
8097
8068
|
const v = d.error.url, w = new URL(v);
|
|
8098
8069
|
w.search = "";
|
|
8099
8070
|
const b = w.href;
|
|
8100
|
-
this.monitoredStyleUrls.has(b) && (this.monitoredStyleUrls.delete(b), u());
|
|
8071
|
+
this.monitoredStyleUrls && this.monitoredStyleUrls.has(b) && (this.monitoredStyleUrls.delete(b), u());
|
|
8101
8072
|
return;
|
|
8102
8073
|
}
|
|
8103
8074
|
if (this.styleInProcess)
|
|
@@ -8111,7 +8082,7 @@ class Gs extends S.Map {
|
|
|
8111
8082
|
this.primaryLanguage = d ?? F.primaryLanguage;
|
|
8112
8083
|
}
|
|
8113
8084
|
this.forceLanguageUpdate = !(this.primaryLanguage === E.STYLE || this.primaryLanguage === E.STYLE_LOCK), this.languageAlwaysBeenStyle = this.primaryLanguage === E.STYLE, this.terrainExaggeration = t.terrainExaggeration ?? this.terrainExaggeration, this.curentProjection = t.projection, this.on("styledata", () => {
|
|
8114
|
-
this.curentProjection === "mercator" ? this.setProjection({ type: "mercator" }) : this.curentProjection === "globe" &&
|
|
8085
|
+
this.curentProjection === "mercator" ? this.setProjection({ type: "mercator" }) : this.curentProjection === "globe" && this.setProjection({ type: "globe" });
|
|
8115
8086
|
}), this.once("styledata", async () => {
|
|
8116
8087
|
if (!t.geolocate || t.center || t.hash && i)
|
|
8117
8088
|
return;
|
|
@@ -8232,7 +8203,7 @@ class Gs extends S.Map {
|
|
|
8232
8203
|
language: b,
|
|
8233
8204
|
apiKey: T,
|
|
8234
8205
|
maptilerLogo: j,
|
|
8235
|
-
|
|
8206
|
+
canvasContextAttributes: R,
|
|
8236
8207
|
refreshExpiredTiles: ae,
|
|
8237
8208
|
maxBounds: we,
|
|
8238
8209
|
scrollZoom: De,
|
|
@@ -8256,7 +8227,7 @@ class Gs extends S.Map {
|
|
|
8256
8227
|
apiKey: T,
|
|
8257
8228
|
container: "null",
|
|
8258
8229
|
maptilerLogo: j,
|
|
8259
|
-
|
|
8230
|
+
canvasContextAttributes: R,
|
|
8260
8231
|
refreshExpiredTiles: ae,
|
|
8261
8232
|
maxBounds: we,
|
|
8262
8233
|
scrollZoom: De,
|
|
@@ -8510,7 +8481,7 @@ class Gs extends S.Map {
|
|
|
8510
8481
|
return (a = this.minimap) == null || a.setGlyphs(t, n), super.setGlyphs(t, n);
|
|
8511
8482
|
}
|
|
8512
8483
|
getStyleLanguage() {
|
|
8513
|
-
return !this.style.stylesheet.metadata || typeof this.style.stylesheet.metadata != "object" ? null : "maptiler:language" in this.style.stylesheet.metadata && typeof this.style.stylesheet.metadata["maptiler:language"] == "string" ?
|
|
8484
|
+
return !this.style || !this.style.stylesheet || !this.style.stylesheet.metadata || typeof this.style.stylesheet.metadata != "object" ? null : "maptiler:language" in this.style.stylesheet.metadata && typeof this.style.stylesheet.metadata["maptiler:language"] == "string" ? $a(this.style.stylesheet.metadata["maptiler:language"]) : null;
|
|
8514
8485
|
}
|
|
8515
8486
|
/**
|
|
8516
8487
|
* Define the primary language of the map. Note that not all the languages shorthands provided are available.
|
|
@@ -8548,7 +8519,7 @@ class Gs extends S.Map {
|
|
|
8548
8519
|
o = n;
|
|
8549
8520
|
}
|
|
8550
8521
|
let i = E.LOCAL.flag, s = ["get", i];
|
|
8551
|
-
o.flag === E.VISITOR.flag ? (i =
|
|
8522
|
+
o.flag === E.VISITOR.flag ? (i = Pr().flag, s = [
|
|
8552
8523
|
"case",
|
|
8553
8524
|
["all", ["has", i], ["has", E.LOCAL.flag]],
|
|
8554
8525
|
[
|
|
@@ -8584,7 +8555,7 @@ class Gs extends S.Map {
|
|
|
8584
8555
|
]
|
|
8585
8556
|
],
|
|
8586
8557
|
["get", E.LOCAL.flag]
|
|
8587
|
-
]) : o.flag === E.AUTO.flag ? (i =
|
|
8558
|
+
]) : o.flag === E.AUTO.flag ? (i = Pr().flag, s = ["coalesce", ["get", i], ["get", E.LOCAL.flag]]) : o === E.LOCAL ? (i = E.LOCAL.flag, s = ["get", i]) : (i = o.flag, s = ["coalesce", ["get", i], ["get", E.LOCAL.flag]]);
|
|
8588
8559
|
const { layers: l } = this.getStyle(), u = this.originalLabelStyle.size === 0;
|
|
8589
8560
|
if (u) {
|
|
8590
8561
|
const c = So(l, this);
|
|
@@ -8720,14 +8691,14 @@ class Gs extends S.Map {
|
|
|
8720
8691
|
});
|
|
8721
8692
|
}
|
|
8722
8693
|
async fitToIpBounds() {
|
|
8723
|
-
const t = await
|
|
8694
|
+
const t = await _r.info();
|
|
8724
8695
|
this.fitBounds(t.country_bounds, {
|
|
8725
8696
|
duration: 0,
|
|
8726
8697
|
padding: 100
|
|
8727
8698
|
});
|
|
8728
8699
|
}
|
|
8729
8700
|
async centerOnIpPoint(t) {
|
|
8730
|
-
const n = await
|
|
8701
|
+
const n = await _r.info();
|
|
8731
8702
|
this.jumpTo({
|
|
8732
8703
|
center: [(n == null ? void 0 : n.longitude) ?? 0, (n == null ? void 0 : n.latitude) ?? 0],
|
|
8733
8704
|
zoom: t || 11
|
|
@@ -8772,23 +8743,19 @@ class Gs extends S.Map {
|
|
|
8772
8743
|
*/
|
|
8773
8744
|
isGlobeProjection() {
|
|
8774
8745
|
const t = this.getProjection();
|
|
8775
|
-
return t ? t.type === "globe"
|
|
8746
|
+
return (t == null ? void 0 : t.type) === "globe";
|
|
8776
8747
|
}
|
|
8777
8748
|
/**
|
|
8778
|
-
*
|
|
8749
|
+
* Activate the globe projection.
|
|
8779
8750
|
*/
|
|
8780
|
-
enableGlobeProjection(
|
|
8781
|
-
this.isGlobeProjection()
|
|
8782
|
-
this.transform.setGlobeViewAllowed(!0, !0);
|
|
8783
|
-
})) : this.transform.setGlobeViewAllowed(!0, !0), this.curentProjection = "globe");
|
|
8751
|
+
enableGlobeProjection() {
|
|
8752
|
+
this.isGlobeProjection() !== !0 && (this.setProjection({ type: "globe" }), this.curentProjection = "globe");
|
|
8784
8753
|
}
|
|
8785
8754
|
/**
|
|
8786
|
-
*
|
|
8755
|
+
* Activate the mercator projection.
|
|
8787
8756
|
*/
|
|
8788
|
-
enableMercatorProjection(
|
|
8789
|
-
this.isGlobeProjection()
|
|
8790
|
-
this.setProjection({ type: "mercator" });
|
|
8791
|
-
})) : this.setProjection({ type: "mercator" }), this.curentProjection = "mercator");
|
|
8757
|
+
enableMercatorProjection() {
|
|
8758
|
+
this.isGlobeProjection() !== !1 && (this.setProjection({ type: "mercator" }), this.curentProjection = "mercator");
|
|
8792
8759
|
}
|
|
8793
8760
|
/**
|
|
8794
8761
|
* Returns `true` is the language was ever updated, meaning changed
|
|
@@ -8862,7 +8829,7 @@ function fa(r, e) {
|
|
|
8862
8829
|
).toString(16);
|
|
8863
8830
|
const p = B(c, "Pair"), m = {};
|
|
8864
8831
|
for (const f of Array.from(p))
|
|
8865
|
-
m[
|
|
8832
|
+
m[_(k(f, "key")) ?? ""] = _(k(f, "styleUrl"));
|
|
8866
8833
|
i[`#${Te(c, "id")}`] = m;
|
|
8867
8834
|
}
|
|
8868
8835
|
for (const c of Array.from(s))
|
|
@@ -8882,9 +8849,9 @@ function Ks(r) {
|
|
|
8882
8849
|
const t = [], n = [];
|
|
8883
8850
|
e.length === 0 && (e = B(r, "gx:coord"));
|
|
8884
8851
|
for (const o of Array.from(e))
|
|
8885
|
-
t.push(Hs(
|
|
8852
|
+
t.push(Hs(_(o) ?? ""));
|
|
8886
8853
|
const a = B(r, "when");
|
|
8887
|
-
for (const o of Array.from(a)) n.push(
|
|
8854
|
+
for (const o of Array.from(a)) n.push(_(o));
|
|
8888
8855
|
return {
|
|
8889
8856
|
coords: t,
|
|
8890
8857
|
times: n
|
|
@@ -8906,17 +8873,17 @@ function st(r) {
|
|
|
8906
8873
|
if (t = n[o], e[a] === "Point")
|
|
8907
8874
|
s.push({
|
|
8908
8875
|
type: "Point",
|
|
8909
|
-
coordinates: ha(
|
|
8876
|
+
coordinates: ha(_(k(t, "coordinates")) ?? "")
|
|
8910
8877
|
});
|
|
8911
8878
|
else if (e[a] === "LineString")
|
|
8912
8879
|
s.push({
|
|
8913
8880
|
type: "LineString",
|
|
8914
|
-
coordinates: mn(
|
|
8881
|
+
coordinates: mn(_(k(t, "coordinates")) ?? "")
|
|
8915
8882
|
});
|
|
8916
8883
|
else if (e[a] === "Polygon") {
|
|
8917
8884
|
const u = B(t, "LinearRing"), c = [];
|
|
8918
8885
|
for (i = 0; i < u.length; i++)
|
|
8919
|
-
c.push(mn(
|
|
8886
|
+
c.push(mn(_(k(u[i], "coordinates")) ?? ""));
|
|
8920
8887
|
s.push({
|
|
8921
8888
|
type: "Polygon",
|
|
8922
8889
|
coordinates: c
|
|
@@ -8932,8 +8899,8 @@ function st(r) {
|
|
|
8932
8899
|
return { geoms: s, coordTimes: l };
|
|
8933
8900
|
}
|
|
8934
8901
|
function Ws(r, e, t, n) {
|
|
8935
|
-
const a = st(r), o = {}, i =
|
|
8936
|
-
let f, d =
|
|
8902
|
+
const a = st(r), o = {}, i = _(k(r, "name")), s = _(k(r, "address")), l = _(k(r, "description")), u = k(r, "TimeSpan"), c = k(r, "TimeStamp"), p = k(r, "ExtendedData"), m = k(r, "visibility");
|
|
8903
|
+
let f, d = _(k(r, "styleUrl")), y = k(r, "LineStyle"), v = k(r, "PolyStyle");
|
|
8937
8904
|
if (!a.geoms.length) return [];
|
|
8938
8905
|
if (i && (o.name = i), s && (o.address = s), d) {
|
|
8939
8906
|
d[0] !== "#" && (d = `#${d}`), o.styleUrl = d, e[d] && (o.styleHash = e[d]), n[d] && (o.styleMapHash = n[d], o.styleHash = e[n[d].normal ?? ""]);
|
|
@@ -8944,32 +8911,32 @@ function Ws(r, e, t, n) {
|
|
|
8944
8911
|
if (T) {
|
|
8945
8912
|
const j = k(T, "Icon");
|
|
8946
8913
|
if (j) {
|
|
8947
|
-
const
|
|
8948
|
-
|
|
8914
|
+
const R = _(k(j, "href"));
|
|
8915
|
+
R && (o.icon = R);
|
|
8949
8916
|
}
|
|
8950
8917
|
}
|
|
8951
8918
|
}
|
|
8952
8919
|
}
|
|
8953
8920
|
if (l && (o.description = l), u) {
|
|
8954
|
-
const b =
|
|
8921
|
+
const b = _(k(u, "begin")), T = _(k(u, "end"));
|
|
8955
8922
|
b && T && (o.timespan = { begin: b, end: T });
|
|
8956
8923
|
}
|
|
8957
|
-
if (c !== null && (o.timestamp =
|
|
8958
|
-
const b = fn(
|
|
8959
|
-
T && (o.stroke = T), Number.isNaN(j) || (o["stroke-opacity"] = j), Number.isNaN(
|
|
8924
|
+
if (c !== null && (o.timestamp = _(k(c, "when")) ?? (/* @__PURE__ */ new Date()).toISOString()), y !== null) {
|
|
8925
|
+
const b = fn(_(k(y, "color"))), T = b[0], j = b[1], R = Number.parseFloat(_(k(y, "width")) ?? "");
|
|
8926
|
+
T && (o.stroke = T), Number.isNaN(j) || (o["stroke-opacity"] = j), Number.isNaN(R) || (o["stroke-width"] = R);
|
|
8960
8927
|
}
|
|
8961
8928
|
if (v) {
|
|
8962
|
-
const b = fn(
|
|
8963
|
-
T && (o.fill = T), Number.isNaN(j) || (o["fill-opacity"] = j),
|
|
8929
|
+
const b = fn(_(k(v, "color"))), T = b[0], j = b[1], R = _(k(v, "fill")), ae = _(k(v, "outline"));
|
|
8930
|
+
T && (o.fill = T), Number.isNaN(j) || (o["fill-opacity"] = j), R && (o["fill-opacity"] = R === "1" ? o["fill-opacity"] || 1 : 0), ae && (o["stroke-opacity"] = ae === "1" ? o["stroke-opacity"] || 1 : 0);
|
|
8964
8931
|
}
|
|
8965
8932
|
if (p) {
|
|
8966
8933
|
const b = B(p, "Data"), T = B(p, "SimpleData");
|
|
8967
8934
|
for (f = 0; f < b.length; f++)
|
|
8968
|
-
o[b[f].getAttribute("name") ?? ""] =
|
|
8935
|
+
o[b[f].getAttribute("name") ?? ""] = _(k(b[f], "value")) ?? "";
|
|
8969
8936
|
for (f = 0; f < T.length; f++)
|
|
8970
|
-
o[T[f].getAttribute("name") ?? ""] =
|
|
8937
|
+
o[T[f].getAttribute("name") ?? ""] = _(T[f]) ?? "";
|
|
8971
8938
|
}
|
|
8972
|
-
m !== null && (o.visibility =
|
|
8939
|
+
m !== null && (o.visibility = _(m) ?? ""), a.coordTimes.length !== 0 && (o.coordTimes = a.coordTimes.length === 1 ? a.coordTimes[0] : a.coordTimes);
|
|
8973
8940
|
const w = {
|
|
8974
8941
|
type: "Feature",
|
|
8975
8942
|
geometry: a.geoms.length === 1 ? a.geoms[0] : {
|
|
@@ -9056,7 +9023,7 @@ function ya(r) {
|
|
|
9056
9023
|
if (r) {
|
|
9057
9024
|
const t = k(r, "line");
|
|
9058
9025
|
if (t) {
|
|
9059
|
-
const n =
|
|
9026
|
+
const n = _(k(t, "color")), a = Number.parseFloat(_(k(t, "opacity")) ?? "0"), o = Number.parseFloat(_(k(t, "width")) ?? "0");
|
|
9060
9027
|
n && (e.stroke = n), Number.isNaN(a) || (e["stroke-opacity"] = a), Number.isNaN(o) || (e["stroke-width"] = o * 96 / 25.4);
|
|
9061
9028
|
}
|
|
9062
9029
|
}
|
|
@@ -9109,14 +9076,14 @@ function Xs(r) {
|
|
|
9109
9076
|
function ma(r) {
|
|
9110
9077
|
return r.map(Number.parseFloat).map((e) => Number.isNaN(e) ? null : e);
|
|
9111
9078
|
}
|
|
9112
|
-
function
|
|
9079
|
+
function _(r) {
|
|
9113
9080
|
return r && Xs(r), r && r.textContent;
|
|
9114
9081
|
}
|
|
9115
9082
|
function rr(r, e) {
|
|
9116
9083
|
const t = {};
|
|
9117
9084
|
let n, a;
|
|
9118
9085
|
for (a = 0; a < e.length; a++)
|
|
9119
|
-
n = k(r, e[a]), n && (t[e[a]] =
|
|
9086
|
+
n = k(r, e[a]), n && (t[e[a]] = _(n) ?? "");
|
|
9120
9087
|
return t;
|
|
9121
9088
|
}
|
|
9122
9089
|
function ha(r) {
|
|
@@ -9130,10 +9097,10 @@ function mn(r) {
|
|
|
9130
9097
|
function ga(r) {
|
|
9131
9098
|
const e = [yn(r, "lon"), yn(r, "lat")], t = k(r, "ele"), n = k(r, "gpxtpx:hr") || k(r, "hr"), a = k(r, "time");
|
|
9132
9099
|
let o;
|
|
9133
|
-
return t && (o = Number.parseFloat(
|
|
9100
|
+
return t && (o = Number.parseFloat(_(t) ?? "0"), Number.isNaN(o) || e.push(o)), {
|
|
9134
9101
|
coordinates: e,
|
|
9135
|
-
time: a ?
|
|
9136
|
-
heartRate: n !== null ? Number.parseFloat(
|
|
9102
|
+
time: a ? _(a) : null,
|
|
9103
|
+
heartRate: n !== null ? Number.parseFloat(_(n) ?? "0") : null
|
|
9137
9104
|
};
|
|
9138
9105
|
}
|
|
9139
9106
|
function Qs(r) {
|
|
@@ -10143,7 +10110,7 @@ function Mr() {
|
|
|
10143
10110
|
function zt() {
|
|
10144
10111
|
return `maptiler_source_${kn()}`;
|
|
10145
10112
|
}
|
|
10146
|
-
function
|
|
10113
|
+
function _t() {
|
|
10147
10114
|
return `maptiler_layer_${kn()}`;
|
|
10148
10115
|
}
|
|
10149
10116
|
function gn(r, e) {
|
|
@@ -10161,7 +10128,7 @@ function gn(r, e) {
|
|
|
10161
10128
|
function Me(r) {
|
|
10162
10129
|
return ["interpolate", ["linear"], ["zoom"], ...r.flatMap((e) => [e.zoom, e.value])];
|
|
10163
10130
|
}
|
|
10164
|
-
function
|
|
10131
|
+
function P(r) {
|
|
10165
10132
|
return ["interpolate", ["linear"], ["zoom"], ...r.flatMap((e) => [e.zoom, e.value])];
|
|
10166
10133
|
}
|
|
10167
10134
|
function nl(r, e) {
|
|
@@ -10288,7 +10255,7 @@ async function sl(r, e, t = {}) {
|
|
|
10288
10255
|
function ll(r, e) {
|
|
10289
10256
|
if (e.layerId && r.getLayer(e.layerId))
|
|
10290
10257
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
10291
|
-
const t = e.sourceId ?? zt(), n = e.layerId ??
|
|
10258
|
+
const t = e.sourceId ?? zt(), n = e.layerId ?? _t(), a = {
|
|
10292
10259
|
polylineLayerId: n,
|
|
10293
10260
|
polylineOutlineLayerId: "",
|
|
10294
10261
|
polylineSourceId: t
|
|
@@ -10314,10 +10281,10 @@ function ll(r, e) {
|
|
|
10314
10281
|
minzoom: e.minzoom ?? 0,
|
|
10315
10282
|
maxzoom: e.maxzoom ?? 23,
|
|
10316
10283
|
paint: {
|
|
10317
|
-
"line-opacity": typeof f == "number" ? f :
|
|
10284
|
+
"line-opacity": typeof f == "number" ? f : P(f),
|
|
10318
10285
|
"line-color": typeof m == "string" ? m : Me(m),
|
|
10319
10286
|
"line-width": nl(o, p),
|
|
10320
|
-
"line-blur": typeof d == "number" ? d :
|
|
10287
|
+
"line-blur": typeof d == "number" ? d : P(d)
|
|
10321
10288
|
}
|
|
10322
10289
|
},
|
|
10323
10290
|
e.beforeId
|
|
@@ -10335,11 +10302,11 @@ function ll(r, e) {
|
|
|
10335
10302
|
minzoom: e.minzoom ?? 0,
|
|
10336
10303
|
maxzoom: e.maxzoom ?? 23,
|
|
10337
10304
|
paint: {
|
|
10338
|
-
"line-opacity": typeof s == "number" ? s :
|
|
10305
|
+
"line-opacity": typeof s == "number" ? s : P(s),
|
|
10339
10306
|
"line-color": typeof i == "string" ? i : Me(i),
|
|
10340
|
-
"line-width": typeof o == "number" ? o :
|
|
10341
|
-
"line-blur": typeof l == "number" ? l :
|
|
10342
|
-
"line-gap-width": typeof u == "number" ? u :
|
|
10307
|
+
"line-width": typeof o == "number" ? o : P(o),
|
|
10308
|
+
"line-blur": typeof l == "number" ? l : P(l),
|
|
10309
|
+
"line-gap-width": typeof u == "number" ? u : P(u),
|
|
10343
10310
|
// For some reasons passing "line-dasharray" with the value "undefined"
|
|
10344
10311
|
// results in no showing the line while it should have the same behavior
|
|
10345
10312
|
// of not adding the property "line-dasharray" as all.
|
|
@@ -10354,7 +10321,7 @@ function ll(r, e) {
|
|
|
10354
10321
|
function ul(r, e) {
|
|
10355
10322
|
if (e.layerId && r.getLayer(e.layerId))
|
|
10356
10323
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
10357
|
-
const t = e.sourceId ?? zt(), n = e.layerId ??
|
|
10324
|
+
const t = e.sourceId ?? zt(), n = e.layerId ?? _t(), a = {
|
|
10358
10325
|
polygonLayerId: n,
|
|
10359
10326
|
polygonOutlineLayerId: e.outline ? `${n}_outline` : "",
|
|
10360
10327
|
polygonSourceId: t
|
|
@@ -10379,7 +10346,7 @@ function ul(r, e) {
|
|
|
10379
10346
|
maxzoom: e.maxzoom ?? 23,
|
|
10380
10347
|
paint: {
|
|
10381
10348
|
"fill-color": typeof c == "string" ? c : Me(c),
|
|
10382
|
-
"fill-opacity": typeof p == "number" ? p :
|
|
10349
|
+
"fill-opacity": typeof p == "number" ? p : P(p),
|
|
10383
10350
|
// Adding a pattern if provided
|
|
10384
10351
|
...y && { "fill-pattern": y }
|
|
10385
10352
|
}
|
|
@@ -10387,12 +10354,12 @@ function ul(r, e) {
|
|
|
10387
10354
|
e.beforeId
|
|
10388
10355
|
), e.outline === !0) {
|
|
10389
10356
|
let v;
|
|
10390
|
-
m === "inside" ? typeof i == "number" ? v = 0.5 * i : v =
|
|
10357
|
+
m === "inside" ? typeof i == "number" ? v = 0.5 * i : v = P(
|
|
10391
10358
|
i.map(({ zoom: w, value: b }) => ({
|
|
10392
10359
|
zoom: w,
|
|
10393
10360
|
value: 0.5 * b
|
|
10394
10361
|
}))
|
|
10395
|
-
) : m === "outside" ? typeof i == "number" ? v = -0.5 * i : v =
|
|
10362
|
+
) : m === "outside" ? typeof i == "number" ? v = -0.5 * i : v = P(
|
|
10396
10363
|
i.map((w) => ({
|
|
10397
10364
|
zoom: w.zoom,
|
|
10398
10365
|
value: -0.5 * w.value
|
|
@@ -10409,10 +10376,10 @@ function ul(r, e) {
|
|
|
10409
10376
|
minzoom: e.minzoom ?? 0,
|
|
10410
10377
|
maxzoom: e.maxzoom ?? 23,
|
|
10411
10378
|
paint: {
|
|
10412
|
-
"line-opacity": typeof l == "number" ? l :
|
|
10379
|
+
"line-opacity": typeof l == "number" ? l : P(l),
|
|
10413
10380
|
"line-color": typeof s == "string" ? s : Me(s),
|
|
10414
|
-
"line-width": typeof i == "number" ? i :
|
|
10415
|
-
"line-blur": typeof u == "number" ? u :
|
|
10381
|
+
"line-width": typeof i == "number" ? i : P(i),
|
|
10382
|
+
"line-blur": typeof u == "number" ? u : P(u),
|
|
10416
10383
|
"line-offset": v,
|
|
10417
10384
|
// For some reasons passing "line-dasharray" with the value "undefined"
|
|
10418
10385
|
// results in no showing the line while it should have the same behavior
|
|
@@ -10435,10 +10402,10 @@ function ul(r, e) {
|
|
|
10435
10402
|
function cl(r, e) {
|
|
10436
10403
|
if (e.layerId && r.getLayer(e.layerId))
|
|
10437
10404
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
10438
|
-
const t = e.minPointRadius ?? 10, n = e.maxPointRadius ?? 50, a = e.cluster ?? !1, o = 20, i = Array.isArray(e.pointColor) ? e.pointColor : va.TURBO.scale(10, e.cluster ? 1e4 : 1e3).resample("ease-out-square"), s = i.getBounds(), l = e.sourceId ?? zt(), u = e.layerId ??
|
|
10405
|
+
const t = e.minPointRadius ?? 10, n = e.maxPointRadius ?? 50, a = e.cluster ?? !1, o = 20, i = Array.isArray(e.pointColor) ? e.pointColor : va.TURBO.scale(10, e.cluster ? 1e4 : 1e3).resample("ease-out-square"), s = i.getBounds(), l = e.sourceId ?? zt(), u = e.layerId ?? _t(), c = e.showLabel ?? a, p = e.alignOnViewport ?? !0, m = e.outline ?? !1, f = e.outlineOpacity ?? 1, d = e.outlineWidth ?? 1, y = e.outlineColor ?? "#FFFFFF";
|
|
10439
10406
|
let v;
|
|
10440
10407
|
const w = e.zoomCompensation ?? !0, b = e.minzoom ?? 0, T = e.maxzoom ?? 23;
|
|
10441
|
-
typeof e.pointOpacity == "number" ? v = e.pointOpacity : Array.isArray(e.pointOpacity) ? v =
|
|
10408
|
+
typeof e.pointOpacity == "number" ? v = e.pointOpacity : Array.isArray(e.pointOpacity) ? v = P(e.pointOpacity) : e.cluster ? v = wn(i, "point_count") : e.property ? v = wn(i, e.property) : v = P([
|
|
10442
10409
|
{ zoom: b, value: 0 },
|
|
10443
10410
|
{ zoom: b + 0.25, value: 1 },
|
|
10444
10411
|
{ zoom: T - 0.25, value: 1 },
|
|
@@ -10451,16 +10418,16 @@ function cl(r, e) {
|
|
|
10451
10418
|
pointSourceId: l
|
|
10452
10419
|
};
|
|
10453
10420
|
if (e.data && !r.getSource(l)) {
|
|
10454
|
-
let
|
|
10455
|
-
typeof
|
|
10421
|
+
let R = e.data;
|
|
10422
|
+
typeof R == "string" && ht(R) && (R = `https://api.maptiler.com/data/${R}/features.json?key=${F.apiKey}`), r.addSource(l, {
|
|
10456
10423
|
type: "geojson",
|
|
10457
|
-
data:
|
|
10424
|
+
data: R,
|
|
10458
10425
|
cluster: a
|
|
10459
10426
|
});
|
|
10460
10427
|
}
|
|
10461
10428
|
if (a) {
|
|
10462
10429
|
j.clusterLayerId = `${u}_cluster`;
|
|
10463
|
-
const
|
|
10430
|
+
const R = Array.from({ length: o }, (ae, we) => {
|
|
10464
10431
|
const De = s.min + we * (s.max - s.min) / (o - 1);
|
|
10465
10432
|
return {
|
|
10466
10433
|
value: De,
|
|
@@ -10476,15 +10443,15 @@ function cl(r, e) {
|
|
|
10476
10443
|
filter: ["has", "point_count"],
|
|
10477
10444
|
paint: {
|
|
10478
10445
|
// 'circle-color': options.pointColor ?? colorDrivenByProperty(clusterStyle, "point_count"),
|
|
10479
|
-
"circle-color": typeof e.pointColor == "string" ? e.pointColor : vn(
|
|
10480
|
-
"circle-radius": typeof e.pointRadius == "number" ? e.pointRadius : Array.isArray(e.pointRadius) ?
|
|
10446
|
+
"circle-color": typeof e.pointColor == "string" ? e.pointColor : vn(R, "point_count"),
|
|
10447
|
+
"circle-radius": typeof e.pointRadius == "number" ? e.pointRadius : Array.isArray(e.pointRadius) ? P(e.pointRadius) : bn(R, "point_count", !1),
|
|
10481
10448
|
"circle-pitch-alignment": p ? "viewport" : "map",
|
|
10482
10449
|
"circle-pitch-scale": "map",
|
|
10483
10450
|
// scale with camera distance regardless of viewport/biewport alignement
|
|
10484
10451
|
"circle-opacity": v,
|
|
10485
10452
|
...m && {
|
|
10486
|
-
"circle-stroke-opacity": typeof f == "number" ? f :
|
|
10487
|
-
"circle-stroke-width": typeof d == "number" ? d :
|
|
10453
|
+
"circle-stroke-opacity": typeof f == "number" ? f : P(f),
|
|
10454
|
+
"circle-stroke-width": typeof d == "number" ? d : P(d),
|
|
10488
10455
|
"circle-stroke-color": typeof y == "string" ? y : Me(y)
|
|
10489
10456
|
}
|
|
10490
10457
|
},
|
|
@@ -10504,11 +10471,11 @@ function cl(r, e) {
|
|
|
10504
10471
|
// scale with camera distance regardless of viewport/biewport alignement
|
|
10505
10472
|
// 'circle-color': options.pointColor ?? clusterStyle[0].color,
|
|
10506
10473
|
"circle-color": typeof e.pointColor == "string" ? e.pointColor : i.getColorHex(i.getBounds().min),
|
|
10507
|
-
"circle-radius": typeof e.pointRadius == "number" ? e.pointRadius : Array.isArray(e.pointRadius) ?
|
|
10474
|
+
"circle-radius": typeof e.pointRadius == "number" ? e.pointRadius : Array.isArray(e.pointRadius) ? P(e.pointRadius) : R[0].pointRadius * 0.75,
|
|
10508
10475
|
"circle-opacity": v,
|
|
10509
10476
|
...m && {
|
|
10510
|
-
"circle-stroke-opacity": typeof f == "number" ? f :
|
|
10511
|
-
"circle-stroke-width": typeof d == "number" ? d :
|
|
10477
|
+
"circle-stroke-opacity": typeof f == "number" ? f : P(f),
|
|
10478
|
+
"circle-stroke-width": typeof d == "number" ? d : P(d),
|
|
10512
10479
|
"circle-stroke-color": typeof y == "string" ? y : Me(y)
|
|
10513
10480
|
}
|
|
10514
10481
|
},
|
|
@@ -10518,13 +10485,13 @@ function cl(r, e) {
|
|
|
10518
10485
|
e.beforeId
|
|
10519
10486
|
);
|
|
10520
10487
|
} else {
|
|
10521
|
-
let
|
|
10488
|
+
let R = typeof e.pointColor == "string" ? e.pointColor : Array.isArray(e.pointColor) ? e.pointColor.getColorHex(e.pointColor.getBounds().min) : Mr(), ae = typeof e.pointRadius == "number" ? w ? P([
|
|
10522
10489
|
{ zoom: 0, value: e.pointRadius * 0.025 },
|
|
10523
10490
|
{ zoom: 2, value: e.pointRadius * 0.05 },
|
|
10524
10491
|
{ zoom: 4, value: e.pointRadius * 0.1 },
|
|
10525
10492
|
{ zoom: 8, value: e.pointRadius * 0.25 },
|
|
10526
10493
|
{ zoom: 16, value: e.pointRadius * 1 }
|
|
10527
|
-
]) : e.pointRadius : Array.isArray(e.pointRadius) ?
|
|
10494
|
+
]) : e.pointRadius : Array.isArray(e.pointRadius) ? P(e.pointRadius) : w ? P([
|
|
10528
10495
|
{ zoom: 0, value: t * 0.05 },
|
|
10529
10496
|
{ zoom: 2, value: t * 0.1 },
|
|
10530
10497
|
{ zoom: 4, value: t * 0.2 },
|
|
@@ -10540,7 +10507,7 @@ function cl(r, e) {
|
|
|
10540
10507
|
color: typeof e.pointColor == "string" ? e.pointColor : i.getColorHex(tt)
|
|
10541
10508
|
};
|
|
10542
10509
|
});
|
|
10543
|
-
|
|
10510
|
+
R = vn(we, e.property), ae = bn(we, e.property, w);
|
|
10544
10511
|
}
|
|
10545
10512
|
r.addLayer(
|
|
10546
10513
|
{
|
|
@@ -10555,12 +10522,12 @@ function cl(r, e) {
|
|
|
10555
10522
|
"circle-pitch-alignment": p ? "viewport" : "map",
|
|
10556
10523
|
"circle-pitch-scale": "map",
|
|
10557
10524
|
// scale with camera distance regardless of viewport/biewport alignement
|
|
10558
|
-
"circle-color":
|
|
10525
|
+
"circle-color": R,
|
|
10559
10526
|
"circle-opacity": v,
|
|
10560
10527
|
"circle-radius": ae,
|
|
10561
10528
|
...m && {
|
|
10562
|
-
"circle-stroke-opacity": typeof f == "number" ? f :
|
|
10563
|
-
"circle-stroke-width": typeof d == "number" ? d :
|
|
10529
|
+
"circle-stroke-opacity": typeof f == "number" ? f : P(f),
|
|
10530
|
+
"circle-stroke-width": typeof d == "number" ? d : P(d),
|
|
10564
10531
|
"circle-stroke-color": typeof y == "string" ? y : Me(y)
|
|
10565
10532
|
}
|
|
10566
10533
|
},
|
|
@@ -10572,7 +10539,7 @@ function cl(r, e) {
|
|
|
10572
10539
|
}
|
|
10573
10540
|
if (c !== !1 && (e.cluster || e.property)) {
|
|
10574
10541
|
j.labelLayerId = `${u}_label`;
|
|
10575
|
-
const
|
|
10542
|
+
const R = e.labelColor ?? "#fff", ae = e.labelSize ?? 12;
|
|
10576
10543
|
r.addLayer(
|
|
10577
10544
|
{
|
|
10578
10545
|
id: j.labelLayerId,
|
|
@@ -10588,7 +10555,7 @@ function cl(r, e) {
|
|
|
10588
10555
|
// so that the largest value goes on top
|
|
10589
10556
|
},
|
|
10590
10557
|
paint: {
|
|
10591
|
-
"text-color":
|
|
10558
|
+
"text-color": R,
|
|
10592
10559
|
"text-opacity": v
|
|
10593
10560
|
},
|
|
10594
10561
|
minzoom: b,
|
|
@@ -10602,7 +10569,7 @@ function cl(r, e) {
|
|
|
10602
10569
|
function pl(r, e) {
|
|
10603
10570
|
if (e.layerId && r.getLayer(e.layerId))
|
|
10604
10571
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
10605
|
-
const t = e.sourceId ?? zt(), n = e.layerId ??
|
|
10572
|
+
const t = e.sourceId ?? zt(), n = e.layerId ?? _t(), a = e.minzoom ?? 0, o = e.maxzoom ?? 23, i = e.zoomCompensation ?? !0, s = e.opacity ?? [
|
|
10606
10573
|
{ zoom: a, value: 0 },
|
|
10607
10574
|
{ zoom: a + 0.25, value: 1 },
|
|
10608
10575
|
{ zoom: o - 0.25, value: 1 },
|
|
@@ -10630,7 +10597,7 @@ function pl(r, e) {
|
|
|
10630
10597
|
{ zoom: 16, value: 50 }
|
|
10631
10598
|
], y = e.radius ?? (i ? d : 10);
|
|
10632
10599
|
let v = 1;
|
|
10633
|
-
typeof y == "number" ? v = y : Array.isArray(y) && "zoom" in y[0] ? v =
|
|
10600
|
+
typeof y == "number" ? v = y : Array.isArray(y) && "zoom" in y[0] ? v = P(y) : p && Array.isArray(y) && "propertyValue" in y[0] ? v = ol(y, p, i) : !p && Array.isArray(y) && "propertyValue" in y[0] ? (v = P(d), console.warn("The option `.radius` can only be property-driven if the option `.property` is provided.")) : v = P(d);
|
|
10634
10601
|
const w = {
|
|
10635
10602
|
heatmapLayerId: n,
|
|
10636
10603
|
heatmapSourceId: t
|
|
@@ -10651,10 +10618,10 @@ function pl(r, e) {
|
|
|
10651
10618
|
maxzoom: o,
|
|
10652
10619
|
paint: {
|
|
10653
10620
|
"heatmap-weight": f,
|
|
10654
|
-
"heatmap-intensity": typeof c == "number" ? c :
|
|
10621
|
+
"heatmap-intensity": typeof c == "number" ? c : P(c),
|
|
10655
10622
|
"heatmap-color": il(l),
|
|
10656
10623
|
"heatmap-radius": v,
|
|
10657
|
-
"heatmap-opacity": typeof s == "number" ? s :
|
|
10624
|
+
"heatmap-opacity": typeof s == "number" ? s : P(s)
|
|
10658
10625
|
}
|
|
10659
10626
|
},
|
|
10660
10627
|
e.beforeId
|
|
@@ -10689,10 +10656,10 @@ const ql = S.Map, Ul = S.Marker, Bl = S.Popup, Vl = S.Style, Gl = S.CanvasSource
|
|
|
10689
10656
|
TwoFingersTouchZoomRotateHandler: Iu,
|
|
10690
10657
|
DoubleClickZoomHandler: Eu,
|
|
10691
10658
|
TwoFingersTouchZoomHandler: zu,
|
|
10692
|
-
TwoFingersTouchRotateHandler:
|
|
10693
|
-
getWorkerCount:
|
|
10694
|
-
setWorkerCount:
|
|
10695
|
-
getMaxParallelImageRequests:
|
|
10659
|
+
TwoFingersTouchRotateHandler: _u,
|
|
10660
|
+
getWorkerCount: Pu,
|
|
10661
|
+
setWorkerCount: Ru,
|
|
10662
|
+
getMaxParallelImageRequests: $u,
|
|
10696
10663
|
setMaxParallelImageRequests: ju,
|
|
10697
10664
|
getWorkerUrl: Nu,
|
|
10698
10665
|
setWorkerUrl: Fu,
|
|
@@ -10711,7 +10678,7 @@ export {
|
|
|
10711
10678
|
Gl as CanvasSourceMLGL,
|
|
10712
10679
|
x as ColorRamp,
|
|
10713
10680
|
va as ColorRampCollection,
|
|
10714
|
-
|
|
10681
|
+
Pl as CooperativeGesturesHandler,
|
|
10715
10682
|
su as CooperativeGesturesHandlerMLGL,
|
|
10716
10683
|
Eu as DoubleClickZoomHandler,
|
|
10717
10684
|
Mu as DragPanHandler,
|
|
@@ -10728,7 +10695,7 @@ export {
|
|
|
10728
10695
|
Lu as Hash,
|
|
10729
10696
|
Ll as ImageSource,
|
|
10730
10697
|
Kl as ImageSourceMLGL,
|
|
10731
|
-
|
|
10698
|
+
Rl as KeyboardHandler,
|
|
10732
10699
|
lu as KeyboardHandlerMLGL,
|
|
10733
10700
|
E as Language,
|
|
10734
10701
|
gu as LngLat,
|
|
@@ -10765,7 +10732,7 @@ export {
|
|
|
10765
10732
|
Ku as ReferenceMapStyle,
|
|
10766
10733
|
Co as ScaleControl,
|
|
10767
10734
|
ru as ScaleControlMLGL,
|
|
10768
|
-
|
|
10735
|
+
_l as ScrollZoomHandler,
|
|
10769
10736
|
iu as ScrollZoomHandlerMLGL,
|
|
10770
10737
|
to as SdkConfig,
|
|
10771
10738
|
Wu as ServiceError,
|
|
@@ -10773,9 +10740,9 @@ export {
|
|
|
10773
10740
|
Vl as StyleMLGL,
|
|
10774
10741
|
au as TerrainControMLGL,
|
|
10775
10742
|
El as TerrainControl,
|
|
10776
|
-
|
|
10743
|
+
$l as TwoFingersTouchPitchHandler,
|
|
10777
10744
|
uu as TwoFingersTouchPitchHandlerMLGL,
|
|
10778
|
-
|
|
10745
|
+
_u as TwoFingersTouchRotateHandler,
|
|
10779
10746
|
zu as TwoFingersTouchZoomHandler,
|
|
10780
10747
|
Iu as TwoFingersTouchZoomRotateHandler,
|
|
10781
10748
|
Tl as VectorTileSource,
|
|
@@ -10797,18 +10764,18 @@ export {
|
|
|
10797
10764
|
rc as geocoding,
|
|
10798
10765
|
nc as geolocation,
|
|
10799
10766
|
ac as getAutoLanguage,
|
|
10800
|
-
|
|
10767
|
+
Pr as getBrowserLanguage,
|
|
10801
10768
|
oc as getBufferToPixelDataParser,
|
|
10802
10769
|
ic as getLanguageInfoFromCode,
|
|
10803
10770
|
sc as getLanguageInfoFromFlag,
|
|
10804
10771
|
lc as getLanguageInfoFromKey,
|
|
10805
10772
|
yu as getMapLibreVersion,
|
|
10806
|
-
|
|
10773
|
+
$u as getMaxParallelImageRequests,
|
|
10807
10774
|
hu as getRTLTextPluginStatus,
|
|
10808
10775
|
uc as getTileCache,
|
|
10809
10776
|
Dl as getVersion,
|
|
10810
10777
|
po as getWebGLSupportError,
|
|
10811
|
-
|
|
10778
|
+
Pu as getWorkerCount,
|
|
10812
10779
|
Nu as getWorkerUrl,
|
|
10813
10780
|
pa as gpx,
|
|
10814
10781
|
Qs as gpxOrKml,
|
|
@@ -10824,7 +10791,7 @@ export {
|
|
|
10824
10791
|
Uu as removeProtocol,
|
|
10825
10792
|
ju as setMaxParallelImageRequests,
|
|
10826
10793
|
mu as setRTLTextPlugin,
|
|
10827
|
-
|
|
10794
|
+
Ru as setWorkerCount,
|
|
10828
10795
|
Fu as setWorkerUrl,
|
|
10829
10796
|
yc as staticMaps,
|
|
10830
10797
|
Ar as str2xml,
|