Function setFeatureState

  • Set state on a feature.

    Thin wrapper that constructs the MapLibre target object. Prefer this over calling map.setFeatureState() directly when working with Honua source IDs and feature IDs from query results.

    Parameters

    • map: FeatureStateMap
    • source: string
    • id: string | number
    • state: Record<string, unknown>
    • OptionalsourceLayer: string

    Returns void