useSelection
The selected set, or undefined outside a SelectionProvider or when
the host offers no selection. A component that selects or lists features
renders nothing then.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { useSelection } from "@mapcairn/map";
function useSelection(): FeatureSelectionState | undefined;
Returns
FeatureSelectionState | undefined