@honua/sdk-js/interactions — hit-test, pointer normalization, and the binding primitives that wire chart / map / table widgets to an ExplorationContext.
@honua/sdk-js/interactions
ExplorationContext
import { hitTestMap, bindMapSelectionToExploration } from "@honua/sdk-js/interactions";map.on("click", async (event) => { const hit = await hitTestMap(map, event); if (hit?.feature) ctx.dispatch({ type: "select", target: hit.feature });});bindMapSelectionToExploration({ map, context: ctx, sourceId: "parcels" }); Copy
import { hitTestMap, bindMapSelectionToExploration } from "@honua/sdk-js/interactions";map.on("click", async (event) => { const hit = await hitTestMap(map, event); if (hit?.feature) ctx.dispatch({ type: "select", target: hit.feature });});bindMapSelectionToExploration({ map, context: ctx, sourceId: "parcels" });
@honua/sdk-js/interactions— hit-test, pointer normalization, and the binding primitives that wire chart / map / table widgets to anExplorationContext.Example