Permalink
Browse files

Call moveTo on the marker object instead of the icon.

  • Loading branch information...
1 parent a04df3e commit 90cbb9e11614efb4da0c5ffa547c7f29564af017 Sebastien Roch committed Nov 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/OpenLayers/Layer/Markers.js
@@ -156,8 +156,8 @@ OpenLayers.Layer.Markers = OpenLayers.Class(OpenLayers.Layer, {
if (!marker.isDrawn()) {
var markerImg = marker.draw(px);
this.div.appendChild(markerImg);
- } else if(marker.icon) {
- marker.icon.moveTo(px);
+ } else {
+ marker.moveTo(px);
}
}
},

0 comments on commit 90cbb9e

Please sign in to comment.