ConstOptionaloptions: BaselayersInitOptionsInitialisation options.
An object with the active key and the full layers registry.
Registers a single basemap definition by key.
No map API calls are made at registration time — the definition is stored
and applied lazily when setBaseLayer() is called.
Activates a registered basemap by key.
For raster basemaps: injects a MapLibre raster source + layer. For vector basemaps: calls map.setStyle(styleUrl).
If the map style is not yet loaded, activation is deferred until the
map emits the load event.
Activates a registered basemap by key.
For raster basemaps: injects a MapLibre raster source + layer. For vector basemaps: calls map.setStyle(styleUrl).
If the map style is not yet loaded, activation is deferred until the
map emits the load event.
Returns the BasemapConfig definition of the currently active basemap.
Returns null when no basemap is active.
NOTE: unlike the pre-Sprint-3 version, this no longer returns a
layer instance. The layer field on each _baseLayers entry is always
null and exists only for backward compatibility.
Initialises the basemaps system: registers default layers, applies custom layers from options, sets the active layer, and renders the basemap UI controls.