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

    Minimal structural view of the MapLibre adapter the capability calls (Core.getMap()). Permissive on purpose — narrowed at the boundary.

    interface RouteMapAdapter {
        addGeoJSONLayer: (
            id: string,
            data: unknown,
            style?: Record<string, unknown>,
        ) => void;
        removeLayer?: (id: string) => void;
        getLayerRegistry?: () => RouteLayerRegistry | null;
    }
    Index

    Properties

    addGeoJSONLayer: (
        id: string,
        data: unknown,
        style?: Record<string, unknown>,
    ) => void

    Adds a GeoJSON source + sub-layers (used for the endpoint points).

    removeLayer?: (id: string) => void

    Removes a previously added layer (idempotent endpoint refresh).

    getLayerRegistry?: () => RouteLayerRegistry | null

    The core per-layer registry (used by the ready-sweep).