Marker objects now update their lonlat after moveTo. Fixes #519. Tests pass.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2007-03-19 14:46:15 +00:00
parent d6d391e7f5
commit 3f0b0286fc
2 changed files with 35 additions and 1 deletions

View File

@@ -71,7 +71,8 @@ OpenLayers.Marker.prototype = {
moveTo: function (px) {
if ((px != null) && (this.icon != null)) {
this.icon.moveTo(px);
}
}
this.lonlat = this.map.getLonLatFromLayerPx(px);
},
/**