@maptiler/sdk 3.9.1-rc.1 → 3.9.1-rc.2
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 +2017 -2024
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/dist/src/Map.d.ts +15 -14
- package/package.json +3 -2
package/dist/src/Map.d.ts
CHANGED
|
@@ -48,14 +48,18 @@ export type MapOptions = Omit<MapOptionsML, "style" | "maplibreLogo"> & {
|
|
|
48
48
|
*/
|
|
49
49
|
apiKey?: string;
|
|
50
50
|
/**
|
|
51
|
-
* Shows or hides the MapTiler logo in the bottom left corner.
|
|
51
|
+
* Shows or hides the MapTiler logo in the bottom left corner (only for paid plans).
|
|
52
|
+
* Default is `false` for paid plans.
|
|
52
53
|
*
|
|
53
|
-
* For
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
54
|
+
* For free plans the MapTiler logo is always visible, and cannot be disabled.
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* mapTilerLogo: false // hides the logo
|
|
58
|
+
* ```
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* mapTilerLogo: true // shows the logo
|
|
62
|
+
* ```
|
|
59
63
|
*/
|
|
60
64
|
maptilerLogo?: boolean;
|
|
61
65
|
/**
|
|
@@ -182,12 +186,12 @@ export declare class Map extends maplibregl.Map {
|
|
|
182
186
|
* @param active - Whether the animation should be active.
|
|
183
187
|
*/
|
|
184
188
|
setSpaceAnimationActive(active: boolean): void;
|
|
185
|
-
private
|
|
186
|
-
private
|
|
189
|
+
private setSpaceFromStyle;
|
|
190
|
+
private setHaloFromStyle;
|
|
187
191
|
private initSpace;
|
|
188
192
|
private initHalo;
|
|
189
193
|
getHalo(): RadialGradientLayer | undefined;
|
|
190
|
-
setHalo(halo: GradientDefinition
|
|
194
|
+
setHalo(halo: GradientDefinition): void;
|
|
191
195
|
private options;
|
|
192
196
|
private isTerrainEnabled;
|
|
193
197
|
private terrainExaggeration;
|
|
@@ -249,10 +253,7 @@ export declare class Map extends maplibregl.Map {
|
|
|
249
253
|
* - a longer form with the prefix `"maptiler://"` (eg. `"maptiler://streets-v2"`)
|
|
250
254
|
*/
|
|
251
255
|
setStyle(style: null | ReferenceMapStyle | MapStyleVariant | StyleSpecification | StyleSpecificationWithMetaData | string, options?: StyleSwapOptions & StyleOptions): this;
|
|
252
|
-
|
|
253
|
-
* @ignore - This method is used to set the style from a JSON object.
|
|
254
|
-
*/
|
|
255
|
-
setStyleFromJSON(json: StyleSpecificationWithMetaData): void;
|
|
256
|
+
private spaceboxLoadingState;
|
|
256
257
|
/**
|
|
257
258
|
* Adds a [MapLibre style layer](https://maplibre.org/maplibre-style-spec/layers)
|
|
258
259
|
* to the map's style.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptiler/sdk",
|
|
3
|
-
"version": "3.9.1-rc.
|
|
3
|
+
"version": "3.9.1-rc.2",
|
|
4
4
|
"description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
|
|
5
5
|
"author": "MapTiler",
|
|
6
6
|
"module": "dist/maptiler-sdk.mjs",
|
|
@@ -65,14 +65,15 @@
|
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@canvas/image-data": "^1.0.0",
|
|
67
67
|
"@eslint/js": "^9.21.0",
|
|
68
|
+
"@playwright/test": "^1.51.0",
|
|
68
69
|
"@types/color-convert": "^2.0.4",
|
|
69
70
|
"@types/color-name": "^2.0.0",
|
|
71
|
+
"@types/node": "^25.0.0",
|
|
70
72
|
"@types/stats.js": "^0.17.4",
|
|
71
73
|
"@types/uuid": "^10.0.0",
|
|
72
74
|
"@types/xmldom": "^0.1.31",
|
|
73
75
|
"@vitest/web-worker": "^3.0.9",
|
|
74
76
|
"@xmldom/xmldom": "^0.8.10",
|
|
75
|
-
"@playwright/test": "^1.51.0",
|
|
76
77
|
"concurrently": "^9.1.2",
|
|
77
78
|
"eslint": "^9.21.0",
|
|
78
79
|
"eslint-config-prettier": "^10.0.2",
|