From: John Firebaugh Date: Mon, 5 Nov 2012 01:48:20 +0000 (-0800) Subject: Fix L.Icon.Default.imagePath in production X-Git-Tag: live~5743^2~23 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/66f0a4da049e2f71a950ad4adf5f5593cd152f4d Fix L.Icon.Default.imagePath in production --- diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb index e0570336b..520e9296e 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -42,6 +42,8 @@ L.Bounds.include({ } }); +L.Icon.Default.imagePath = <%= "#{asset_prefix}/images".to_json %>; + var map; var layers = [