Skip to content

Commit ded18b7

Browse files
committed
Website updates
1 parent b00e504 commit ded18b7

10 files changed

+17
-9
lines changed

dist/en/main/apidoc/module-ol_source_VectorTile-VectorTile.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ <h4 class="name">
175175

176176
<div class="tag-source">
177177
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/VectorTile.js">source/VectorTile.js</a>,
178-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/VectorTile.js#L102">line 102</a>
178+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/VectorTile.js#L104">line 104</a>
179179
</div>
180180

181181
</div>

dist/en/main/examples/common.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/source/VectorTile.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/en/main/ol/source/VectorTile.js

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import TileState from '../TileState.js';
66
import VectorRenderTile from '../VectorRenderTile.js';
77
import Tile from '../VectorTile.js';
8+
import {assert} from '../asserts.js';
89
import EventType from '../events/EventType.js';
910
import {
1011
buffer as bufferExtent,
@@ -13,6 +14,7 @@ import {
1314
} from '../extent.js';
1415
import {loadFeaturesXhr} from '../featureloader.js';
1516
import {isEmpty} from '../obj.js';
17+
import {equivalent} from '../proj.js';
1618
import {toSize} from '../size.js';
1719
import TileGrid from '../tilegrid/TileGrid.js';
1820
import {DEFAULT_MAX_ZOOM} from '../tilegrid/common.js';
@@ -365,6 +367,12 @@ class VectorTile extends UrlTile {
365367
const code = projection.getCode();
366368
let tileGrid = this.tileGrids_[code];
367369
if (!tileGrid) {
370+
const sourceProjection = this.getProjection();
371+
assert(
372+
sourceProjection === null || equivalent(sourceProjection, projection),
373+
'A VectorTile source can only be rendered if it has a projection compatible with the view projection.',
374+
);
375+
368376
// A tile grid that matches the tile size of the source tile grid is more
369377
// likely to have 1:1 relationships between source tiles and rendered tiles.
370378
const sourceTileGrid = this.tileGrid;

dist/main.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)