Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Call moveTo on the marker object instead of the icon.

  • Loading branch information...
commit 90cbb9e11614efb4da0c5ffa547c7f29564af017 1 parent a04df3e
@sebastien-roch authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/OpenLayers/Layer/Markers.js
View
4 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);
}
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.