useOlLayerSelect
useOlLayerSelect():
Select
Defined in: src/ol-select.tsx:109
Hook to access the OpenLayers Select interaction instance from the nearest parent OlSelect or OlLayerSelect component. Must be used within a descendant of OlSelect/OlLayerSelect.
Returns
Section titled “Returns”Select
The OpenLayers Select interaction instance
Throws
Section titled “Throws”If called outside of an OlSelect/OlLayerSelect component
Example
Section titled “Example”function SelectControl() { const select = useOlLayerSelect() // Use select instance return null}