The calls to `render_map` are confusing since there are so many parameters. We can assume that the map is editable if we pass the remove marker label.
6 lines
133 B
Plaintext
6 lines
133 B
Plaintext
<%= tag.div(id: dom_id(map_location), class: "map_location map", data: data) %>
|
|
|
|
<% if editable? %>
|
|
<%= remove_marker %>
|
|
<% end %>
|