Returns true if the layer is registered.
Returns the entry for a layer, or undefined.
Returns the sub-layer IDs for a registered layer.
Returns the source ID for a registered layer.
Returns the GeoJSON geometry-type set for a registered layer, or
undefined if the layer is unknown or its geometry was not recorded.
Returns all registered layer IDs.
Registers a new GeoLeaf layer with its MapLibre sub-layers.
GeoLeaf layer identifier.
Which sub-layer types were created.
The rank the layer is registered under.
Optionaloptions: {Additional options (vector tile, source-layer, custom IDs).
OptionalisVectorTile?: booleanOptionalsourceLayer?: stringOptionalcustomSubLayerIds?: string[]Override auto-generated sub-layer IDs (e.g. for cluster layers).
OptionalgeometryTypes?: Set<string>GeoJSON geometry-type vocabulary present on the layer.
Records sub-layers added to a layer AFTER its registration — a layer that received a
geometry it had no sub-layer for (growGeoJSONLayer).
subLayerIds is read bottom-up by the ordering code — its first id is the bottom of
the layer's stack, which getInsertBeforeId anchors other layers on — so the
list is put back in the order the engine DRAWS, never appended to.
GeoLeaf layer identifier.
The sub-layer families added.
The GeoJSON geometry types the layer now also holds.
Every layer id of the style, bottom first.
true if the layer is registered; false otherwise, and nothing changed.
Unregisters a layer. Returns true if it existed.
Marks a layer as visible or hidden in the registry.
Records a new rank for a registered layer, and moves its entry to the END of the registry.
The move is what keeps getInsertBeforeId right. A re-ranked layer is drawn above the layers already holding its new rank, and that method takes the FIRST entry of a rank for the bottom of its group. An entry re-ranked where it stood could be that first entry while drawn on top of the group: the next layer inserted under that rank would anchor on it, and end above layers it belongs under.
GeoLeaf layer identifier.
The rank the layer is now drawn at.
true if the layer is registered; false otherwise, and nothing changed.
Computes the beforeId for placing a layer at the given z-index.
Finds the entry with the lowest strictly higher z-index and returns its first sub-layer ID. If none exists, returns the sentinel layer ID so the layer goes just below the POI boundary. Among entries of the same rank the first registered answers: it is the bottom of its group, every later layer of that rank having been placed above it.
The z-index of the layer being placed.
OptionalexcludeLayerId: string
A layer left out of the search: the one being re-ranked, which must not anchor on itself.
The MapLibre layer ID to pass as beforeId to map.addLayer() or
map.moveLayer().
Removes all entries.
Internal registry for MapLibre layers managed by the adapter.
One instance per adapter. All mutations are through explicit methods — callers never modify entries directly.