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'); map.addLayer(layer);
Doing this I get two related errors.
What am I missing