Deactivate transition effect for semi transparent layer example

This commit is contained in:
Frederic Junod
2018-01-19 15:50:48 +01:00
parent 6385f615c9
commit 8fc6641750
+3 -1
View File
@@ -14,7 +14,9 @@ const map = new Map({
new TileLayer({ new TileLayer({
source: new TileJSON({ source: new TileJSON({
url: 'https://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.json?secure', url: 'https://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.json?secure',
crossOrigin: 'anonymous' crossOrigin: 'anonymous',
// this layer has transparency, so do not fade tiles:
transition: 0
}) })
}) })
], ],