I'm using OpenLayers3 with OSM as a background map. I'm retrieving coordinates when clicking on the map. However, for some reason I do not understand, the coordinates returned differ from what they should be. The crs is EPSG:3857 and the coordinates are for example:
[149320862354.13303, 7149613.877682245]
But they rather should look like:
[1347655.049747, 7147342.608955]
I do not know why they are returned like this. I did not change anything in my code or configuration.
map.on('singleclick', function (e) { var coordinates = map.getEventCoordinate(e.originalEvent); console.log(coordinates);}Any ideas what is causing this?
أكثر...
[149320862354.13303, 7149613.877682245]
But they rather should look like:
[1347655.049747, 7147342.608955]
I do not know why they are returned like this. I did not change anything in my code or configuration.
map.on('singleclick', function (e) { var coordinates = map.getEventCoordinate(e.originalEvent); console.log(coordinates);}Any ideas what is causing this?
أكثر...