Category "openlayers-6"

OpenLayers 6 DragZoom Control - how to change condition

in OL 6 I would like to use a button, so a user can click to activate a change for the drag zoom control so it will be available without holding down shift. In

How to check type of feature layer loaded on openlayers?

I have used open layer in my project. In which I have added multiple featurelayers on the osm/base map.These layers are overlaping each other.when I click on fe

Snap to features of Vectortile layer using Openlayers

I want to snap to features in a Mapbox Vector tile (MVT) layer but failed to do so. Is there an example code or way to achieve this? Thank you.

OpenLayer 6.3.1 problem displaying GeoJson data on the map

I have problem with openlayer geojson. I'm trying to display data in the map, but nothing I try works. What do I need to change to display the data on the map?