Merge branch 'master' into clientzoom
This commit is contained in:
@@ -516,6 +516,18 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
||||
* tileoffsetlat, tileoffsetx, tileoffsety
|
||||
*/
|
||||
calculateGridLayout: function(bounds, origin, resolution) {
|
||||
bounds = bounds.clone();
|
||||
if (this.map.baseLayer.wrapDateLine) {
|
||||
var maxExtent = this.map.getMaxExtent(),
|
||||
width = maxExtent.getWidth();
|
||||
// move the bounds one world width to the right until the origin is
|
||||
// within the world extent
|
||||
while (bounds.left < maxExtent.left) {
|
||||
bounds.left += width;
|
||||
bounds.right += width;
|
||||
}
|
||||
}
|
||||
|
||||
var tilelon = resolution * this.tileSize.w;
|
||||
var tilelat = resolution * this.tileSize.h;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user