Use legacy UTFGrid source (which doesn't require a token)
This commit is contained in:
@@ -12,6 +12,7 @@ var mapLayer = new ol.layer.Tile({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var gridSource = new ol.source.TileUTFGrid({
|
var gridSource = new ol.source.TileUTFGrid({
|
||||||
|
jsonp: true, // for v4 and above, leave this option off
|
||||||
url: 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.json'
|
url: 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.json'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user