1 <iframe id="linkloader" style="display: none">
5 <% if map.instance_of? Changeset or (map.instance_of? Node and map.version > 1) or map.visible %>
7 <% content_for :head do %>
8 <%= javascript_include_tag "browse" %>
12 if map.instance_of? Changeset
13 bbox = map.bbox.to_unscaled
17 :minlon => bbox.min_lon,
18 :minlat => bbox.min_lat,
19 :maxlon => bbox.max_lon,
20 :maxlat => bbox.max_lat
24 :type => map.class.name.downcase,
26 :version => map.version,
27 :visible => map.visible
31 <%= content_tag "div", "", :id => "small_map", :data => data %>
32 <span id="loading"><%= t 'browse.map.loading' %></span>
34 <%= link_to t("browse.map.larger.area"),
35 root_path(:box => "yes"),
36 :id => "area_larger_map",
37 :class => "geolink bbox" %>
39 <%= link_to h(t("browse.map.edit.area")) + content_tag(:span, "▾", :class => "menuicon"),
42 :data => { :editor => preferred_editor },
43 :class => "geolink bbox" %>
45 <% unless map.instance_of? Changeset %>
47 <%= link_to t("browse.map.larger." + map.class.to_s.downcase),
49 :id => "object_larger_map",
50 :class => "geolink object" %>
52 <%= link_to h(t("browse.map.edit." + map.class.to_s.downcase)) + content_tag(:span, "▾", :class => "menuicon"),
55 :data => { :editor => preferred_editor },
56 :class => "geolink object" %>
60 <%= t 'browse.map.deleted' %>
64 <div id="area_edit_menu" class="menu">
66 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
67 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
68 edit_path(:editor => editor),
69 :data => {:editor => editor},
70 :class => "geolink bbox" %></li>
75 <div id="object_edit_menu" class="menu">
77 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
78 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
79 edit_path(:editor => editor),
80 :data => {:editor => editor},
81 :class => "geolink object" %></li>