Merge pull request #9967 from jahow/enable-https-webgl-example

Enable HTTPS on Mapbox tile layer in webgl sprite example
This commit is contained in:
Olivier Guyot
2019-09-23 18:02:04 +02:00
committed by GitHub

View File

@@ -107,7 +107,7 @@ const map = new Map({
layers: [ layers: [
new TileLayer({ new TileLayer({
source: new TileJSON({ source: new TileJSON({
url: 'https://api.tiles.mapbox.com/v4/mapbox.world-dark.json?access_token=' + key, url: 'https://api.tiles.mapbox.com/v4/mapbox.world-dark.json?secure&access_token=' + key,
crossOrigin: 'anonymous' crossOrigin: 'anonymous'
}) })
}), }),