GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Adds a light/dark theme toggle button to the map. Mounted by the capability lifecycle when modules.theme-toggle.enabled is true.

      Parameters

      • map: IMapAdapter

        Map adapter instance.

      • position: string = "topleft"

        Control position on the map.

      Returns (() => void) | undefined

      A destroy function to remove the control and clean up listeners, or undefined if the control could not be created.