Hi, I am trying to run this very simple code:
Everything is ok, map is displayed but it is still centered here http://img35.imageshack.us/img35/5333/6e03cfcd14e24b2c9e6c32e.png instead of here http://img338.imageshack.us/img338/4448/a501b38ec63e4da494b68da.png Any thoughts what I am doing wrong? asked 08 Feb '12, 12:05 Pirozek SomeoneElse ♦ |
Your map is in spherical Mercator coordinates and you're setting it to a centre given in degrees. Try this:
The problem you are seeing is a general OpenLayers issue when dealing with projections, and not limited to OpenStreetMap. Using a simpler toolbox like Leaflet would help you avoid these issues. answered 08 Feb '12, 12:17 Frederik Ramm ♦ It works like a charm! Thanks man
(08 Feb '12, 12:20)
Pirozek
|