The switch takes one of two paths depending on the target: raster→raster mutates the
current style in place, while anything involving a vector basemap goes through a full
setStyle(). Either way the work is deferred until the map is idle, so the active key
is not guaranteed to have changed by the time this returns.
An unknown or missing key logs a warning and leaves the current basemap in place.
Activates a registered basemap.
The switch takes one of two paths depending on the target: raster→raster mutates the current style in place, while anything involving a vector basemap goes through a full
setStyle(). Either way the work is deferred until the map is idle, so the active key is not guaranteed to have changed by the time this returns.An unknown or missing key logs a warning and leaves the current basemap in place.