Texonom
Texonom
/
Application
Application
/Geology/GIS/Map Service/Map Tools/2D Map/OpenLayers/Openlayers Interaction/
ol/interaction/Translate
Search

ol/interaction/Translate

Created
Created
2021 Jun 3 6:10
Tags
Tags

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.
Class: Translate
https://openlayers.org/en/latest/apidoc/module-ol_interaction_Translate-Translate.html
Class: Translate

event

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

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
Translate Features
 
 
 
 
 

Table of Contents
main classeventexample

Recommendations

Texonom
Texonom
/
Application
Application
/Geology/GIS/Map Service/Map Tools/2D Map/OpenLayers/Openlayers Interaction/
ol/interaction/Translate
Copyright Seonglae Cho