From 6da92d5f718644e77d8cbf6e0d8af30dfb988dc6 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Sat, 21 Oct 2017 21:41:56 +0200 Subject: [PATCH] Handle null tile coordinates correctly --- src/ol/source/vectortile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/vectortile.js b/src/ol/source/vectortile.js index 11e6aba910..9a1c6976ef 100644 --- a/src/ol/source/vectortile.js +++ b/src/ol/source/vectortile.js @@ -120,7 +120,7 @@ ol.source.VectorTile.prototype.getTile = function(z, x, y, pixelRatio, projectio tileCoord, projection); var tile = new ol.VectorImageTile( tileCoord, - urlTileCoord !== undefined ? ol.TileState.IDLE : ol.TileState.EMPTY, + urlTileCoord !== null ? ol.TileState.IDLE : ol.TileState.EMPTY, this.getRevision(), this.format_, this.tileLoadFunction, urlTileCoord, this.tileUrlFunction, this.tileGrid, this.getTileGridForProjection(projection),