diff --git a/lib/OpenLayers/Marker.js b/lib/OpenLayers/Marker.js index 9a76b44335..2a88db348a 100644 --- a/lib/OpenLayers/Marker.js +++ b/lib/OpenLayers/Marker.js @@ -48,8 +48,7 @@ OpenLayers.Marker.prototype = { * @type DOMElement */ draw: function(px) { - this.image.style.top = (px.y + this.icon.offset.y) + "px" - this.image.style.left = (px.x + this.icon.offset.x) + "px"; + this.moveTo(px); return this.image; },