@maptiler/sdk 3.5.1-rc6 → 3.6.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/src/Map.d.ts CHANGED
@@ -6,6 +6,7 @@ import { MinimapOptionsInput } from './controls/Minimap';
6
6
  import { Telemetry } from './Telemetry';
7
7
  import { CubemapDefinition, CubemapLayer, CubemapLayerConstructorOptions } from './custom-layers/CubemapLayer';
8
8
  import { GradientDefinition, RadialGradientLayer, RadialGradientLayerConstructorOptions } from './custom-layers/RadialGradientLayer';
9
+ import { StyleSpecificationWithMetaData } from './custom-layers/extractCustomLayerStyle';
9
10
  export type LoadWithTerrainEvent = {
10
11
  type: "loadWithTerrain";
11
12
  target: Map;
@@ -217,7 +218,7 @@ export declare class Map extends maplibregl.Map {
217
218
  * - a shorthand with only the MapTIler style name (eg. `"streets-v2"`)
218
219
  * - a longer form with the prefix `"maptiler://"` (eg. `"maptiler://streets-v2"`)
219
220
  */
220
- setStyle(style: null | ReferenceMapStyle | MapStyleVariant | StyleSpecification | string, options?: StyleSwapOptions & StyleOptions): this;
221
+ setStyle(style: null | ReferenceMapStyle | MapStyleVariant | StyleSpecification | StyleSpecificationWithMetaData | string, options?: StyleSwapOptions & StyleOptions): this;
221
222
  /**
222
223
  * Adds a [MapLibre style layer](https://maplibre.org/maplibre-style-spec/layers)
223
224
  * to the map's style.
@@ -117,7 +117,9 @@ declare class CubemapLayer implements CustomLayerInterface {
117
117
  * It creates a new Object3D instance with the specified vertex and fragment shaders,
118
118
  * attributes, and uniforms. The cubemap will be rendered using this configuration.
119
119
  */
120
- updateCubemap(): void;
120
+ updateCubemap({ facesNeedUpdate }?: {
121
+ facesNeedUpdate: boolean;
122
+ }): void;
121
123
  /**
122
124
  * Called when the layer is added to the map.
123
125
  * Initializes the cubemap and sets up the WebGL context.
@@ -3,3 +3,4 @@ import { CubemapLayer } from './CubemapLayer';
3
3
  export { RadialGradientLayer, CubemapLayer };
4
4
  export * from './RadialGradientLayer/types';
5
5
  export * from './CubemapLayer/types';
6
+ export type { StyleSpecificationWithMetaData } from './extractCustomLayerStyle';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptiler/sdk",
3
- "version": "3.5.1-rc6",
3
+ "version": "3.6.0",
4
4
  "description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
5
5
  "author": "MapTiler",
6
6
  "module": "dist/maptiler-sdk.mjs",