Re-applies the active raster basemap when its source has been lost from the
style without a deliberate basemap switch (e.g., race with a plugin that adds
layers inside the same map.on("load") dispatch as the deferred setBaseLayer).
No-op when:
no basemap is considered active (_activeKey is null)
the active basemap is vector (managed by setStyle, not this path)
the basemap source is already present in the style
Does NOT emit geoleaf:basemap:change — this is an internal re-apply, not a
user-visible basemap change.
Re-applies the active raster basemap when its source has been lost from the style without a deliberate basemap switch (e.g., race with a plugin that adds layers inside the same
map.on("load")dispatch as the deferred setBaseLayer).No-op when:
_activeKeyis null)setStyle, not this path)Does NOT emit
geoleaf:basemap:change— this is an internal re-apply, not a user-visible basemap change.