SelectionHighlights
Marks the features of the selected set on the map, so the set and the map agree on what is chosen. A point gets a ring and a check badge. A line or polygon gets a dashed outline on a halo (the open card's ring is solid) and a badge on the vertex in sight nearest the centre of the view; with no vertex in sight the outline alone shows. Colour is never the only signal.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { SelectionHighlights } from "@mapcairn/map";
function SelectionHighlights(): JSX.Element | null;
Description
Render it inside MapOverlayLayer. It reads the set with useSelection() and
draws nothing without one. Marks are placed like the draw tool's, so the
nearest copy of the world, great-circle curves and the horizon of a globe
apply. At most 200 features are drawn, each with
outlines thinned to 100 vertices, and only
those whose box meets the view. A reference that is not shown has no mark.
Like the card's ring, the marks are left out of a saved image.
Returns
JSX.Element | null