Switch back to leaflet-rails

The rails-assets version has too many issues with the asset pipeline
This commit is contained in:
Henne Vogelsang 2016-04-01 16:15:52 +02:00
parent c8481aef5d
commit 80f63c7263
3 changed files with 4 additions and 5 deletions

View file

@ -2,7 +2,6 @@
- popup = "<h3>#{@conference.venue.name}</h3><br>#{@conference.venue.street}<br>#{@conference.venue.city}<br>#{@conference.venue.country_name}"
- content_for(:script_body) do
:javascript
L.Icon.Default.imagePath = '/assets/leaflet/';
// create a map in the "map" div, set the view to a given place and zoom
var map = L.map('map', { scrollWheelZoom: false }).setView([#{@conference.venue.latitude}, #{@conference.venue.longitude}], 11);
// add an OpenStreetMap tile layer