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.
@@ -1,4 +1,4 @@
1
- // Generated by dts-bundle-generator v8.0.1
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
- * checks if a specific layer is present within the style.
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)