Check for map first. No functional change, but fixes tests and does not hurt (see #3521)
This commit is contained in:
@@ -213,7 +213,7 @@ OpenLayers.Tile = OpenLayers.Class({
|
|||||||
*/
|
*/
|
||||||
setBounds: function(bounds) {
|
setBounds: function(bounds) {
|
||||||
bounds = bounds.clone();
|
bounds = bounds.clone();
|
||||||
if (this.layer.map.baseLayer.wrapDateLine) {
|
if (this.layer.map && this.layer.map.baseLayer.wrapDateLine) {
|
||||||
var worldExtent = this.layer.map.getMaxExtent();
|
var worldExtent = this.layer.map.getMaxExtent();
|
||||||
bounds = bounds.wrapDateLine(worldExtent);
|
bounds = bounds.wrapDateLine(worldExtent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user