MapBox.js is a library integrating MapBox maps.
The mapbox-rails gem integrates the Chosen with the Rails asset pipeline.
Include mapbox-rails in Gemefile
gem 'mapbox-rails'Then run bundle install
Add to your app/assets/javascripts/application.js
//= require mapbox.jsAdd to your app/assets/stylesheets/application.css
*= require mapbox<div id='map' class='dark'></div>
<script type='text/javascript'>
var map = L.mapbox.map('map', 'examples.map-y7l23tes').setView([37.9, -77], 5);
</script>Maintain mapbox-rails gem with Rake commands.
Update origin mapbox source files.
rake update-mapbox
Publish gem.
rake release
Portions of this code use the BSD and the MIT license. See LICENSE.md for more information.