Always left justify the renderer extent.

This commit is contained in:
tschaub
2011-09-29 19:46:53 -06:00
parent 5925cb12d7
commit cc81657907

View File

@@ -125,6 +125,9 @@ OpenLayers.Renderer = OpenLayers.Class({
*/
setExtent: function(extent, resolutionChanged) {
this.extent = extent.clone();
if (this.map.baseLayer && this.map.baseLayer.wrapDateLine) {
this.extent = extent.wrapDateLine(this.map.getMaxExtent());
}
if (resolutionChanged) {
this.resolution = null;
}