@maptiler/sdk 3.6.2-rc3 → 3.7.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.mjs +25 -25
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/maptiler-sdk.mjs
CHANGED
|
@@ -7,7 +7,7 @@ var S = (r, e, t) => To(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) ? dn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), _e = (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 _o, getLanguageInfoFromCode as hn, config as nr, MapStyle as et, mapStylePresetList as ar, expandMapStyle as Io, MapStyleVariant as Mo, ReferenceMapStyle as Po, toLanguageInfo as yn, getLanguageInfoFromFlag as Ro, geolocation as mn } from "@maptiler/client";
|
|
10
|
-
import { MapStyle as Ip, MapStyleVariant as Mp, ReferenceMapStyle as Pp, ServiceError as Rp, areSameLanguages as zp, bufferToPixelDataBrowser as Fp,
|
|
10
|
+
import { MapStyle as Ip, MapStyleVariant as Mp, ReferenceMapStyle as Pp, ServiceError as Rp, areSameLanguages as zp, bufferToPixelDataBrowser as Fp, canParsePixelData as $p, circumferenceAtLatitude as Op, coordinates as jp, data as Np, elevation as Dp, expandMapStyle as Up, geocoding as Bp, geolocation as qp, getAutoLanguage as Gp, getBufferToPixelDataParser as Vp, getLanguageInfoFromCode as Hp, getLanguageInfoFromFlag as Kp, getLanguageInfoFromKey as Xp, getTileCache as Zp, isLanguageInfo as Yp, mapStylePresetList as Wp, math as Jp, misc as Qp, staticMaps as ef, styleToStyle as tf, toLanguageInfo as rf } from "@maptiler/client";
|
|
11
11
|
import zo from "events";
|
|
12
12
|
import { v4 as Fo } from "uuid";
|
|
13
13
|
import { Base64 as $o } from "js-base64";
|
|
@@ -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.
|
|
8231
|
+
const El = "@maptiler/sdk", Tl = "3.7.0", _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,
|
|
@@ -9861,8 +9861,7 @@ let Ru = class no extends k.Map {
|
|
|
9861
9861
|
S(this, "isStyleLocalized", !1);
|
|
9862
9862
|
S(this, "languageIsUpdated", !1);
|
|
9863
9863
|
S(this, "spaceboxLoadingState", {
|
|
9864
|
-
styleLoadCallbackSet: !1
|
|
9865
|
-
hasLoadedOnce: !1
|
|
9864
|
+
styleLoadCallbackSet: !1
|
|
9866
9865
|
});
|
|
9867
9866
|
this.options = t, this.setStyle(n), a && this.monitorStyleUrl(n);
|
|
9868
9867
|
const u = () => {
|
|
@@ -12611,7 +12610,7 @@ const Cc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12611
12610
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12612
12611
|
Go();
|
|
12613
12612
|
function Lc() {
|
|
12614
|
-
return "3.
|
|
12613
|
+
return "3.7.0";
|
|
12615
12614
|
}
|
|
12616
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, {
|
|
12617
12616
|
setRTLTextPlugin: ep,
|
|
@@ -12734,28 +12733,29 @@ export {
|
|
|
12734
12733
|
Cp as addSourceType,
|
|
12735
12734
|
zp as areSameLanguages,
|
|
12736
12735
|
Fp as bufferToPixelDataBrowser,
|
|
12737
|
-
$p as
|
|
12736
|
+
$p as canParsePixelData,
|
|
12737
|
+
Op as circumferenceAtLatitude,
|
|
12738
12738
|
lp as clearPrewarmedResources,
|
|
12739
12739
|
D as config,
|
|
12740
12740
|
Jc as configMLGL,
|
|
12741
|
-
|
|
12741
|
+
jp as coordinates,
|
|
12742
12742
|
Oe as cubemapPresets,
|
|
12743
|
-
|
|
12743
|
+
Np as data,
|
|
12744
12744
|
rc as displayWebGLContextLostWarning,
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12745
|
+
Dp as elevation,
|
|
12746
|
+
Up as expandMapStyle,
|
|
12747
|
+
Bp as geocoding,
|
|
12748
|
+
qp as geolocation,
|
|
12749
|
+
Gp as getAutoLanguage,
|
|
12750
12750
|
gn as getBrowserLanguage,
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12751
|
+
Vp as getBufferToPixelDataParser,
|
|
12752
|
+
Hp as getLanguageInfoFromCode,
|
|
12753
|
+
Kp as getLanguageInfoFromFlag,
|
|
12754
|
+
Xp as getLanguageInfoFromKey,
|
|
12755
12755
|
Qc as getMapLibreVersion,
|
|
12756
12756
|
wp as getMaxParallelImageRequests,
|
|
12757
12757
|
tp as getRTLTextPluginStatus,
|
|
12758
|
-
|
|
12758
|
+
Zp as getTileCache,
|
|
12759
12759
|
Lc as getVersion,
|
|
12760
12760
|
Ko as getWebGLSupportError,
|
|
12761
12761
|
vp as getWorkerCount,
|
|
@@ -12765,21 +12765,21 @@ export {
|
|
|
12765
12765
|
ao as hasChildNodeWithName,
|
|
12766
12766
|
Cc as helpers,
|
|
12767
12767
|
Lp as importScriptInWorkers,
|
|
12768
|
-
|
|
12768
|
+
Yp as isLanguageInfo,
|
|
12769
12769
|
io as kml,
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12770
|
+
Wp as mapStylePresetList,
|
|
12771
|
+
Jp as math,
|
|
12772
|
+
Qp as misc,
|
|
12773
12773
|
sp as prewarm,
|
|
12774
12774
|
Ep as removeProtocol,
|
|
12775
12775
|
Sp as setMaxParallelImageRequests,
|
|
12776
12776
|
ep as setRTLTextPlugin,
|
|
12777
12777
|
bp as setWorkerCount,
|
|
12778
12778
|
kp as setWorkerUrl,
|
|
12779
|
-
|
|
12779
|
+
ef as staticMaps,
|
|
12780
12780
|
cn as str2xml,
|
|
12781
|
-
|
|
12782
|
-
|
|
12781
|
+
tf as styleToStyle,
|
|
12782
|
+
rf as toLanguageInfo,
|
|
12783
12783
|
sa as xml2str
|
|
12784
12784
|
};
|
|
12785
12785
|
//# sourceMappingURL=maptiler-sdk.mjs.map
|