Remove action that is now covered by wrapDateLine.
With the changes in wrapDateLine, we don't have to shift the bounds here any more.
This commit is contained in:
@@ -404,15 +404,9 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
*/
|
*/
|
||||||
calculateGridLayout: function(bounds, origin, resolution) {
|
calculateGridLayout: function(bounds, origin, resolution) {
|
||||||
bounds = bounds.clone();
|
bounds = bounds.clone();
|
||||||
if (this.map.baseLayer.wrapDateLine) {
|
var map = this.map;
|
||||||
var maxExtent = this.map.getMaxExtent(),
|
if (map.wrapDateLine) {
|
||||||
width = maxExtent.getWidth();
|
bounds = bounds.wrapDateLine(map.getMaxExtent());
|
||||||
// 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 tilelon = resolution * this.tileSize.w;
|
||||||
|
|||||||
Reference in New Issue
Block a user