OlModify
OlModify(
props):Element
Defined in: src/ol-modify.tsx:44
OpenLayers Modify interaction component for editing feature geometries. Allows users to click and drag feature vertices to modify their shape. Must be used within an OlMap and requires a vector source context.
Parameters
Section titled “Parameters”OlModifyProps
Returns
Section titled “Returns”Element
Example
Section titled “Example”<OlMap> <OlVectorLayer visible={true}> <OlVectorSource> <OlModify ref={modifyRef} initialOptions={{ pixelTolerance: 10 }}> {children} </OlModify> </OlVectorSource> </OlVectorLayer></OlMap>