This example uses OpenLayers v10.9.0. The latest is v.
Edit

#### Translate Features

drag 5 translate 1 feature 12 vector 86 editing 2

#####

Example of a translate features interaction.

This example demonstrates how the translate and select interactions can be used together. Zoom in to an area of interest and click to select a feature or hold the `Shift` key and select multiple features. Then drag the features around to move them elsewhere on the map.

##### main.js

    import Map from 'ol/Map.js';
    import View from 'ol/View.js';
    import GeoJSON from 'ol/format/GeoJSON.js';
    import Select from 'ol/interaction/Select.js';
    import Translate from 'ol/interaction/Translate.js';
    import {defaults as defaultInteractions} from 'ol/interaction/defaults.js';
    import VectorLayer from 'ol/layer/Vector.js';
    import {fromLonLat} from 'ol/proj.js';
    import VectorSource from 'ol/source/Vector.js';

    const vector = new VectorLayer({
      background: 'white',
      source: new VectorSource({
        url: 'https://openlayers.org/data/vector/us-states.json',
        format: new GeoJSON(),
      }),
    });

    const select = new Select();

    const translate = new Translate({
      features: select.getFeatures(),
    });

    const map = new Map({
      interactions: defaultInteractions().extend([select, translate]),
      layers: [vector],
      target: 'map',
      view: new View({
        center: fromLonLat([-100, 38.5]),
        zoom: 4,
      }),
    });

##### index.html

    <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8">
        <title>Translate Features</title>
        <link rel="stylesheet" href="node_modules/ol/ol.css">
        <style>
          .map {
            width: 100%;
            height: 400px;
          }
        </style>
      </head>
      <body>
        <div id="map" class="map"></div>

        <script type="module" src="main.js"></script>
      </body>
    </html>

##### package.json

    {
      "name": "translate-features",
      "dependencies": {
        "ol": "10.9.0"
      },
      "devDependencies": {
        "vite": "^3.2.3"
      },
      "scripts": {
        "start": "vite",
        "build": "vite build"
      }
    }