Merge pull request #7727 from fredj/no_transition

Deactivate transition effect for semi transparent layer example
This commit is contained in:
Frédéric Junod
2018-01-22 08:39:32 +01:00
committed by GitHub
+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
}) })
}) })
], ],