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

ol/interaction/DragBox

Created
Created
2021 Mar 31 8:34
Tags
Tags
Module: ol/events/condition
Return true if the event originates from a mouse device. Return true if no modifier key (alt-, shift- or platform-modifier-key) is pressed. Return true if the event originates from a digital pen. Return true if the target element is not editable, i.e. not a -, - or -element, false otherwise.
https://openlayers.org/en/latest/apidoc/module-ol_events_condition.html
Module: ol/events/condition
Box Selection
main.js import 'ol/ol.css'; import GeoJSON from 'ol/format/GeoJSON'; import Map from 'ol/Map'; import View from 'ol/View'; import {DragBox, Select} from 'ol/interaction'; import {OSM, Vector as VectorSource} from 'ol/source'; import {Tile as TileLayer, Vector as VectorLayer} from 'ol/layer'; import {platformModifierKeyOnly} from 'ol/events/condition'; var vectorSource = new VectorSource({ url: 'data/geojson/countries.geojson', format: new GeoJSON(),
https://openlayers.org/en/latest/examples/box-selection.html
Box Selection
 
 
 
 
 
 
 
 
 

Recommendations

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