Your code is exactly what I have. I think the problem is related where the marker is set because, if I zoom in and mode the map with drag and drop, they move but if I use zoom out later, markers go to their initial position in map window.
For example, My map is 500 x 500 px. And I have one marker. When I upload the map, marker appears at 450 x 300 position. Now I zoom in, move map and zoom out. I would be in othe area of my map (for example: other city), not my initial position. But my marker appeared at 450 x 300 over the new city. I don't know if I am explaining well, english is not my language and I have some problem to say what I want. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Markers-move-around-when-zooming-tp4977035p4977162.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users