OlLayerTranslate
OlLayerTranslate(
props):Element
Defined in: src/ol-translate.tsx:81
Translate interaction component scoped to a specific vector layer. Automatically configures the translate interaction to only move features from the parent layer. Must be used within an OlVectorLayer.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Element
Example
Section titled “Example”<OlVectorLayer visible={true}> <OlLayerTranslate ref={translateRef}> {children} </OlLayerTranslate></OlVectorLayer>