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
This commit is contained in:
euzuro
2006-05-25 17:20:45 +00:00
parent e251d93d6d
commit 935476dff5

View File

@@ -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";
}