maplibre-gl 3.5.2 → 3.6.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.
- package/README.md +3 -1
- package/build/bump-version-changelog.js +26 -0
- package/dist/maplibre-gl-csp-worker.js +1 -1
- package/dist/maplibre-gl-csp-worker.js.map +1 -1
- package/dist/maplibre-gl-csp.js +1 -1
- package/dist/maplibre-gl-csp.js.map +1 -1
- package/dist/maplibre-gl-dev.js +59 -37
- package/dist/maplibre-gl-dev.js.map +1 -1
- package/dist/maplibre-gl.d.ts +19 -2
- package/dist/maplibre-gl.js +3 -3
- package/dist/maplibre-gl.js.map +1 -1
- package/package.json +33 -33
- package/src/style/style.test.ts +30 -0
- package/src/style/style.ts +10 -1
- package/src/ui/camera.test.ts +81 -0
- package/src/ui/camera.ts +3 -1
- package/src/ui/map.test.ts +30 -0
- package/src/ui/map.ts +14 -0
- package/src/util/resolve_tokens.test.ts +4 -0
- package/src/util/resolve_tokens.ts +2 -2
package/dist/maplibre-gl.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v8.
|
|
1
|
+
// Generated by dts-bundle-generator v8.1.2
|
|
2
2
|
|
|
3
3
|
import Point from '@mapbox/point-geometry';
|
|
4
4
|
import TinySDF from '@mapbox/tiny-sdf';
|
|
@@ -5726,7 +5726,13 @@ export declare class Style extends Evented {
|
|
|
5726
5726
|
*/
|
|
5727
5727
|
getLayer(id: string): StyleLayer | undefined;
|
|
5728
5728
|
/**
|
|
5729
|
-
*
|
|
5729
|
+
* Return the ids of all layers currently in the style, including custom layers, in order.
|
|
5730
|
+
*
|
|
5731
|
+
* @returns ids of layers, in order
|
|
5732
|
+
*/
|
|
5733
|
+
getLayersOrder(): string[];
|
|
5734
|
+
/**
|
|
5735
|
+
* Checks if a specific layer is present within the style.
|
|
5730
5736
|
*
|
|
5731
5737
|
* @param id - the id of the desired layer
|
|
5732
5738
|
* @returns a boolean specifying if the given layer is present
|
|
@@ -9742,6 +9748,17 @@ export declare class Map extends Camera {
|
|
|
9742
9748
|
* @see [Filter symbols by text input](https://maplibre.org/maplibre-gl-js/docs/examples/filter-markers-by-input/)
|
|
9743
9749
|
*/
|
|
9744
9750
|
getLayer(id: string): StyleLayer | undefined;
|
|
9751
|
+
/**
|
|
9752
|
+
* Return the ids of all layers currently in the style, including custom layers, in order.
|
|
9753
|
+
*
|
|
9754
|
+
* @returns ids of layers, in order
|
|
9755
|
+
*
|
|
9756
|
+
* @example
|
|
9757
|
+
* ```ts
|
|
9758
|
+
* const orderedLayerIds = map.getLayersOrder();
|
|
9759
|
+
* ```
|
|
9760
|
+
*/
|
|
9761
|
+
getLayersOrder(): string[];
|
|
9745
9762
|
/**
|
|
9746
9763
|
* Sets the zoom extent for the specified style layer. The zoom extent includes the
|
|
9747
9764
|
* [minimum zoom level](https://maplibre.org/maplibre-style-spec/layers/#minzoom)
|