1 <iframe id="linkloader" style="display: none">
4 <div id="browse_map" class='clearfix content_map'>
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
22 elsif map.instance_of? Note
31 :type => map.class.name.downcase,
33 :version => map.version,
34 :visible => map.visible
38 <%= content_tag "div", "", :id => "small_map", :data => data %>
39 <span id="loading"><%= t 'browse.map.loading' %></span>
41 <ul class='secondary-actions clearfix'>
43 <% if map.instance_of? Note -%>
44 <%= link_to t("browse.map.larger.area"),
45 root_path(:notes => "yes"),
46 :id => "area_larger_map",
47 :class => "geolink bbox" %>
49 <%= link_to t("browse.map.larger.area"),
50 root_path(:box => "yes"),
51 :id => "area_larger_map",
52 :class => "geolink bbox" %>
56 <%= link_to h(t("browse.map.edit.area")) + content_tag(:span, "▼", :class => "menuicon"),
59 :data => { :editor => preferred_editor },
60 :class => "geolink bbox" %>
64 <% unless map.instance_of? Changeset %>
65 <ul class='secondary-actions clearfix'>
67 <%= link_to t("browse.map.larger." + map.class.to_s.downcase),
69 :id => "object_larger_map",
70 :class => "geolink object" %>
73 <%= link_to h(t("browse.map.edit." + map.class.to_s.downcase)) + content_tag(:span, "▼", :class => "menuicon"),
76 :data => { :editor => preferred_editor },
77 :class => "geolink object" %>
83 <%= t 'browse.map.deleted' %>
87 <div id="area_edit_menu" class="menu">
89 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
90 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
91 edit_path(:editor => editor),
92 :data => {:editor => editor},
93 :class => "geolink bbox" %></li>
98 <div id="object_edit_menu" class="menu">
100 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
101 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
102 edit_path(:editor => editor),
103 :data => {:editor => editor},
104 :class => "geolink object" %></li>