]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/dashboards/show.html.erb
Consolidate leaflet marker creation in OSM.getMarker
[rails.git] / app / views / dashboards / show.html.erb
index e110ad531f1f11ad66b4464e24a39a3e52f7ead9..894edd2404217c37374737594a9bf957e76b84df 100644 (file)
@@ -15,7 +15,7 @@
       <% user_data = {
            :lon => current_user.home_lon,
            :lat => current_user.home_lat,
-           :icon => image_path("marker-red.png"),
+           :icon => "MARKER_RED",
            :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
          } %>
       <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %>