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')highlightOnMapandsetPlotSelectionclearHighlightOnMapandclearHighlightOnPlot
This example comes from the autk-grammar repository.