give Popup an 'updatePosition()' function that allows it to re-position itself. This will be used for zoom changes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@350 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -394,9 +394,7 @@ OpenLayers.Map.prototype = {
|
||||
|
||||
//redraw popups
|
||||
for (var i = 0; i < this.popups.length; i++) {
|
||||
var popup = this.popups[i];
|
||||
var px = this.getLayerPxFromLonLat(popup.lonlat);
|
||||
popup.moveTo(px);
|
||||
this.popups[i].updatePosition();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user