add dummy parameter to url to avoid shared cache

fix prettier
This commit is contained in:
mike-000
2020-05-01 12:28:07 +01:00
committed by GitHub
parent 7a46b3a61a
commit 62f150176a

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: '',