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.
Layer z-index for ordering (0–99).
Optionaloptions: {Additional options (vector tile, source-layer, custom IDs).
OptionalisVectorTile?: booleanOptionalsourceLayer?: stringOptionalcustomSubLayerIds?: string[]Override auto-generated sub-layer IDs (e.g. for cluster layers).
OptionalcustomSourceId?: stringOverride auto-generated source ID.
OptionalgeometryTypes?: Set<string>GeoJSON geometry-type vocabulary present on the layer.
Unregisters a layer. Returns true if it existed.
Marks a layer as visible or hidden in the registry.
Computes the beforeId for inserting a new layer at the given z-index.
Finds the first existing sub-layer with a higher z-index and returns its ID. If none exists, returns the sentinel layer ID so the new layer is inserted just below the POI boundary.
The z-index of the layer being inserted.
The MapLibre layer ID to pass as beforeId to map.addLayer().
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.