GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Geolocation management — centers the map on the user's GPS position. Mounted by the capability lifecycle when modules.geolocation.enabled is not false.

      Parameters

      • map: IMapAdapter

        IMapAdapter instance (engine-agnostic).

      • position: string = "topleft"

        Control position on the map.

      Returns (() => void) | undefined

      A destroy function that removes the control and all listeners, or undefined if initialisation was skipped.