Top "Openlayers-3" questions

OpenLayers 3 is the complete rewrite of the OpenLayers 2.x mapping library, targeting modern features of HTML5 and CSS3.

Access to Image from origin 'null' has been blocked by CORS policy

I have JavaScript application in OpenLayers 3, and my base layer is created from local tiles. I work only in my …

javascript cors local openlayers-3
how to add markers with OpenLayers 3

I'm trying to add makers on a OpenLayers 3 map. The only example I have found is this one in the …

javascript openlayers-3
Adding event handler to feature in OpenLayers 3?

I am using the following code to add a feature to a vector layer in OpenLayers 3 (OL3): marker = new ol.…

javascript openlayers openlayers-3
How to get features from vector layer in Openlayers 3

I am trying to get the features from my vector layer. The vector layer is composed from a GeoJSON document …

vector openlayers-3 geojson
Open Layers 3 Zoom map event handler

I need to handle a zoom event in Open Layers 3. The following is my code: map_object = new ol.Map({ …

javascript openlayers-3
OpenLayers 3 Extent of all features on a vector layer?

I have an OpenLayers 3 map with a base layer and a vector layer. this.topoLayer = new ol.layer.Vector({ source: …

javascript openlayers openlayers-3
Openlayers 3 center map

I'm sing OpenLayers 3 to display a map. I want to center the map using latLon coordinates. I'm using the quickstart …

javascript openlayers-3
Convert point to lat lon

I wonder, how can I get map click event's coordinates as lat,lon? Here is my code: map.on('click', …

openlayers-3
How to change the cursor on hover in openlayers 3?

I managed to add interactivity to a feature layer added from a remote GeoJSON resource. When I click on a …

javascript openlayers-3
ZoomToExtent OpenLayers 3

OpenLayers 2 had a very useful map.zoomToExtent(extent) feature. Is there something similar in OpenLayers 3? I can get the extent …

openlayers openlayers-3