Using integer pixel space to avoid whitespace between tiles.
This commit is contained in:
@@ -1014,12 +1014,12 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
tileoffsetlon += tilelon;
|
tileoffsetlon += tilelon;
|
||||||
tileoffsetx += tileSize.w;
|
tileoffsetx += Math.round(tileSize.w);
|
||||||
} while ((tileoffsetlon <= bounds.right + tilelon * this.buffer)
|
} while ((tileoffsetlon <= bounds.right + tilelon * this.buffer)
|
||||||
|| colidx < minCols);
|
|| colidx < minCols);
|
||||||
|
|
||||||
tileoffsetlat -= tilelat;
|
tileoffsetlat -= tilelat;
|
||||||
tileoffsety += tileSize.h;
|
tileoffsety += Math.round(tileSize.h);
|
||||||
} while((tileoffsetlat >= bounds.bottom - tilelat * this.buffer)
|
} while((tileoffsetlat >= bounds.bottom - tilelat * this.buffer)
|
||||||
|| rowidx < minRows);
|
|| rowidx < minRows);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user