main class
Class: Translate
import Translate from 'ol/interaction/Translate'; Interaction for translating (moving) features. Options. Only features contained in this collection will be able to be translated. If not specified, all features on the map will be able to be translated. A list of layers from which features should be translated. Alternatively, a filter function can be provided.
https://openlayers.org/en/latest/apidoc/module-ol_interaction_Translate-Translate.html

event
Class: TranslateEvent
https://openlayers.org/en/latest/apidoc/module-ol_interaction_Translate.TranslateEvent.html

example
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

