GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Applies an image basemap to the map. Adds a MapLibre type:"image" source and a raster layer below all existing layers.

      Parameters

      • map: NativeMap

        Native maplibregl.Map instance.

      • definition: BasemapDefinition

        Basemap config with imageSource settings.

      • sourceId: string = BASEMAP_SOURCE_ID

        Source ID. Defaults to "__geoleaf_basemap__".

      • layerId: string = BASEMAP_LAYER_ID

        Layer ID. Defaults to "__geoleaf_basemap_layer__".

      Returns void