Permalink
Browse files

Do not use tiledWMSOptions in closure function

See #269.
  • Loading branch information...
1 parent 5644c27 commit a912d48b597cc1d54b0b902193a80e5635b98fdf @ahocevar ahocevar committed with tschaub Mar 5, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/ol/source/tiledwmssource.js
@@ -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 &&

0 comments on commit a912d48

Please sign in to comment.