@maptiler/sdk 3.9.0-rc.3 → 3.9.0-rc.5
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 +2041 -2015
- package/dist/maptiler-sdk.mjs.map +1 -1
- package/dist/src/Map.d.ts +3 -4
- package/dist/src/custom-layers/CubemapLayer/CubemapLayer.d.ts +7 -0
- package/dist/src/custom-layers/RadialGradientLayer/RadialGradientLayer.d.ts +7 -0
- package/dist/src/index.d.ts +1 -9
- package/dist/src/mapstyle.d.ts +1 -0
- package/dist/src/utils/object.d.ts +1 -0
- package/package.json +3 -3
- package/test-results/tests-map-load-Awaits-until-map-ready-and-takes-snapshot-chromium/trace.zip +0 -0
package/dist/src/Map.d.ts
CHANGED
|
@@ -182,12 +182,12 @@ export declare class Map extends maplibregl.Map {
|
|
|
182
182
|
* @param active - Whether the animation should be active.
|
|
183
183
|
*/
|
|
184
184
|
setSpaceAnimationActive(active: boolean): void;
|
|
185
|
-
private
|
|
186
|
-
private
|
|
185
|
+
private setSpaceFromSpec;
|
|
186
|
+
private setHaloFromSpec;
|
|
187
187
|
private initSpace;
|
|
188
188
|
private initHalo;
|
|
189
189
|
getHalo(): RadialGradientLayer | undefined;
|
|
190
|
-
setHalo(halo: GradientDefinition): void;
|
|
190
|
+
setHalo(halo: GradientDefinition | boolean): void;
|
|
191
191
|
private options;
|
|
192
192
|
private isTerrainEnabled;
|
|
193
193
|
private terrainExaggeration;
|
|
@@ -249,7 +249,6 @@ export declare class Map extends maplibregl.Map {
|
|
|
249
249
|
* - a longer form with the prefix `"maptiler://"` (eg. `"maptiler://streets-v2"`)
|
|
250
250
|
*/
|
|
251
251
|
setStyle(style: null | ReferenceMapStyle | MapStyleVariant | StyleSpecification | StyleSpecificationWithMetaData | string, options?: StyleSwapOptions & StyleOptions): this;
|
|
252
|
-
private spaceboxLoadingState;
|
|
253
252
|
/**
|
|
254
253
|
* Adds a [MapLibre style layer](https://maplibre.org/maplibre-style-spec/layers)
|
|
255
254
|
* to the map's style.
|
|
@@ -203,6 +203,13 @@ declare class CubemapLayer implements CustomLayerInterface {
|
|
|
203
203
|
* @returns {CubemapLayerConstructorOptions} The current configuration options.
|
|
204
204
|
*/
|
|
205
205
|
getConfig(): CubemapLayerConstructorOptions;
|
|
206
|
+
/**
|
|
207
|
+
* Checks if the cubemap needs to be updated based on the provided specification.
|
|
208
|
+
*
|
|
209
|
+
* @param {CubemapDefinition} spec - The cubemap specification to compare with the current cubemap.
|
|
210
|
+
* @returns {boolean} True if the cubemap needs to be updated, false otherwise.
|
|
211
|
+
*/
|
|
212
|
+
shouldUpdate(newSpec?: CubemapDefinition): boolean;
|
|
206
213
|
private setCubemapFaces;
|
|
207
214
|
/**
|
|
208
215
|
* Sets the cubemap for the layer based on the provided definition.
|
|
@@ -96,6 +96,13 @@ export declare class RadialGradientLayer implements CustomLayerInterface {
|
|
|
96
96
|
* @returns {GradientDefinition} The current gradient configuration.
|
|
97
97
|
*/
|
|
98
98
|
getConfig(): GradientDefinition;
|
|
99
|
+
/**
|
|
100
|
+
* Checks if the gradient needs to be updated based on the provided specification.
|
|
101
|
+
*
|
|
102
|
+
* @param {GradientDefinition} spec - The gradient specification to compare with the current gradient.
|
|
103
|
+
* @returns {boolean} True if the gradient needs to be updated, false otherwise.
|
|
104
|
+
*/
|
|
105
|
+
shouldUpdate(newSpec?: GradientDefinition): boolean;
|
|
99
106
|
/**
|
|
100
107
|
* Animates the radial gradient into view by gradually scaling from 0 to the target scale.
|
|
101
108
|
*
|
package/dist/src/index.d.ts
CHANGED
|
@@ -31,15 +31,7 @@ declare const TwoFingersTouchPitchHandlerMLGL: typeof maplibregl.TwoFingersTouch
|
|
|
31
31
|
declare const MapWheelEventMLGL: typeof maplibregl.MapWheelEvent;
|
|
32
32
|
declare const MapTouchEventMLGL: typeof maplibregl.MapTouchEvent;
|
|
33
33
|
declare const MapMouseEventMLGL: typeof maplibregl.MapMouseEvent;
|
|
34
|
-
declare const configMLGL:
|
|
35
|
-
MAX_PARALLEL_IMAGE_REQUESTS: number;
|
|
36
|
-
MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: number;
|
|
37
|
-
MAX_TILE_CACHE_ZOOM_LEVELS: number;
|
|
38
|
-
REGISTERED_PROTOCOLS: {
|
|
39
|
-
[x: string]: maplibregl.AddProtocolAction;
|
|
40
|
-
};
|
|
41
|
-
WORKER_URL: string;
|
|
42
|
-
};
|
|
34
|
+
declare const configMLGL: maplibregl.Config;
|
|
43
35
|
declare const getMapLibreVersion: typeof maplibregl.getVersion;
|
|
44
36
|
declare const setRTLTextPlugin: typeof maplibregl.setRTLTextPlugin, getRTLTextPluginStatus: typeof maplibregl.getRTLTextPluginStatus, LngLat: typeof maplibregl.LngLat, LngLatBounds: typeof maplibregl.LngLatBounds, MercatorCoordinate: typeof maplibregl.MercatorCoordinate, Evented: typeof maplibregl.Evented, AJAXError: typeof maplibregl.AJAXError, prewarm: typeof maplibregl.prewarm, clearPrewarmedResources: typeof maplibregl.clearPrewarmedResources, Hash: typeof maplibregl.Hash, Point: typeof maplibregl.Point, EdgeInsets: typeof maplibregl.EdgeInsets, DragRotateHandler: typeof maplibregl.DragRotateHandler, DragPanHandler: typeof maplibregl.DragPanHandler, TwoFingersTouchZoomRotateHandler: typeof maplibregl.TwoFingersTouchZoomRotateHandler, DoubleClickZoomHandler: typeof maplibregl.DoubleClickZoomHandler, TwoFingersTouchZoomHandler: typeof maplibregl.TwoFingersTouchZoomHandler, TwoFingersTouchRotateHandler: typeof maplibregl.TwoFingersTouchRotateHandler, getWorkerCount: typeof maplibregl.getWorkerCount, setWorkerCount: typeof maplibregl.setWorkerCount, getMaxParallelImageRequests: typeof maplibregl.getMaxParallelImageRequests, setMaxParallelImageRequests: typeof maplibregl.setMaxParallelImageRequests, getWorkerUrl: typeof maplibregl.getWorkerUrl, setWorkerUrl: typeof maplibregl.setWorkerUrl, addSourceType: (name: string, SourceType: maplibregl.SourceClass) => Promise<void>, importScriptInWorkers: typeof maplibregl.importScriptInWorkers, addProtocol: typeof maplibregl.addProtocol, removeProtocol: typeof maplibregl.removeProtocol;
|
|
45
37
|
export { setRTLTextPlugin, getRTLTextPluginStatus, LngLat, LngLatBounds, MercatorCoordinate, Evented, AJAXError, prewarm, clearPrewarmedResources, Hash, Point, EdgeInsets, DragRotateHandler, DragPanHandler, TwoFingersTouchZoomRotateHandler, DoubleClickZoomHandler, TwoFingersTouchZoomHandler, TwoFingersTouchRotateHandler, getWorkerCount, setWorkerCount, getMaxParallelImageRequests, setMaxParallelImageRequests, getWorkerUrl, setWorkerUrl, addSourceType, importScriptInWorkers, addProtocol, removeProtocol, getMapLibreVersion, MapMLGL, MarkerMLGL, PopupMLGL, StyleMLGL, CanvasSourceMLGL, GeoJSONSourceMLGL, ImageSourceMLGL, RasterTileSourceMLGL, RasterDEMTileSourceMLGL, VectorTileSourceMLGL, VideoSourceMLGL, NavigationControMLGL, GeolocateControlMLGL, AttributionControlMLGL, LogoControlMLGL, ScaleControlMLGL, FullscreenControlMLGL, TerrainControMLGL, BoxZoomHandlerMLGL, ScrollZoomHandlerMLGL, CooperativeGesturesHandlerMLGL, KeyboardHandlerMLGL, TwoFingersTouchPitchHandlerMLGL, MapWheelEventMLGL, MapTouchEventMLGL, MapMouseEventMLGL, configMLGL, };
|
package/dist/src/mapstyle.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function orderObjectKeys<T extends Record<string, unknown>>(obj?: T): T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptiler/sdk",
|
|
3
|
-
"version": "3.9.0-rc.
|
|
3
|
+
"version": "3.9.0-rc.5",
|
|
4
4
|
"description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
|
|
5
5
|
"author": "MapTiler",
|
|
6
6
|
"module": "dist/maptiler-sdk.mjs",
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
"vitest": "^3.0.9"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@maplibre/maplibre-gl-style-spec": "~
|
|
89
|
+
"@maplibre/maplibre-gl-style-spec": "~23.3.0",
|
|
90
90
|
"@maptiler/client": "2.6.0-rc.3",
|
|
91
91
|
"events": "^3.3.0",
|
|
92
92
|
"gl-matrix": "^3.4.3",
|
|
93
93
|
"js-base64": "^3.7.7",
|
|
94
|
-
"maplibre-gl": "~5.
|
|
94
|
+
"maplibre-gl": "~5.6.0",
|
|
95
95
|
"uuid": "^11.0.5"
|
|
96
96
|
}
|
|
97
97
|
}
|