Skip to content

External Interactions

Listen to grammar selection events from your own code, and drive map highlights and plot selections from outside the spec.

Live Playground

Interaction

Double click a feature on the map to select it. The selection is shared with the plot, and selecting in the plot highlights the matching features on the map.

Highlights

  • grammar.interactions.on('map:picking' | 'plot:selection')
  • highlightOnMap and setPlotSelection
  • clearHighlightOnMap and clearHighlightOnPlot

This example comes from the autk-grammar repository.

Released under the MIT License.