From 4392921aeb761b5a26013f8f576cfe0c90ca99bf Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 25 May 2006 17:22:31 +0000 Subject: [PATCH] the same code is executed in moveTo(). might as well use it git-svn-id: http://svn.openlayers.org/trunk/openlayers@368 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Marker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; },