Use correct terrain-rgb tile size
This commit is contained in:
@@ -30,7 +30,8 @@ const elevation = new TileLayer({
|
|||||||
source: new XYZ({
|
source: new XYZ({
|
||||||
url:
|
url:
|
||||||
'https://api.maptiler.com/tiles/terrain-rgb/{z}/{x}/{y}.png?key=' + key,
|
'https://api.maptiler.com/tiles/terrain-rgb/{z}/{x}/{y}.png?key=' + key,
|
||||||
maxZoom: 10,
|
tileSize: 512,
|
||||||
|
maxZoom: 12,
|
||||||
crossOrigin: '',
|
crossOrigin: '',
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
@@ -52,6 +53,7 @@ const map = new Map({
|
|||||||
attributions: attributions,
|
attributions: attributions,
|
||||||
url: 'https://api.maptiler.com/maps/streets/{z}/{x}/{y}.png?key=' + key,
|
url: 'https://api.maptiler.com/maps/streets/{z}/{x}/{y}.png?key=' + key,
|
||||||
tileSize: 512,
|
tileSize: 512,
|
||||||
|
maxZoom: 22,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
new ImageLayer({
|
new ImageLayer({
|
||||||
|
|||||||
Reference in New Issue
Block a user