Move popup redraw after layer.moveTo in setCenter to fix google maps
redraw case. git-svn-id: http://svn.openlayers.org/trunk/openlayers@4253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1072,12 +1072,6 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
|
||||
if (zoomChanged) {
|
||||
this.zoom = zoom;
|
||||
|
||||
//redraw popups
|
||||
for (var i = 0; i < this.popups.length; i++) {
|
||||
this.popups[i].updatePosition();
|
||||
}
|
||||
|
||||
// zoom level has changed, increment viewRequestID.
|
||||
this.viewRequestID++;
|
||||
}
|
||||
@@ -1114,6 +1108,13 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
}
|
||||
}
|
||||
|
||||
if (zoomChanged) {
|
||||
//redraw popups
|
||||
for (var i = 0; i < this.popups.length; i++) {
|
||||
this.popups[i].updatePosition();
|
||||
}
|
||||
}
|
||||
|
||||
this.events.triggerEvent("move");
|
||||
|
||||
if (zoomChanged) { this.events.triggerEvent("zoomend"); }
|
||||
|
||||
Reference in New Issue
Block a user