[ol.layer.XYZ] less than 8 chars lines
This commit is contained in:
+6
-3
@@ -145,12 +145,15 @@ ol.layer.XYZ.prototype.getData = function(bounds, resolution) {
|
|||||||
tile,
|
tile,
|
||||||
url,
|
url,
|
||||||
tileBottom, tileRight, tileBounds;
|
tileBottom, tileRight, tileBounds;
|
||||||
for (var y=0, tileTop=gridTop; tileTop > boundsMinY; ++y, tileTop-=tileHeightGeo) {
|
for (var y=0, tileTop=gridTop; tileTop > boundsMinY;
|
||||||
|
++y, tileTop-=tileHeightGeo) {
|
||||||
tiles[y] = [];
|
tiles[y] = [];
|
||||||
tileBottom = tileTop - tileHeightGeo;
|
tileBottom = tileTop - tileHeightGeo;
|
||||||
for (var x=0, tileLeft=gridLeft; tileLeft < boundsMaxX; ++x, tileLeft+=tileWidthGeo) {
|
for (var x=0, tileLeft=gridLeft; tileLeft < boundsMaxX;
|
||||||
|
++x, tileLeft+=tileWidthGeo) {
|
||||||
tileRight = tileLeft + tileWidthGeo;
|
tileRight = tileLeft + tileWidthGeo;
|
||||||
tileBounds = new ol.Bounds(tileLeft, tileBottom, tileRight, tileTop, this.projection_);
|
tileBounds = new ol.Bounds(tileLeft, tileBottom,
|
||||||
|
tileRight, tileTop, this.projection_);
|
||||||
url = me.url_.replace('{x}', offsetX + x + '')
|
url = me.url_.replace('{x}', offsetX + x + '')
|
||||||
.replace('{y}', offsetY + y + '')
|
.replace('{y}', offsetY + y + '')
|
||||||
.replace('{z}', zoom);
|
.replace('{z}', zoom);
|
||||||
|
|||||||
Reference in New Issue
Block a user