@maptiler/sdk 3.8.0-rc4 → 3.8.0-rc5
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
CHANGED
|
@@ -7,7 +7,7 @@ var b = (r, e, t) => Do(r, typeof e != "symbol" ? e + "" : e, t), rr = (r, e, t)
|
|
|
7
7
|
var P = (r, e, t) => (rr(r, e, "read from private field"), t ? t.call(r) : e.get(r)), be = (r, e, t) => e.has(r) ? hn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Me = (r, e, t, n) => (rr(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), H = (r, e, t) => (rr(r, e, "access private method"), t);
|
|
8
8
|
import k from "maplibre-gl";
|
|
9
9
|
import { Language as Uo, getLanguageInfoFromCode as mn, config as nr, MapStyle as et, mapStylePresetList as ar, expandMapStyle as Bo, MapStyleVariant as qo, ReferenceMapStyle as Vo, toLanguageInfo as yn, getLanguageInfoFromFlag as Go, geolocation as gn } from "@maptiler/client";
|
|
10
|
-
import { MapStyle as
|
|
10
|
+
import { MapStyle as Xp, MapStyleVariant as Wp, ReferenceMapStyle as Yp, ServiceError as Jp, areSameLanguages as Qp, bufferToPixelDataBrowser as ef, circumferenceAtLatitude as tf, coordinates as rf, data as nf, elevation as af, expandMapStyle as of, geocoding as sf, geolocation as lf, getAutoLanguage as uf, getBufferToPixelDataParser as cf, getLanguageInfoFromCode as pf, getLanguageInfoFromFlag as ff, getLanguageInfoFromKey as df, getTileCache as hf, isLanguageInfo as mf, mapStylePresetList as yf, math as gf, misc as vf, staticMaps as bf, styleToStyle as wf, toLanguageInfo as Sf } from "@maptiler/client";
|
|
11
11
|
import Ho from "events";
|
|
12
12
|
import { v4 as Zo } from "uuid";
|
|
13
13
|
import { Base64 as Ko } from "js-base64";
|
|
@@ -8228,7 +8228,7 @@ class jl {
|
|
|
8228
8228
|
this.projectionButton.classList.remove("maplibregl-ctrl-projection-globe"), this.projectionButton.classList.remove("maplibregl-ctrl-projection-mercator"), this.map.isGlobeProjection() ? (this.projectionButton.classList.add("maplibregl-ctrl-projection-mercator"), this.projectionButton.title = "Enable Mercator projection") : (this.projectionButton.classList.add("maplibregl-ctrl-projection-globe"), this.projectionButton.title = "Enable Globe projection");
|
|
8229
8229
|
}
|
|
8230
8230
|
}
|
|
8231
|
-
const Dl = "@maptiler/sdk", Ul = "3.8.0-
|
|
8231
|
+
const Dl = "@maptiler/sdk", Ul = "3.8.0-rc5", Bl = "The Javascript & TypeScript map SDK tailored for MapTiler Cloud", ql = "MapTiler", Vl = "dist/maptiler-sdk.mjs", Gl = "dist/maptiler-sdk.d.ts", Hl = "dist/maptiler-sdk.css", Zl = "module", Kl = "dist/maptiler-sdk.mjs", Xl = { ".": { 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" } }, Wl = ["maptiler", "map", "sdk", "webmap", "cloud", "webGL", "maplibre"], Yl = "https://docs.maptiler.com/sdk-js/", Jl = "BSD-3-Clause", Ql = { type: "git", url: "https://github.com/maptiler/maptiler-sdk-js.git" }, eu = { prepare: "husky", doc: "rm -rf docs/* && typedoc --out docs && cp -r images docs/", ncu: "npx npm-check-updates", lint: "tsc --noEmit && eslint src", "lint:fix": "tsc --noEmit && eslint src --fix", "test:watch": "vitest watch -c vite.config-test.ts --dom", test: "vitest run -c vite.config-test.ts --dom", "install:clean": "rm -rf build/ dist/ node_modules/ && npm ci", dev: "npm run build-css && vite -c vite.config-dev.ts", "dev-umd": "npm run build-css && tsc && NODE_ENV=development vite build -w -c vite.config-umd.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 install:clean && npm run build" }, tu = { "@canvas/image-data": "^1.0.0", "@eslint/js": "^9.21.0", "@types/color-convert": "^2.0.4", "@types/color-name": "^2.0.0", "@types/stats.js": "^0.17.4", "@types/uuid": "^10.0.0", "@types/xmldom": "^0.1.31", "@vitest/web-worker": "^3.0.9", "@xmldom/xmldom": "^0.8.10", concurrently: "^9.1.2", eslint: "^9.21.0", "eslint-config-prettier": "^10.0.2", "eslint-plugin-prettier": "^5.2.3", "happy-dom": "^17.4.4", husky: "^8.0.0", jiti: "^2.4.2", "lint-staged": "^15.4.3", prettier: "3.5.2", "stats.js": "^0.17.0", typedoc: "^0.27.6", typescript: "^5.7.3", "typescript-eslint": "^8.25.0", vite: "^6.0.7", "vite-plugin-dts": "^4.5.0", vitest: "^3.0.9" }, ru = { "@koa/cors": "^5.0.0", "@koa/router": "^13.1.1", "@maplibre/maplibre-gl-style-spec": "~23.3.0", "@maptiler/client": "~2.4.0", events: "^3.3.0", "gl-matrix": "^3.4.3", "js-base64": "^3.7.7", koa: "^3.0.0", "maplibre-gl": "~5.6.0", uuid: "^11.0.5" }, nu = {
|
|
8232
8232
|
name: Dl,
|
|
8233
8233
|
version: Ul,
|
|
8234
8234
|
description: Bl,
|
|
@@ -10819,7 +10819,7 @@ class Ku extends Error {
|
|
|
10819
10819
|
this.name = "FetchError", this.message = a, this.status = t.status, this.statusText = t.statusText;
|
|
10820
10820
|
}
|
|
10821
10821
|
}
|
|
10822
|
-
const Xu = {
|
|
10822
|
+
const Xu = k.Evented, Wu = {
|
|
10823
10823
|
style: {
|
|
10824
10824
|
version: 8,
|
|
10825
10825
|
sources: {},
|
|
@@ -10836,11 +10836,11 @@ const Xu = {
|
|
|
10836
10836
|
hash: !1,
|
|
10837
10837
|
renderWorldCopies: !1,
|
|
10838
10838
|
terrain: !1
|
|
10839
|
-
},
|
|
10839
|
+
}, Yu = {
|
|
10840
10840
|
debug: !1,
|
|
10841
10841
|
center: [0, 0]
|
|
10842
10842
|
};
|
|
10843
|
-
class qc extends
|
|
10843
|
+
class qc extends Xu {
|
|
10844
10844
|
constructor(t) {
|
|
10845
10845
|
super();
|
|
10846
10846
|
b(this, "imageUUID");
|
|
@@ -10862,12 +10862,12 @@ class qc extends mc {
|
|
|
10862
10862
|
if (typeof t.container != "string" && !(t.container instanceof HTMLElement))
|
|
10863
10863
|
throw new Error("[ImageViewer]: `container` is required and must be a string or HTMLElement");
|
|
10864
10864
|
this.options = {
|
|
10865
|
-
...
|
|
10865
|
+
...Yu,
|
|
10866
10866
|
...t
|
|
10867
10867
|
};
|
|
10868
10868
|
const n = {
|
|
10869
10869
|
...this.options,
|
|
10870
|
-
...
|
|
10870
|
+
...Wu
|
|
10871
10871
|
}, a = new oo(n);
|
|
10872
10872
|
this.sdk = a, this.sdk.telemetry.registerViewerType("ImageViewer");
|
|
10873
10873
|
const { imageUUID: o, debug: i } = t;
|
|
@@ -10906,7 +10906,7 @@ class qc extends mc {
|
|
|
10906
10906
|
}
|
|
10907
10907
|
}
|
|
10908
10908
|
async fetchImageMetadata() {
|
|
10909
|
-
const t =
|
|
10909
|
+
const t = Ju(this.imageUUID), n = await fetch(t);
|
|
10910
10910
|
if (!n.ok)
|
|
10911
10911
|
throw new Ku(n, "image metadata");
|
|
10912
10912
|
const a = await n.json();
|
|
@@ -10915,7 +10915,7 @@ class qc extends mc {
|
|
|
10915
10915
|
addImageSource() {
|
|
10916
10916
|
if (!this.imageMetadata)
|
|
10917
10917
|
throw new Error("[ImageViewer]: Image metadata not found");
|
|
10918
|
-
const t =
|
|
10918
|
+
const t = Qu(this.imageUUID), n = (s) => Math.pow(2, Math.ceil(Math.log(s) / Math.LN2));
|
|
10919
10919
|
this.imageSize = [this.imageMetadata.width, this.imageMetadata.height], this.paddedSizeMax = Math.max(n(this.imageSize[0]), n(this.imageSize[1]));
|
|
10920
10920
|
const a = this.pxToLngLat([0, 0]), o = this.pxToLngLat(this.imageSize), i = [a.lng, o.lat, o.lng, a.lat];
|
|
10921
10921
|
this.sdk.addSource("image", {
|
|
@@ -11019,10 +11019,10 @@ class qc extends mc {
|
|
|
11019
11019
|
this.sdk.panTo(this.pxToLngLat(t), n, a);
|
|
11020
11020
|
}
|
|
11021
11021
|
}
|
|
11022
|
-
function
|
|
11022
|
+
function Ju(r) {
|
|
11023
11023
|
return `${yo()}/${r}/image.json`;
|
|
11024
11024
|
}
|
|
11025
|
-
function
|
|
11025
|
+
function Qu(r) {
|
|
11026
11026
|
return `${yo()}/${r}/{z}/{x}/{y}`;
|
|
11027
11027
|
}
|
|
11028
11028
|
function yo() {
|
|
@@ -11061,15 +11061,15 @@ function vo(r) {
|
|
|
11061
11061
|
features: []
|
|
11062
11062
|
};
|
|
11063
11063
|
for (const i of Array.from(t)) {
|
|
11064
|
-
const s =
|
|
11064
|
+
const s = nc(i);
|
|
11065
11065
|
s && o.features.push(s);
|
|
11066
11066
|
}
|
|
11067
11067
|
for (const i of Array.from(n)) {
|
|
11068
|
-
const s =
|
|
11068
|
+
const s = ac(i);
|
|
11069
11069
|
s && o.features.push(s);
|
|
11070
11070
|
}
|
|
11071
11071
|
for (const i of Array.from(a))
|
|
11072
|
-
o.features.push(
|
|
11072
|
+
o.features.push(oc(i));
|
|
11073
11073
|
return o;
|
|
11074
11074
|
}
|
|
11075
11075
|
function bo(r, e) {
|
|
@@ -11092,7 +11092,7 @@ function bo(r, e) {
|
|
|
11092
11092
|
i[`#${Ne(c, "id")}`] = f;
|
|
11093
11093
|
}
|
|
11094
11094
|
for (const c of Array.from(s))
|
|
11095
|
-
n.features = n.features.concat(
|
|
11095
|
+
n.features = n.features.concat(rc(c, a, o, i));
|
|
11096
11096
|
return n;
|
|
11097
11097
|
}
|
|
11098
11098
|
function ca(r) {
|
|
@@ -11100,15 +11100,15 @@ function ca(r) {
|
|
|
11100
11100
|
let e = "", t = 1, n = r;
|
|
11101
11101
|
return n.startsWith("#") && (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];
|
|
11102
11102
|
}
|
|
11103
|
-
function
|
|
11103
|
+
function ec(r) {
|
|
11104
11104
|
return xo(r.split(" "));
|
|
11105
11105
|
}
|
|
11106
|
-
function
|
|
11106
|
+
function tc(r) {
|
|
11107
11107
|
let e = V(r, "coord");
|
|
11108
11108
|
const t = [], n = [];
|
|
11109
11109
|
e.length === 0 && (e = V(r, "gx:coord"));
|
|
11110
11110
|
for (const o of Array.from(e))
|
|
11111
|
-
t.push(
|
|
11111
|
+
t.push(ec(O(o) ?? ""));
|
|
11112
11112
|
const a = V(r, "when");
|
|
11113
11113
|
for (const o of Array.from(a)) n.push(O(o));
|
|
11114
11114
|
return {
|
|
@@ -11148,7 +11148,7 @@ function Tt(r) {
|
|
|
11148
11148
|
coordinates: c
|
|
11149
11149
|
});
|
|
11150
11150
|
} else if (e[a] === "Track" || e[a] === "gx:Track") {
|
|
11151
|
-
const u =
|
|
11151
|
+
const u = tc(t);
|
|
11152
11152
|
s.push({
|
|
11153
11153
|
type: "LineString",
|
|
11154
11154
|
coordinates: u.coords
|
|
@@ -11157,7 +11157,7 @@ function Tt(r) {
|
|
|
11157
11157
|
}
|
|
11158
11158
|
return { geoms: s, coordTimes: l };
|
|
11159
11159
|
}
|
|
11160
|
-
function
|
|
11160
|
+
function rc(r, e, t, n) {
|
|
11161
11161
|
const a = Tt(r), o = {}, i = O(A(r, "name")), s = O(A(r, "address")), l = O(A(r, "description")), u = A(r, "TimeSpan"), c = A(r, "TimeStamp"), p = A(r, "ExtendedData"), f = A(r, "visibility");
|
|
11162
11162
|
let d, h = O(A(r, "styleUrl")), m = A(r, "LineStyle"), y = A(r, "PolyStyle");
|
|
11163
11163
|
if (!a.geoms.length) return [];
|
|
@@ -11222,7 +11222,7 @@ function wo(r, e) {
|
|
|
11222
11222
|
};
|
|
11223
11223
|
}
|
|
11224
11224
|
}
|
|
11225
|
-
function
|
|
11225
|
+
function nc(r) {
|
|
11226
11226
|
const e = V(r, "trkseg"), t = [], n = [], a = [];
|
|
11227
11227
|
let o;
|
|
11228
11228
|
for (let s = 0; s < e.length; s++)
|
|
@@ -11253,7 +11253,7 @@ function rc(r) {
|
|
|
11253
11253
|
}
|
|
11254
11254
|
};
|
|
11255
11255
|
}
|
|
11256
|
-
function
|
|
11256
|
+
function ac(r) {
|
|
11257
11257
|
const e = wo(r, "rtept");
|
|
11258
11258
|
return e === void 0 ? void 0 : {
|
|
11259
11259
|
type: "Feature",
|
|
@@ -11267,7 +11267,7 @@ function nc(r) {
|
|
|
11267
11267
|
}
|
|
11268
11268
|
};
|
|
11269
11269
|
}
|
|
11270
|
-
function
|
|
11270
|
+
function oc(r) {
|
|
11271
11271
|
return {
|
|
11272
11272
|
type: "Feature",
|
|
11273
11273
|
properties: { ...fn(r), ...zr(r, ["sym"]) },
|
|
@@ -11322,14 +11322,14 @@ function A(r, e) {
|
|
|
11322
11322
|
const t = V(r, e);
|
|
11323
11323
|
return t.length ? t[0] : null;
|
|
11324
11324
|
}
|
|
11325
|
-
function
|
|
11325
|
+
function ic(r) {
|
|
11326
11326
|
return r.normalize && r.normalize(), r;
|
|
11327
11327
|
}
|
|
11328
11328
|
function xo(r) {
|
|
11329
11329
|
return r.map(Number.parseFloat).map((e) => Number.isNaN(e) ? null : e);
|
|
11330
11330
|
}
|
|
11331
11331
|
function O(r) {
|
|
11332
|
-
return r &&
|
|
11332
|
+
return r && ic(r), r && r.textContent;
|
|
11333
11333
|
}
|
|
11334
11334
|
function zr(r, e) {
|
|
11335
11335
|
const t = {};
|
|
@@ -11355,7 +11355,7 @@ function Co(r) {
|
|
|
11355
11355
|
heartRate: n !== null ? Number.parseFloat(O(n) ?? "0") : null
|
|
11356
11356
|
};
|
|
11357
11357
|
}
|
|
11358
|
-
function
|
|
11358
|
+
function sc(r) {
|
|
11359
11359
|
let e = r;
|
|
11360
11360
|
try {
|
|
11361
11361
|
typeof e == "string" && (e = pn(e));
|
|
@@ -11372,8 +11372,8 @@ function ic(r) {
|
|
|
11372
11372
|
}
|
|
11373
11373
|
return null;
|
|
11374
11374
|
}
|
|
11375
|
-
async function
|
|
11376
|
-
const t = e.download ?? !1, n = await
|
|
11375
|
+
async function lc(r, e = {}) {
|
|
11376
|
+
const t = e.download ?? !1, n = await uc(r);
|
|
11377
11377
|
if (t) {
|
|
11378
11378
|
const a = e.filename ?? "maptiler_screenshot.png", o = document.createElement("a");
|
|
11379
11379
|
o.style.display = "none", document.body.appendChild(o), o.href = URL.createObjectURL(n), o.download = a, o.click(), setTimeout(() => {
|
|
@@ -11382,7 +11382,7 @@ async function sc(r, e = {}) {
|
|
|
11382
11382
|
}
|
|
11383
11383
|
return n;
|
|
11384
11384
|
}
|
|
11385
|
-
function
|
|
11385
|
+
function uc(r) {
|
|
11386
11386
|
return new Promise((e, t) => {
|
|
11387
11387
|
r.redraw(), r.once("idle", () => {
|
|
11388
11388
|
r.getCanvas().toBlob((n) => {
|
|
@@ -11534,7 +11534,7 @@ function Ct(r) {
|
|
|
11534
11534
|
const e = r.toString(16);
|
|
11535
11535
|
return e.length === 1 ? `0${e}` : e;
|
|
11536
11536
|
}
|
|
11537
|
-
function
|
|
11537
|
+
function cc(r) {
|
|
11538
11538
|
return `#${Ct(r[0])}${Ct(r[1])}${Ct(r[2])}${r.length === 4 ? Ct(r[3]) : ""}`;
|
|
11539
11539
|
}
|
|
11540
11540
|
class C extends Array {
|
|
@@ -11628,7 +11628,7 @@ class C extends Array {
|
|
|
11628
11628
|
smooth: !0,
|
|
11629
11629
|
withAlpha: !1
|
|
11630
11630
|
}) {
|
|
11631
|
-
return
|
|
11631
|
+
return cc(this.getColor(t, n));
|
|
11632
11632
|
}
|
|
11633
11633
|
/**
|
|
11634
11634
|
* Get the color of the color ramp at a relative position in [0, 1]
|
|
@@ -12471,7 +12471,7 @@ const _o = {
|
|
|
12471
12471
|
]
|
|
12472
12472
|
})
|
|
12473
12473
|
};
|
|
12474
|
-
async function
|
|
12474
|
+
async function pc(r, e, t = {}) {
|
|
12475
12475
|
var a, o;
|
|
12476
12476
|
if (!e.sourceId && !e.data)
|
|
12477
12477
|
throw new Error("Creating a polyline layer requires an existing .sourceId or a valid .data property");
|
|
@@ -12486,18 +12486,18 @@ async function cc(r, e, t = {}) {
|
|
|
12486
12486
|
const s = await (await fetch(n, t)).text();
|
|
12487
12487
|
n = bo(s);
|
|
12488
12488
|
} else {
|
|
12489
|
-
const i = ai(n) ??
|
|
12489
|
+
const i = ai(n) ?? sc(n);
|
|
12490
12490
|
i && (n = i);
|
|
12491
12491
|
}
|
|
12492
12492
|
if (!n)
|
|
12493
12493
|
throw new Error("Polyline data was provided as string but is incompatible with valid formats.");
|
|
12494
12494
|
}
|
|
12495
|
-
return
|
|
12495
|
+
return fc(r, {
|
|
12496
12496
|
...e,
|
|
12497
12497
|
data: n
|
|
12498
12498
|
});
|
|
12499
12499
|
}
|
|
12500
|
-
function
|
|
12500
|
+
function fc(r, e) {
|
|
12501
12501
|
if (e.layerId && r.getLayer(e.layerId))
|
|
12502
12502
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
12503
12503
|
const t = e.sourceId ?? yt(), n = e.layerId ?? gt(), a = {
|
|
@@ -12563,7 +12563,7 @@ function pc(r, e) {
|
|
|
12563
12563
|
e.beforeId
|
|
12564
12564
|
), a;
|
|
12565
12565
|
}
|
|
12566
|
-
function
|
|
12566
|
+
function dc(r, e) {
|
|
12567
12567
|
if (e.layerId && r.getLayer(e.layerId))
|
|
12568
12568
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
12569
12569
|
const t = e.sourceId ?? yt(), n = e.layerId ?? gt(), a = {
|
|
@@ -12646,7 +12646,7 @@ function fc(r, e) {
|
|
|
12646
12646
|
console.error("Could not load the pattern image.", m.message), h();
|
|
12647
12647
|
}) : h(), a;
|
|
12648
12648
|
}
|
|
12649
|
-
function
|
|
12649
|
+
function hc(r, e) {
|
|
12650
12650
|
if (e.layerId && r.getLayer(e.layerId))
|
|
12651
12651
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
12652
12652
|
const t = e.minPointRadius ?? 10, n = e.maxPointRadius ?? 50, a = e.cluster ?? !1, o = 20, i = Array.isArray(e.pointColor) ? e.pointColor : _o.TURBO.scale(10, e.cluster ? 1e4 : 1e3).resample("ease-out-square"), s = i.getBounds(), l = e.sourceId ?? yt(), u = e.layerId ?? gt(), c = e.showLabel ?? a, p = e.alignOnViewport ?? !0, f = e.outline ?? !1, d = e.outlineOpacity ?? 1, h = e.outlineWidth ?? 1, m = e.outlineColor ?? "#FFFFFF";
|
|
@@ -12813,7 +12813,7 @@ function dc(r, e) {
|
|
|
12813
12813
|
}
|
|
12814
12814
|
return E;
|
|
12815
12815
|
}
|
|
12816
|
-
function
|
|
12816
|
+
function mc(r, e) {
|
|
12817
12817
|
if (e.layerId && r.getLayer(e.layerId))
|
|
12818
12818
|
throw new Error(`A layer already exists with the layer id: ${e.layerId}`);
|
|
12819
12819
|
const t = e.sourceId ?? yt(), n = e.layerId ?? gt(), a = e.minzoom ?? 0, o = e.maxzoom ?? 23, i = e.zoomCompensation ?? !0, s = e.opacity ?? [
|
|
@@ -12872,10 +12872,10 @@ function hc(r, e) {
|
|
|
12872
12872
|
}
|
|
12873
12873
|
const Vc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12874
12874
|
__proto__: null,
|
|
12875
|
-
addHeatmap:
|
|
12876
|
-
addPoint:
|
|
12877
|
-
addPolygon:
|
|
12878
|
-
addPolyline:
|
|
12875
|
+
addHeatmap: mc,
|
|
12876
|
+
addPoint: hc,
|
|
12877
|
+
addPolygon: dc,
|
|
12878
|
+
addPolyline: pc,
|
|
12879
12879
|
colorDrivenByProperty: Or,
|
|
12880
12880
|
colorPalettes: Fr,
|
|
12881
12881
|
computeRampedOutlineWidth: Lo,
|
|
@@ -12891,11 +12891,11 @@ const Vc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12891
12891
|
radiusDrivenByPropertyHeatmap: Ao,
|
|
12892
12892
|
rampedOptionsToLayerPaintSpec: z,
|
|
12893
12893
|
rampedPropertyValueWeight: Eo,
|
|
12894
|
-
takeScreenshot:
|
|
12894
|
+
takeScreenshot: lc
|
|
12895
12895
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12896
12896
|
ri();
|
|
12897
12897
|
function Gc() {
|
|
12898
|
-
return "3.8.0-
|
|
12898
|
+
return "3.8.0-rc5";
|
|
12899
12899
|
}
|
|
12900
12900
|
const Hc = k.Map, Zc = k.Marker, Kc = k.Popup, Xc = k.Style, Wc = k.CanvasSource, Yc = k.GeoJSONSource, Jc = k.ImageSource, Qc = k.RasterTileSource, ep = k.RasterDEMTileSource, tp = k.VectorTileSource, rp = k.VideoSource, np = k.NavigationControl, ap = k.GeolocateControl, op = k.AttributionControl, ip = k.LogoControl, sp = k.ScaleControl, lp = k.FullscreenControl, up = k.TerrainControl, cp = k.BoxZoomHandler, pp = k.ScrollZoomHandler, fp = k.CooperativeGesturesHandler, dp = k.KeyboardHandler, hp = k.TwoFingersTouchPitchHandler, mp = k.MapWheelEvent, yp = k.MapTouchEvent, gp = k.MapMouseEvent, vp = k.config, bp = k.getVersion, {
|
|
12901
12901
|
setRTLTextPlugin: wp,
|
|
@@ -12903,32 +12903,32 @@ const Hc = k.Map, Zc = k.Marker, Kc = k.Popup, Xc = k.Style, Wc = k.CanvasSource
|
|
|
12903
12903
|
LngLat: xp,
|
|
12904
12904
|
LngLatBounds: kp,
|
|
12905
12905
|
MercatorCoordinate: ha,
|
|
12906
|
-
Evented:
|
|
12907
|
-
AJAXError:
|
|
12908
|
-
prewarm:
|
|
12909
|
-
clearPrewarmedResources:
|
|
12910
|
-
Hash:
|
|
12911
|
-
Point:
|
|
12912
|
-
EdgeInsets:
|
|
12913
|
-
DragRotateHandler:
|
|
12914
|
-
DragPanHandler:
|
|
12915
|
-
TwoFingersTouchZoomRotateHandler:
|
|
12916
|
-
DoubleClickZoomHandler:
|
|
12917
|
-
TwoFingersTouchZoomHandler:
|
|
12918
|
-
TwoFingersTouchRotateHandler:
|
|
12919
|
-
getWorkerCount:
|
|
12920
|
-
setWorkerCount:
|
|
12921
|
-
getMaxParallelImageRequests:
|
|
12922
|
-
setMaxParallelImageRequests:
|
|
12923
|
-
getWorkerUrl:
|
|
12924
|
-
setWorkerUrl:
|
|
12925
|
-
addSourceType:
|
|
12926
|
-
importScriptInWorkers:
|
|
12927
|
-
addProtocol:
|
|
12928
|
-
removeProtocol:
|
|
12906
|
+
Evented: Cp,
|
|
12907
|
+
AJAXError: Lp,
|
|
12908
|
+
prewarm: Ep,
|
|
12909
|
+
clearPrewarmedResources: Ap,
|
|
12910
|
+
Hash: Tp,
|
|
12911
|
+
Point: _p,
|
|
12912
|
+
EdgeInsets: Mp,
|
|
12913
|
+
DragRotateHandler: Ip,
|
|
12914
|
+
DragPanHandler: Pp,
|
|
12915
|
+
TwoFingersTouchZoomRotateHandler: Rp,
|
|
12916
|
+
DoubleClickZoomHandler: zp,
|
|
12917
|
+
TwoFingersTouchZoomHandler: Fp,
|
|
12918
|
+
TwoFingersTouchRotateHandler: $p,
|
|
12919
|
+
getWorkerCount: Op,
|
|
12920
|
+
setWorkerCount: Np,
|
|
12921
|
+
getMaxParallelImageRequests: jp,
|
|
12922
|
+
setMaxParallelImageRequests: Dp,
|
|
12923
|
+
getWorkerUrl: Up,
|
|
12924
|
+
setWorkerUrl: Bp,
|
|
12925
|
+
addSourceType: qp,
|
|
12926
|
+
importScriptInWorkers: Vp,
|
|
12927
|
+
addProtocol: Gp,
|
|
12928
|
+
removeProtocol: Hp
|
|
12929
12929
|
} = k;
|
|
12930
12930
|
export {
|
|
12931
|
-
|
|
12931
|
+
Lp as AJAXError,
|
|
12932
12932
|
zc as AttributionControl,
|
|
12933
12933
|
op as AttributionControlMLGL,
|
|
12934
12934
|
$c as BoxZoomHandler,
|
|
@@ -12944,11 +12944,11 @@ export {
|
|
|
12944
12944
|
Sr as CubemapLayer,
|
|
12945
12945
|
ge as DOMcreate,
|
|
12946
12946
|
un as DOMremove,
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12947
|
+
zp as DoubleClickZoomHandler,
|
|
12948
|
+
Pp as DragPanHandler,
|
|
12949
|
+
Ip as DragRotateHandler,
|
|
12950
|
+
Mp as EdgeInsets,
|
|
12951
|
+
Cp as Evented,
|
|
12952
12952
|
vi as FullscreenControl,
|
|
12953
12953
|
lp as FullscreenControlMLGL,
|
|
12954
12954
|
Tc as GeoJSONSource,
|
|
@@ -12956,7 +12956,7 @@ export {
|
|
|
12956
12956
|
mi as GeolocateControl,
|
|
12957
12957
|
ap as GeolocateControlMLGL,
|
|
12958
12958
|
Vu as GeolocationType,
|
|
12959
|
-
|
|
12959
|
+
Tp as Hash,
|
|
12960
12960
|
_c as ImageSource,
|
|
12961
12961
|
Jc as ImageSourceMLGL,
|
|
12962
12962
|
qc as ImageViewer,
|
|
@@ -12971,8 +12971,8 @@ export {
|
|
|
12971
12971
|
Hc as MapMLGL,
|
|
12972
12972
|
bi as MapMouseEvent,
|
|
12973
12973
|
gp as MapMouseEventMLGL,
|
|
12974
|
-
|
|
12975
|
-
|
|
12974
|
+
Xp as MapStyle,
|
|
12975
|
+
Wp as MapStyleVariant,
|
|
12976
12976
|
Bc as MapTouchEvent,
|
|
12977
12977
|
yp as MapTouchEventMLGL,
|
|
12978
12978
|
Uc as MapWheelEvent,
|
|
@@ -12987,7 +12987,7 @@ export {
|
|
|
12987
12987
|
ha as MercatorCoordinate,
|
|
12988
12988
|
np as NavigationControMLGL,
|
|
12989
12989
|
hi as NavigationControl,
|
|
12990
|
-
|
|
12990
|
+
_p as Point,
|
|
12991
12991
|
Lc as Popup,
|
|
12992
12992
|
Kc as PopupMLGL,
|
|
12993
12993
|
xr as RadialGradientLayer,
|
|
@@ -12995,76 +12995,76 @@ export {
|
|
|
12995
12995
|
ep as RasterDEMTileSourceMLGL,
|
|
12996
12996
|
Mc as RasterTileSource,
|
|
12997
12997
|
Qc as RasterTileSourceMLGL,
|
|
12998
|
-
|
|
12998
|
+
Yp as ReferenceMapStyle,
|
|
12999
12999
|
gi as ScaleControl,
|
|
13000
13000
|
sp as ScaleControlMLGL,
|
|
13001
13001
|
Oc as ScrollZoomHandler,
|
|
13002
13002
|
pp as ScrollZoomHandlerMLGL,
|
|
13003
13003
|
Xo as SdkConfig,
|
|
13004
|
-
|
|
13004
|
+
Jp as ServiceError,
|
|
13005
13005
|
Ec as Style,
|
|
13006
13006
|
Xc as StyleMLGL,
|
|
13007
13007
|
up as TerrainControMLGL,
|
|
13008
13008
|
Fc as TerrainControl,
|
|
13009
13009
|
Dc as TwoFingersTouchPitchHandler,
|
|
13010
13010
|
hp as TwoFingersTouchPitchHandlerMLGL,
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13011
|
+
$p as TwoFingersTouchRotateHandler,
|
|
13012
|
+
Fp as TwoFingersTouchZoomHandler,
|
|
13013
|
+
Rp as TwoFingersTouchZoomRotateHandler,
|
|
13014
13014
|
Pc as VectorTileSource,
|
|
13015
13015
|
tp as VectorTileSourceMLGL,
|
|
13016
13016
|
Rc as VideoSource,
|
|
13017
13017
|
rp as VideoSourceMLGL,
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13018
|
+
Gp as addProtocol,
|
|
13019
|
+
qp as addSourceType,
|
|
13020
|
+
Qp as areSameLanguages,
|
|
13021
|
+
ef as bufferToPixelDataBrowser,
|
|
13022
|
+
tf as circumferenceAtLatitude,
|
|
13023
|
+
Ap as clearPrewarmedResources,
|
|
13024
13024
|
D as config,
|
|
13025
13025
|
vp as configMLGL,
|
|
13026
|
-
|
|
13026
|
+
rf as coordinates,
|
|
13027
13027
|
Ge as cubemapPresets,
|
|
13028
|
-
|
|
13028
|
+
nf as data,
|
|
13029
13029
|
xc as displayWebGLContextLostWarning,
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13030
|
+
af as elevation,
|
|
13031
|
+
of as expandMapStyle,
|
|
13032
|
+
sf as geocoding,
|
|
13033
|
+
lf as geolocation,
|
|
13034
|
+
uf as getAutoLanguage,
|
|
13035
13035
|
vn as getBrowserLanguage,
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13036
|
+
cf as getBufferToPixelDataParser,
|
|
13037
|
+
pf as getLanguageInfoFromCode,
|
|
13038
|
+
ff as getLanguageInfoFromFlag,
|
|
13039
|
+
df as getLanguageInfoFromKey,
|
|
13040
13040
|
bp as getMapLibreVersion,
|
|
13041
|
-
|
|
13041
|
+
jp as getMaxParallelImageRequests,
|
|
13042
13042
|
Sp as getRTLTextPluginStatus,
|
|
13043
|
-
|
|
13043
|
+
hf as getTileCache,
|
|
13044
13044
|
Gc as getVersion,
|
|
13045
13045
|
oi as getWebGLSupportError,
|
|
13046
|
-
|
|
13047
|
-
|
|
13046
|
+
Op as getWorkerCount,
|
|
13047
|
+
Up as getWorkerUrl,
|
|
13048
13048
|
vo as gpx,
|
|
13049
|
-
|
|
13049
|
+
sc as gpxOrKml,
|
|
13050
13050
|
go as hasChildNodeWithName,
|
|
13051
13051
|
Vc as helpers,
|
|
13052
|
-
|
|
13053
|
-
|
|
13052
|
+
Vp as importScriptInWorkers,
|
|
13053
|
+
mf as isLanguageInfo,
|
|
13054
13054
|
bo as kml,
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13055
|
+
yf as mapStylePresetList,
|
|
13056
|
+
gf as math,
|
|
13057
|
+
vf as misc,
|
|
13058
|
+
Ep as prewarm,
|
|
13059
|
+
Hp as removeProtocol,
|
|
13060
|
+
Dp as setMaxParallelImageRequests,
|
|
13061
13061
|
wp as setRTLTextPlugin,
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13062
|
+
Np as setWorkerCount,
|
|
13063
|
+
Bp as setWorkerUrl,
|
|
13064
|
+
bf as staticMaps,
|
|
13065
13065
|
pn as str2xml,
|
|
13066
|
-
|
|
13067
|
-
|
|
13066
|
+
wf as styleToStyle,
|
|
13067
|
+
Sf as toLanguageInfo,
|
|
13068
13068
|
ua as xml2str
|
|
13069
13069
|
};
|
|
13070
13070
|
//# sourceMappingURL=maptiler-sdk.mjs.map
|