Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mapbox + RequireJS
require.config({
paths: {
"jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min",
"fitText": "/js/vendor/jquery.fittext",
"fitVids": "/js/vendor/jquery.fitvids",
"mapbox": "//api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox"
}
});
require(['mapbox'], function() {
var map = L.mapbox.map('map', 'examples.map-9ijuk24y')
.setView([40, -74.50], 9);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment