Restore templating to embed.js
[rails.git] / app / assets / javascripts / embed.js.erb
similarity index 90%
rename from app/assets/javascripts/embed.js
rename to app/assets/javascripts/embed.js.erb
index 05877b1e286cbaeeb985b92d2136a84e3bb54bd3..eec4b080e3e7192559c34072187afb6a3c44aaa6 100644 (file)
@@ -28,10 +28,10 @@ window.onload = function () {
 
   if (args.marker) {
     L.marker(args.marker.split(','), {icon: L.icon({
-      iconUrl: OSM.MARKER_ICON,
+      iconUrl: <%= asset_path('images/marker-icon.png').to_json %>,
       iconSize: new L.Point(25, 41),
       iconAnchor: new L.Point(12, 41),
-      shadowUrl: OSM.MARKER_SHADOW,
+      shadowUrl: <%= asset_path('images/marker-shadow.png').to_json %>,
       shadowSize: new L.Point(41, 41)
     })}).addTo(map);
   }