Avoid loading tiles outside the grid extent

This commit is contained in:
Tim Schaub
2021-11-29 10:55:55 -07:00
parent a788c9bd1e
commit 3bf1aef8e2
8 changed files with 86 additions and 7 deletions

View File

@@ -44,6 +44,7 @@ new Map({
}),
new TileLayer({
source: new DataTile({
wrapX: true,
loader: function (z, x, y) {
const half = labelCanvasSize / 2;