add dummy parameter to url to avoid shared cache

This commit is contained in:
mike-000
2020-05-01 12:06:38 +01:00
committed by GitHub
parent 309c2a1090
commit 7a46b3a61a

View File

@@ -35,7 +35,8 @@ const enabledLayer = new TileLayer({
source: new XYZ({
attributions: attributions,
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 +
'&map=2', // dummy parameter added to avoid shared cache
maxZoom: 10,
crossOrigin: '',
}),