From 8de93330b57f5496fe95dd19c38b29b622cf0588 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Wed, 8 Dec 2021 17:08:45 +0000 Subject: [PATCH] Use correct terrain-rgb tile size --- examples/disable-image-smoothing.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/disable-image-smoothing.js b/examples/disable-image-smoothing.js index 13d462ba6d..41318fbcea 100644 --- a/examples/disable-image-smoothing.js +++ b/examples/disable-image-smoothing.js @@ -15,7 +15,8 @@ const disabledLayer = new TileLayer({ attributions: attributions, url: 'https://api.maptiler.com/tiles/terrain-rgb/{z}/{x}/{y}.png?key=' + key, - maxZoom: 10, + tileSize: 512, + maxZoom: 12, crossOrigin: '', imageSmoothing: false, }), @@ -36,7 +37,8 @@ const enabledLayer = new TileLayer({ attributions: attributions, url: 'https://api.maptiler.com/tiles/terrain-rgb/{z}/{x}/{y}.png?key=' + key, - maxZoom: 10, + tileSize: 512, + maxZoom: 12, crossOrigin: '', }), });