WMS tiles touching the extent are excluded
This commit is contained in:
1 parent
70c66d4cf1
commit
832be21c0f
1 file changed
+2
-1
@@ -84,7 +84,8 @@ ol.source.TileWMS = function(options) {
|
||||
tileExtent = tileGrid.getTileCoordExtent(
|
||||
new ol.TileCoord(tileCoord.z, x, tileCoord.y));
|
||||
}
|
||||
if (!goog.isNull(extent) && !ol.extent.intersects(tileExtent, extent)) {
|
||||
if (!goog.isNull(extent) && (!ol.extent.intersects(tileExtent, extent) ||
|
||||
ol.extent.touches(tileExtent, extent))) {
|
||||
return null;
|
||||
}
|
||||
return new ol.TileCoord(tileCoord.z, x, tileCoord.y);
|
||||
|
||||
Reference in new issue
Block a user