use tolerance for correct tile bounds shifting
This commit is contained in:
@@ -195,8 +195,12 @@ OpenLayers.Tile = OpenLayers.Class({
|
||||
setBounds: function(bounds) {
|
||||
bounds = bounds.clone();
|
||||
if (this.layer.map.baseLayer.wrapDateLine) {
|
||||
var worldExtent = this.layer.map.getMaxExtent();
|
||||
bounds = bounds.wrapDateLine(worldExtent);
|
||||
var worldExtent = this.layer.map.getMaxExtent(),
|
||||
tolerance = this.layer.map.getResolution();
|
||||
bounds = bounds.wrapDateLine(worldExtent, {
|
||||
leftTolerance: tolerance,
|
||||
rightTolerance: tolerance
|
||||
});
|
||||
}
|
||||
this.bounds = bounds;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user