From eaa87e8d8f13df8b7befb6dd8fc3a5a133b82336 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 11 Apr 2022 23:42:27 +0100 Subject: [PATCH] do not assert null projection --- src/ol/source/Tile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/source/Tile.js b/src/ol/source/Tile.js index b09e812d4c..3467ea1e6b 100644 --- a/src/ol/source/Tile.js +++ b/src/ol/source/Tile.js @@ -281,8 +281,9 @@ class TileSource extends Source { * @protected */ getTileCacheForProjection(projection) { + const sourceProjection = this.getProjection(); assert( - equivalent(this.getProjection(), projection), + sourceProjection === null || equivalent(sourceProjection, projection), 68 // A VectorTile source can only be rendered if it has a projection compatible with the view projection. ); return this.tileCache;