Do not use tiledWMSOptions in closure function

See #269.
This commit is contained in:
ahocevar
2013-03-05 10:01:27 +01:00
committed by Tim Schaub
parent 5644c27d9e
commit a912d48b59

View File

@@ -49,8 +49,7 @@ ol.source.TiledWMS = function(tiledWMSOptions) {
var x = tileCoord.x;
var tileExtent = tileGrid.getTileCoordExtent(tileCoord);
var projectionExtent = projection.getExtent();
var extent = goog.isDef(tiledWMSOptions.extent) ?
tiledWMSOptions.extent : projectionExtent;
extent = goog.isDef(extent) ? extent : projectionExtent;
// FIXME do we want a wrapDateLine param? The code below will break maps
// with projections that do not span the whole world width.
if (extent.minX === projectionExtent.minX &&