only change bounds when wrapDateLine is true; remove unused variable
This commit is contained in:
@@ -215,9 +215,8 @@ OpenLayers.Tile = OpenLayers.Class({
|
||||
*/
|
||||
setBounds: function(bounds) {
|
||||
bounds = bounds.clone();
|
||||
var maxExtent = this.layer.maxExtent,
|
||||
worldExtent = this.layer.map.getMaxExtent();
|
||||
if (maxExtent && this.layer.map.baseLayer.wrapDateLine) {
|
||||
var worldExtent = this.layer.map.getMaxExtent();
|
||||
if (this.layer.map.baseLayer.wrapDateLine) {
|
||||
bounds = bounds.wrapDateLine(worldExtent);
|
||||
}
|
||||
this.bounds = bounds;
|
||||
|
||||
Reference in New Issue
Block a user