Translate Features
import 'ol/ol.css'; import GeoJSON from 'ol/format/GeoJSON'; import Map from 'ol/Map'; import OSM from 'ol/source/OSM'; import VectorSource from 'ol/source/Vector'; import View from 'ol/View'; import { Select, Translate, defaults as defaultInteractions, } from 'ol/interaction'; import {Tile as TileLayer, Vector as VectorLayer} from 'ol/layer'; var raster = new TileLayer({ source: new OSM(), });
https://openlayers.org/en/latest/examples/translate-features.html