Serve WMS tiles for sources without specified extent

With this change, WMS sources do not need an extent configured.
The result is that the WMS will be queried for tiles for any
extent.
This commit is contained in:
ahocevar
2013-06-17 15:26:23 +02:00
parent 37b369e0d7
commit caefacac35

View File

@@ -64,7 +64,7 @@ ol.source.TiledWMS = function(options) {
tileExtent = tileGrid.getTileCoordExtent(
new ol.TileCoord(tileCoord.z, x, tileCoord.y));
}
if (!ol.extent.intersects(tileExtent, extent)) {
if (!goog.isNull(extent) && !ol.extent.intersects(tileExtent, extent)) {
return null;
}
return new ol.TileCoord(tileCoord.z, x, tileCoord.y);