New answers tagged

0 votes

Remove/Delete a feature from OpenLayers vector layer

This worked for me to remove a single feature in Open Layers 6: layer.getSource().removeFeature(feature);
user avatar
  • 101
4 votes

OpenLayers - pan map on pressing mouse wheel

You would need to replace the default DragPan interaction with a custom one which allows both buttons 0 and 1 import 'ol/ol.css'; import Map from 'ol/Map'; import OSM from 'ol/source/OSM'; import ...
user avatar
  • 9,958

Top 50 recent answers are included