Removing access_token in notes for v3 use

This commit is contained in:
Tim Schaub
2016-05-13 12:08:31 -06:00
parent 5a5ad7ce31
commit fb402d120e

View File

@@ -11,13 +11,13 @@ The `ol.source.TileUTFGrid` now uses XMLHttpRequest to load UTFGrid tiles by def
```js
// To work with the v4 API
var v4source = new ol.source.TileUTFGrid({
url: 'http://api.tiles.mapbox.com/v4/example.json?access_token=' + YOUR_KEY_HERE
url: 'https://api.tiles.mapbox.com/v4/example.json?access_token=' + YOUR_KEY_HERE
});
// To work with the v3 API
var v3source = new ol.source.TileUTFGrid({
jsonp: true, // <--- this is required for v3
url: 'http://api.tiles.mapbox.com/v3/example.json?access_token=' + YOUR_KEY_HERE
url: 'http://api.tiles.mapbox.com/v3/example.json'
});
```