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

    What the mobile toolbar needs to build itself: its host element, the map handles it drives, and which controls to show.

    Every show* flag defaults to the profile's ui block; passing them here overrides it. The map handle is optional so the toolbar can be built before the map exists — the zoom controls simply stay inert until it arrives.

    interface MobileToolbarOptions {
        glMain: HTMLElement;
        map?:
            | {
                zoomIn: () => void;
                zoomOut: () => void;
                getContainer: () => HTMLElement;
                getZoom: () => number;
            }
            | null;
        getFilterActiveState?: () => boolean;
        onResetFilters?: () => void;
        sheetTitles?: Record<string, string>;
        showGeolocation?: boolean;
        showThemeSelector?: boolean;
        showFilterPanel?: boolean;
        showLayerManager?: boolean;
        showLegend?: boolean;
    }
    Index

    Properties

    glMain: HTMLElement
    map?:
        | {
            zoomIn: () => void;
            zoomOut: () => void;
            getContainer: () => HTMLElement;
            getZoom: () => number;
        }
        | null
    getFilterActiveState?: () => boolean
    onResetFilters?: () => void
    sheetTitles?: Record<string, string>
    showGeolocation?: boolean
    showThemeSelector?: boolean
    showFilterPanel?: boolean
    showLayerManager?: boolean
    showLegend?: boolean