Volt::Osmaps
Volt component wrapping Leaflet.js to use OpenStreetMaps in your volt app.
Installation
Add this line to your application's Gemfile:
gem 'volt-osmaps'
And then execute:
$ bundle
Or install it yourself as:
$ gem install volt-osmaps
Usage
Typical Usage to add a map with a marker:
<:osmaps height="380px" latitude="{{ latitude }}" longitude="{{ longitude }}" title="{{ title }}" />
A marker will be added in the center that will open a popup with the "title" as information
You will need a geocoder if you only have a street address instead of the latitude, longitude coordinates
Contributing
- Fork it ( http://github.com/[my-github-username]/volt-osmaps/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request