I have been using Mapbox together with Leaflet for quite some time. Recently, the Mapbox maps stopped loading. What happened?
Here's the .js code thats used to load Mapbox's tiles:
var map = new L.map('map', {
center: new L.LatLng(42.352455, -71.048069),
zoom: 13,
maxZoom: 17,
layers: new L.TileLayer('.mapbox-streets/{z}/{x}/{y}.png')
});
I have been using Mapbox together with Leaflet for quite some time. Recently, the Mapbox maps stopped loading. What happened?
Here's the .js code thats used to load Mapbox's tiles:
var map = new L.map('map', {
center: new L.LatLng(42.352455, -71.048069),
zoom: 13,
maxZoom: 17,
layers: new L.TileLayer('http://a.tiles.mapbox./v3/mapbox.mapbox-streets/{z}/{x}/{y}.png')
});
Share
asked Jan 4, 2013 at 23:28
NyxynyxNyxynyx
63.9k163 gold badges507 silver badges856 bronze badges
1 Answer
Reset to default 6You should be using map tiles hosted in your own account. The mapbox.mapbox-streets
is no longer valid.