Created
August 17, 2014 00:52
-
-
Save denisinla/6d60a84122ff92e63160 to your computer and use it in GitHub Desktop.
Mapbox + RequireJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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