Draw and Modify Features
import 'ol/ol.css'; import Map from 'ol/Map'; import View from 'ol/View'; import {Circle as CircleStyle, Fill, Stroke, Style} from 'ol/style'; import {Draw, Modify, Snap} from 'ol/interaction'; import {OSM, Vector as VectorSource} from 'ol/source'; import {Tile as TileLayer, Vector as VectorLayer} from 'ol/layer'; var raster = new TileLayer({ source: new OSM(), });
https://openlayers.org/en/latest/examples/draw-and-modify-features.html