Always left justify the renderer extent.
This commit is contained in:
@@ -125,6 +125,9 @@ OpenLayers.Renderer = OpenLayers.Class({
|
|||||||
*/
|
*/
|
||||||
setExtent: function(extent, resolutionChanged) {
|
setExtent: function(extent, resolutionChanged) {
|
||||||
this.extent = extent.clone();
|
this.extent = extent.clone();
|
||||||
|
if (this.map.baseLayer && this.map.baseLayer.wrapDateLine) {
|
||||||
|
this.extent = extent.wrapDateLine(this.map.getMaxExtent());
|
||||||
|
}
|
||||||
if (resolutionChanged) {
|
if (resolutionChanged) {
|
||||||
this.resolution = null;
|
this.resolution = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user