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

    Per-surface context threaded from a surface handler down to the field renderers. layerId + feature let taxonomy-aware renderers resolve a value against the whole feature (e.g. a category label).

    interface RenderContext {
        layerId?: string;
        feature?: Record<string, unknown>;
        featureId?: string | number | null;
        lngLat?: { lat: number; lng: number };
    }
    Index

    Properties

    layerId?: string

    GeoLeaf layer id the feature belongs to.

    feature?: Record<string, unknown>

    Raw feature property bag (for cross-field lookups).

    featureId?: string | number | null

    Feature identifier, carried for type: "action" buttons (B-69).

    ⚠️ Ce champ et le suivant ont manqué pendant toute la vie du type action, et c'est exactement ce qui a fait abandonner la fonctionnalité : le détail du clic les porte (GeoLeafFeatureClickDetail), mais le contexte de rendu s'arrêtait au layerId — donc le renderer ne pouvait pas construire la charge utile que le contrat promettait.

    lngLat?: { lat: number; lng: number }

    Geographic position of the popup, for the action payload (B-69).