Leaflet.draw packaged for the rails asset pipeline
Add leaflet-draw-rails
to your Gemfile and run bundle install
:
gem 'leaflet-draw-rails'
Include javascript assets in app/assets/javascripts/application.js
//= require leaflet.draw
Include stylesheet assets in app/assets/stylesheets/application.css
*= require leaflet.draw
Include conditional IE stylesheet in your layout (example markup in slim)
/[if IE lte 8]
= stylesheet_link_tag 'leaflet.draw.ie'
Fork & send a pull with decent commit messages
Jacob Toye and brunob