Fix L.Icon.Default.imagePath in production
authorJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 5 Nov 2012 01:48:20 +0000 (17:48 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 9 Nov 2012 20:59:30 +0000 (12:59 -0800)
app/assets/javascripts/map.js.erb

index e0570336b6309e83939c1e9010fb02326a0dab11..520e9296e220183ec96604ba750c9d2018bfb3e3 100644 (file)
@@ -42,6 +42,8 @@ L.Bounds.include({
   }
 });
 
+L.Icon.Default.imagePath = <%= "#{asset_prefix}/images".to_json %>;
+
 var map;
 
 var layers = [