I am building an application primarily with the ESRI API, but would like to load a mapbox tilelayer to use as the basemap as they are just so much more pleasing cartographically. I dont want to change the actual "map", as I need many of the widgets that need this tag to load and function correctly. was thinking of simply loading the mapbox tiles and addinn them to the map. Following the mapbox API documentation, I loaded the library:

<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.css' rel='stylesheet' />

I then tried to create the layer of the map box tiles and add that to the map:

var layer = L.mapbox.tileLayer('mapbox.ID');

Doing this I get two related errors.

1 - GET http://a.tiles.mapbox.com/v3/mapbox.ID.json 404 (Not Found) 2 - could not load TileJSON at http://a.tiles.mapbox.com/v3/mapbox.ID.json

What am I missing

1 Answer 1


you need to specify the value of "mapbox.ID" for the tile set you want to load. In the API docs they show an example successful URL:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.