Sha256: baa3ee81702349cff45432b604c9e4b390783646d49d7c3d38da160ba5e6d802
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# MapBox.js for rails asset pipeline [MapBox.js](https://github.com/mapbox/mapbox.js) is a library integrating MapBox maps. The `mapbox-rails` gem integrates the `Chosen` with the Rails asset pipeline. ## Usage ### Install mapbox-rails gem Include `mapbox-rails` in Gemefile ```ruby gem 'mapbox-rails' ``` Then run `bundle install` ### Include mapbox javascript assets Add to your `app/assets/javascripts/application.js` ```coffeescript //= require mapbox.js ``` ### Include mapbox stylesheet assets Add to your `app/assets/stylesheets/application.css` ```scss *= require mapbox ``` ### Enable mapbox ```html <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> ``` ## Gem maintenance Maintain `mapbox-rails` gem with `Rake` commands. Update origin mapbox source files. rake update-mapbox Publish gem. rake release ## License Portions of this code use the BSD and the MIT license. See LICENSE.md for more information.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mapbox-rails-2.3.0 | README.md |