Applies a basemap via map.setStyle() — full style replacement.
Used for all transitions where the source or target basemap is vector:
raster→vector, vector→raster, vector→vector.
The GeoLeaf-owned sources/layers of the current style are carried into the
incoming style via transformStyle (option de setStyle depuis la v5 ; voir l'adapter
buildStyleChangeTransform), so they survive the swap natively — no teardown,
no re-injection (the former geoleaf:style:rebuild dance; audit redundancy #1).
After the new style loads:
Re-registers runtime images (sprite icons) wiped by setStyle().
Applies the target basemap (raster source/layer inserted at the bottom, or
vector filters).
Activates terrain if the target has terrain.default3D: true.
Applies a basemap via
map.setStyle()— full style replacement.Used for all transitions where the source or target basemap is vector: raster→vector, vector→raster, vector→vector.
The GeoLeaf-owned sources/layers of the current style are carried into the incoming style via
transformStyle(option desetStyledepuis la v5 ; voir l'adapterbuildStyleChangeTransform), so they survive the swap natively — no teardown, no re-injection (the formergeoleaf:style:rebuilddance; audit redundancy #1).After the new style loads:
setStyle().terrain.default3D: true.geoleaf:basemap:change.