Handle empty url tile coord (no wrapx)

This commit is contained in:
ahocevar
2019-08-19 11:01:03 +02:00
parent b602a6b33a
commit 6be2818f14

View File

@@ -334,7 +334,7 @@ class VectorTile extends UrlTile {
const tileCoord = [z, x, y];
let urlTileCoord = this.getTileCoordForTileUrlFunction(tileCoord, projection);
const sourceExtent = this.getTileGrid().getExtent();
if (sourceExtent) {
if (urlTileCoord && sourceExtent) {
const tileGrid = this.getTileGridForProjection(projection);
const tileExtent = tileGrid.getTileCoordExtent(urlTileCoord);
// make extent 1 pixel smaller so we don't load tiles for < 0.5 pixel render space