WMTS tiles touching the extent are excluded
This commit is contained in:
@@ -165,7 +165,8 @@ ol.source.WMTS = function(options) {
|
|||||||
tmpTileCoord.y = tileCoord.y;
|
tmpTileCoord.y = tileCoord.y;
|
||||||
tileExtent = tileGrid.getTileCoordExtent(tmpTileCoord, tmpExtent);
|
tileExtent = tileGrid.getTileCoordExtent(tmpTileCoord, tmpExtent);
|
||||||
}
|
}
|
||||||
if (!ol.extent.intersects(tileExtent, extent)) {
|
if (!ol.extent.intersects(tileExtent, extent) ||
|
||||||
|
ol.extent.touches(tileExtent, extent)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return new ol.TileCoord(tileCoord.z, x, y);
|
return new ol.TileCoord(tileCoord.z, x, y);
|
||||||
|
|||||||
Reference in New Issue
Block a user