Use legacy UTFGrid source (which doesn't require a token)

This commit is contained in:
Tim Schaub
2016-05-10 11:47:18 -06:00
parent a810feb257
commit 94b8c853a7

View File

@@ -12,6 +12,7 @@ var mapLayer = new ol.layer.Tile({
});
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'
});