@maptiler/sdk 3.0.0-rc.5 → 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 +3 -54
- 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 +0 -1
- package/dist/src/MaptilerGeolocateControl.d.ts +0 -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/vite.config-dev.ts +27 -0
- /package/{vite.config.ts → vite.config-test.ts} +0 -0
package/dist/maptiler-sdk.css
CHANGED
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
|
|
136
136
|
/* Projection control icon - globe */
|
|
137
137
|
.maplibregl-ctrl button.maplibregl-ctrl-projection-globe .maplibregl-ctrl-icon {
|
|
138
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%
|
|
138
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2233%22%20height%3D%2233%22%20viewBox%3D%220%200%2033%2033%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16.5%2023.15C20.1727%2023.15%2023.15%2020.1727%2023.15%2016.5C23.15%2012.8273%2020.1727%209.85%2016.5%209.85C12.8273%209.85%209.85%2012.8273%209.85%2016.5C9.85%2020.1727%2012.8273%2023.15%2016.5%2023.15ZM16.5%2025C21.1944%2025%2025%2021.1944%2025%2016.5C25%2011.8056%2021.1944%208%2016.5%208C11.8056%208%208%2011.8056%208%2016.5C8%2021.1944%2011.8056%2025%2016.5%2025Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M14.9069%2024.6315C11.9661%2019.4851%2011.9661%2013.5794%2014.9069%208.43297L16.5131%209.35083C13.8973%2013.9285%2013.8973%2019.136%2016.5131%2023.7136L14.9069%2024.6315Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.0231%2024.6315C20.9639%2019.4851%2020.9639%2013.5794%2018.0231%208.43297L16.4169%209.35083C19.0327%2013.9285%2019.0327%2019.136%2016.4169%2023.7136L18.0231%2024.6315Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20d%3D%22M9.01758%2012.8H24V14.65H9.01758V12.8Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20d%3D%22M9.45752%2018.35H23.5601V20.2H9.45752V18.35Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3C%2Fsvg%3E%0A");
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/* Projection control icon - mercator */
|
|
142
142
|
.maplibregl-ctrl button.maplibregl-ctrl-projection-mercator .maplibregl-ctrl-icon {
|
|
143
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%
|
|
143
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2233%22%20height%3D%2233%22%20viewBox%3D%220%200%2033%2033%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M26.5%209.85H6.5C6.41716%209.85%206.35%209.91716%206.35%2010V23C6.35%2023.0828%206.41716%2023.15%206.5%2023.15H26.5C26.5828%2023.15%2026.65%2023.0828%2026.65%2023V10C26.65%209.91716%2026.5828%209.85%2026.5%209.85ZM6.5%208C5.39543%208%204.5%208.89543%204.5%2010V23C4.5%2024.1046%205.39543%2025%206.5%2025H26.5C27.6046%2025%2028.5%2024.1046%2028.5%2023V10C28.5%208.89543%2027.6046%208%2026.5%208H6.5Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20d%3D%22M5.5%2012.8H28.5V14.65H5.5V12.8Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20d%3D%22M10.0375%2025L10.0375%208L11.8875%208L11.8875%2025H10.0375Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20d%3D%22M15.5751%2025L15.5751%208L17.4251%208L17.4251%2025H15.5751Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20d%3D%22M21.1127%2025V8L22.9627%208L22.9627%2025H21.1127Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3Cpath%20d%3D%22M5.5%2018.35H28.5V20.2H5.5V18.35Z%22%20fill%3D%22%23444952%22%2F%3E%0A%3C%2Fsvg%3E%0A");
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.maplibregl-ctrl-scale {
|
package/dist/maptiler-sdk.d.ts
CHANGED
package/dist/maptiler-sdk.mjs
CHANGED
|
@@ -11,60 +11,7 @@ import { MapStyle as Gu, MapStyleVariant as Hu, ReferenceMapStyle as Ku, Service
|
|
|
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.10",
|
|
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,
|
|
@@ -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`)));
|