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

      Parameters

      • key: string

        Key of a previously registered basemap.

      • options: SetBaseLayerOptions = {}

        silent suppresses the geoleaf:basemap:change event.

      Returns void

      GeoLeaf.Baselayers.setBaseLayer("street");