Update tile source maxZoom
This commit is contained in:
@@ -31,8 +31,8 @@ const layer = 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,
|
tileSize: 512,
|
||||||
|
maxZoom: 12,
|
||||||
crossOrigin: 'anonymous',
|
crossOrigin: 'anonymous',
|
||||||
}),
|
}),
|
||||||
style: {
|
style: {
|
||||||
@@ -58,6 +58,7 @@ const map = new Map({
|
|||||||
attributions: attributions,
|
attributions: attributions,
|
||||||
crossOrigin: 'anonymous',
|
crossOrigin: 'anonymous',
|
||||||
tileSize: 512,
|
tileSize: 512,
|
||||||
|
maxZoom: 22,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
layer,
|
layer,
|
||||||
|
|||||||
Reference in New Issue
Block a user