Don't compute limit if it's not needed
This commit is contained in:
@@ -147,9 +147,8 @@ OpenLayers.Layer.XYZ = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
|||||||
OpenLayers.Util.indexOf(resolutions, res) :
|
OpenLayers.Util.indexOf(resolutions, res) :
|
||||||
this.getServerZoom() + this.zoomOffset;
|
this.getServerZoom() + this.zoomOffset;
|
||||||
|
|
||||||
|
if (this.wrapDateLine) {
|
||||||
var limit = Math.pow(2, z);
|
var limit = Math.pow(2, z);
|
||||||
if (this.wrapDateLine)
|
|
||||||
{
|
|
||||||
x = ((x % limit) + limit) % limit;
|
x = ((x % limit) + limit) % limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user