Update various examples to use the Mapbox v4-API

This commit is contained in:
Marc Jansen
2019-09-23 16:49:51 +02:00
parent b58c78c546
commit 57822aa6ff
19 changed files with 54 additions and 16 deletions

View File

@@ -77,8 +77,9 @@ Progress.prototype.hide = function() {
const progress = new Progress(document.getElementById('progress'));
const key = 'pk.eyJ1IjoidHNjaGF1YiIsImEiOiJjaW5zYW5lNHkxMTNmdWttM3JyOHZtMmNtIn0.CDIBD8H-G2Gf-cPkIuWtRg';
const source = new TileJSON({
url: 'https://api.tiles.mapbox.com/v3/mapbox.world-bright.json?secure',
url: 'https://api.tiles.mapbox.com/v4/mapbox.world-bright.json?secure&access_token=' + key,
crossOrigin: 'anonymous'
});