Integrates the Leaflet GeoSearch plugin with Rails asset pipeline
Add this line to your application's Gemfile:
gem 'leaflet-geosearch-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install leaflet-geosearch-rails
Add the following to your app/assets/javascripts/application.js
:
//= require leaflet.geosearch
//= require leaflet.geosearch.provider.openstreetmap
//= require leaflet.geosearch.provider.xyz
Add the following to your app/assets/stylesheets/application.css
:
*= require leaflet.geosearch
Examples can be found at smeijer
- Fork it
- 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
MIT License, full text of license see here
Free Software, Fuck Yeah!