GeoLeaf Core API - v3.0.0
    Preparing search index...

    Variable CoreConst

    Core: {
        init: (options?: NormalizedInitOptions) => IMapAdapter | null;
        getMap: (mapId?: string) => IMapAdapter | null;
        getAdapter: (mapId?: string) => IMapAdapter | null;
        destroy: (mapId: string) => boolean;
        hasMap: (mapId: string) => boolean;
        listMaps: () => string[];
        setTheme: (theme: string) => void;
        getTheme: () => string;
    } = ...

    The GeoLeaf.Core façade — map lifecycle and the handles onto the live instance.

    The entry point an integrator boots through, and the only supported way to reach the underlying MapLibre instance: the adapter it hands back is what keeps profile-driven behaviour and direct map calls from diverging.

    Type Declaration

    • init: (options?: NormalizedInitOptions) => IMapAdapter | null
    • getMap: (mapId?: string) => IMapAdapter | null
    • getAdapter: (mapId?: string) => IMapAdapter | null

      Alias for getMap — returns an IMapAdapter (used by POI, Route, GeoJSON modules).

    • destroy: (mapId: string) => boolean
    • hasMap: (mapId: string) => boolean
    • listMaps: () => string[]
    • setTheme: (theme: string) => void
    • getTheme: () => string