@maptiler/sdk 3.8.0-rc8 → 3.9.0-rc.1

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.
@@ -67,6 +67,12 @@ export declare class RadialGradientLayer implements CustomLayerInterface {
67
67
  * @type {Object3D<(typeof ATTRIBUTES_KEYS)[number], (typeof UNIFORMS_KEYS)[number]>}
68
68
  */
69
69
  private plane?;
70
+ /**
71
+ * Whether the halo should be animated in and out.
72
+ * @private
73
+ * @type {boolean}
74
+ */
75
+ private animationActive;
70
76
  /**
71
77
  * Creates a new RadialGradientLayer instance.
72
78
  *
@@ -128,7 +134,8 @@ export declare class RadialGradientLayer implements CustomLayerInterface {
128
134
  * @param {GradientDefinition} gradient - The new gradient definition to set for this layer.
129
135
  * @returns {Promise<void>} A promise that resolves when the new gradient is set and animated in.
130
136
  */
131
- setGradient(gradient: GradientDefinition): Promise<void>;
137
+ setGradient(gradient: GradientDefinition | boolean): Promise<void>;
138
+ setAnimationActive(active: boolean): void;
132
139
  show(): void;
133
140
  hide(): void;
134
141
  }
@@ -1,6 +1,5 @@
1
1
  import { default as maplibregl } from 'maplibre-gl';
2
2
  export type * from 'maplibre-gl';
3
- export type { ColorRamp as ColorRampML } from 'maplibre-gl';
4
3
  /**
5
4
  * Get the version of MapTiler SDK, this is declared in the vite config
6
5
  * to avoid importing the entire package.json
@@ -32,7 +31,15 @@ declare const TwoFingersTouchPitchHandlerMLGL: typeof maplibregl.TwoFingersTouch
32
31
  declare const MapWheelEventMLGL: typeof maplibregl.MapWheelEvent;
33
32
  declare const MapTouchEventMLGL: typeof maplibregl.MapTouchEvent;
34
33
  declare const MapMouseEventMLGL: typeof maplibregl.MapMouseEvent;
35
- declare const configMLGL: maplibregl.Config;
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
+ };
36
43
  declare const getMapLibreVersion: typeof maplibregl.getVersion;
37
44
  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;
38
45
  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, };
@@ -13,5 +13,5 @@ type StyleValidationReport = {
13
13
  isValidStyle: boolean;
14
14
  styleObject: maplibregl.StyleSpecification | null;
15
15
  };
16
- export declare function convertToStyleSpecificationString(str: string): StyleValidationReport;
16
+ export declare function convertStringToStyleSpecification(str: string): StyleValidationReport;
17
17
  export {};
@@ -1,6 +1,6 @@
1
1
  import { default as maplibregl, RequestParameters, ResourceType, RequestTransformFunction } from 'maplibre-gl';
2
2
  import { Map as MapSDK } from './Map';
3
- export declare function enableRTL(): void;
3
+ export declare function enableRTL(customPluginURL?: string): Promise<void>;
4
4
  export declare function bindAll(fns: Array<string>, context: any): void;
5
5
  /**
6
6
  * This function is meant to be used as transformRequest by any Map instance created.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptiler/sdk",
3
- "version": "3.8.0-rc8",
3
+ "version": "3.9.0-rc.1",
4
4
  "description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
5
5
  "author": "MapTiler",
6
6
  "module": "dist/maptiler-sdk.mjs",
@@ -86,15 +86,12 @@
86
86
  "vitest": "^3.0.9"
87
87
  },
88
88
  "dependencies": {
89
- "@koa/cors": "^5.0.0",
90
- "@koa/router": "^13.1.1",
91
- "@maplibre/maplibre-gl-style-spec": "~23.3.0",
92
- "@maptiler/client": "~2.5.0",
89
+ "@maplibre/maplibre-gl-style-spec": "~24.2.0",
90
+ "@maptiler/client": "2.6.0-rc.1",
93
91
  "events": "^3.3.0",
94
92
  "gl-matrix": "^3.4.3",
95
93
  "js-base64": "^3.7.7",
96
- "koa": "^3.0.0",
97
- "maplibre-gl": "~5.6.0",
94
+ "maplibre-gl": "~5.9.0",
98
95
  "uuid": "^11.0.5"
99
96
  }
100
97
  }