do not assert null projection

This commit is contained in:
mike-000
2022-04-11 23:42:27 +01:00
parent 5651520dcd
commit eaa87e8d8f

View File

@@ -281,8 +281,9 @@ class TileSource extends Source {
* @protected * @protected
*/ */
getTileCacheForProjection(projection) { getTileCacheForProjection(projection) {
const sourceProjection = this.getProjection();
assert( 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. 68 // A VectorTile source can only be rendered if it has a projection compatible with the view projection.
); );
return this.tileCache; return this.tileCache;