GeoLeaf Core API - v3.0.0
    Preparing search index...
    • 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:

      1. Re-registers runtime images (sprite icons) wiped by setStyle().
      2. Applies the target basemap (raster source/layer inserted at the bottom, or vector filters).
      3. Activates terrain if the target has terrain.default3D: true.
      4. Dispatches geoleaf:basemap:change.

      Parameters

      Returns void