0.05
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Integrate MapBox.js with the Rails asset pipeline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0
 Project Readme

MapBox.js for rails asset pipeline

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

gem 'mapbox-rails'

Then run bundle install

Include mapbox javascript assets

Add to your app/assets/javascripts/application.js

//= require mapbox.js

Include mapbox stylesheet assets

Add to your app/assets/stylesheets/application.css

*= require mapbox

Enable 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>

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.