@maptiler/sdk 3.7.0 → 3.7.1-rc1
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
|
@@ -8228,7 +8228,7 @@ class Al {
|
|
|
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 El = "@maptiler/sdk", Tl = "3.7.
|
|
8231
|
+
const El = "@maptiler/sdk", Tl = "3.7.1-rc1", _l = "The Javascript & TypeScript map SDK tailored for MapTiler Cloud", Il = "MapTiler", Ml = "dist/maptiler-sdk.mjs", Pl = "dist/maptiler-sdk.d.ts", Rl = "dist/maptiler-sdk.css", zl = "module", Fl = "dist/maptiler-sdk.mjs", $l = { ".": { 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" } }, Ol = ["maptiler", "map", "sdk", "webmap", "cloud", "webGL", "maplibre"], jl = "https://docs.maptiler.com/sdk-js/", Nl = "BSD-3-Clause", Dl = { type: "git", url: "https://github.com/maptiler/maptiler-sdk-js.git" }, Ul = { 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" }, Bl = { "@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" }, ql = { "@maplibre/maplibre-gl-style-spec": "~23.3.0", "@maptiler/client": "~2.5.0", events: "^3.3.0", "gl-matrix": "^3.4.3", "js-base64": "^3.7.7", "maplibre-gl": "~5.6.0", uuid: "^11.0.5" }, Gl = {
|
|
8232
8232
|
name: El,
|
|
8233
8233
|
version: Tl,
|
|
8234
8234
|
description: _l,
|
|
@@ -10301,8 +10301,6 @@ let Ru = class no extends k.Map {
|
|
|
10301
10301
|
} catch (y) {
|
|
10302
10302
|
this.styleInProcess = !1, console.error("[Map.setStyle]: Error while setting style:", y);
|
|
10303
10303
|
}
|
|
10304
|
-
if (typeof a.style == "string" || a.requiresUrlMonitoring)
|
|
10305
|
-
return this;
|
|
10306
10304
|
const s = () => {
|
|
10307
10305
|
const y = a.style;
|
|
10308
10306
|
if (!y.projection || y.projection.type === "mercator") {
|
|
@@ -10315,6 +10313,8 @@ let Ru = class no extends k.Map {
|
|
|
10315
10313
|
const m = (y == null ? void 0 : y.target.getStyle()) ?? a.style, w = this.getLayersOrder()[0];
|
|
10316
10314
|
this.space ? this.setSpaceFromStyle({ style: m }) : this.initSpace({ before: w, spec: (x = (v = m.metadata) == null ? void 0 : v.maptiler) == null ? void 0 : x.space }), this.halo ? this.setHaloFromStyle({ style: m }) : this.initHalo({ before: w, spec: (L = (A = m.metadata) == null ? void 0 : A.maptiler) == null ? void 0 : L.halo });
|
|
10317
10315
|
};
|
|
10316
|
+
if (typeof a.style == "string" || a.requiresUrlMonitoring)
|
|
10317
|
+
return this.on("styledata", l), this;
|
|
10318
10318
|
if (this.styleInProcess && !this.spaceboxLoadingState.styleLoadCallbackSet)
|
|
10319
10319
|
return this.once("style.load", l), this.once("styledata", l), this.spaceboxLoadingState.styleLoadCallbackSet = !0, this;
|
|
10320
10320
|
if (((p = o == null ? void 0 : o.terrain) == null ? void 0 : p.source) !== ((f = i == null ? void 0 : i.terrain) == null ? void 0 : f.source) || ((d = o == null ? void 0 : o.terrain) == null ? void 0 : d.exaggeration) !== ((h = i == null ? void 0 : i.terrain) == null ? void 0 : h.exaggeration))
|
|
@@ -12610,7 +12610,7 @@ const Cc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12610
12610
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12611
12611
|
Go();
|
|
12612
12612
|
function Lc() {
|
|
12613
|
-
return "3.7.
|
|
12613
|
+
return "3.7.1-rc1";
|
|
12614
12614
|
}
|
|
12615
12615
|
const Ac = k.Map, Ec = k.Marker, Tc = k.Popup, _c = k.Style, Ic = k.CanvasSource, Mc = k.GeoJSONSource, Pc = k.ImageSource, Rc = k.RasterTileSource, zc = k.RasterDEMTileSource, Fc = k.VectorTileSource, $c = k.VideoSource, Oc = k.NavigationControl, jc = k.GeolocateControl, Nc = k.AttributionControl, Dc = k.LogoControl, Uc = k.ScaleControl, Bc = k.FullscreenControl, qc = k.TerrainControl, Gc = k.BoxZoomHandler, Vc = k.ScrollZoomHandler, Hc = k.CooperativeGesturesHandler, Kc = k.KeyboardHandler, Xc = k.TwoFingersTouchPitchHandler, Zc = k.MapWheelEvent, Yc = k.MapTouchEvent, Wc = k.MapMouseEvent, Jc = k.config, Qc = k.getVersion, {
|
|
12616
12616
|
setRTLTextPlugin: ep,
|