From 935476dff57ef4e8f594d0c5a74863b76d701432 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 25 May 2006 17:20:45 +0000 Subject: [PATCH] marker doesnt have a this.div - it has a this.image git-svn-id: http://svn.openlayers.org/trunk/openlayers@367 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Marker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Marker.js b/lib/OpenLayers/Marker.js index 8281f01ff7..9a76b44335 100644 --- a/lib/OpenLayers/Marker.js +++ b/lib/OpenLayers/Marker.js @@ -57,7 +57,7 @@ OpenLayers.Marker.prototype = { * @param {OpenLayers.Pixel} px */ moveTo: function (px) { - if ((px != null) && (this.div != null)) { + if ((px != null) && (this.image != null)) { this.image.style.top = (px.y + this.icon.offset.y) + "px" this.image.style.left = (px.x + this.icon.offset.x) + "px"; }