Default CORS request mode for tiles used in WebGL rendering

This commit is contained in:
Tim Schaub
2022-01-11 12:39:48 -07:00
parent 1f761d943f
commit e71a8b65e1
6 changed files with 25 additions and 5 deletions

View File

@@ -33,7 +33,6 @@ const layer = new TileLayer({
'https://api.maptiler.com/tiles/terrain-rgb/{z}/{x}/{y}.png?key=' + key,
tileSize: 512,
maxZoom: 12,
crossOrigin: 'anonymous',
}),
style: {
variables: {
@@ -56,7 +55,6 @@ const map = new Map({
source: new XYZ({
url: 'https://api.maptiler.com/maps/streets/{z}/{x}/{y}.png?key=' + key,
attributions: attributions,
crossOrigin: 'anonymous',
tileSize: 512,
maxZoom: 22,
}),