Skip to content

OlTranslate

OlTranslate(__namedParameters): Element

Defined in: src/ol-translate.tsx:40

OpenLayers Translate interaction component for moving features by dragging. Allows users to click and drag features to reposition them. Must be used within an OlMap.

OlTranslateProps

Element

<OlMap>
<OlTranslate ref={translateRef} initialOptions={{ hitTolerance: 5 }}>
{children}
</OlTranslate>
</OlMap>