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
30 :type => map.class.name.downcase,
32 :version => map.version,
33 :visible => map.visible
37 <%= content_tag "div", "", :id => "small_map", :data => data %>
38 <span id="loading"><%= t 'browse.map.loading' %></span>
40 <ul class='secondary-actions clearfix'>
42 <% if map.instance_of? Note -%>
43 <%= link_to t("browse.map.larger.area"),
44 root_path(:notes => "yes"),
45 :id => "area_larger_map",
46 :class => "geolink bbox" %>
48 <%= link_to t("browse.map.larger.area"),
49 root_path(:box => "yes"),
50 :id => "area_larger_map",
51 :class => "geolink bbox" %>
55 <%= link_to h(t("browse.map.edit.area")) + content_tag(:span, "▼", :class => "menuicon"),
58 :data => { :editor => preferred_editor },
59 :class => "geolink bbox" %>
63 <% unless map.instance_of? Changeset or map.instance_of? Note %>
64 <ul class='secondary-actions clearfix'>
66 <%= link_to t("browse.map.larger." + map.class.to_s.downcase),
68 :id => "object_larger_map",
69 :class => "geolink object" %>
72 <%= link_to h(t("browse.map.edit." + map.class.to_s.downcase)) + content_tag(:span, "▼", :class => "menuicon"),
75 :data => { :editor => preferred_editor },
76 :class => "geolink object" %>
82 <%= t 'browse.map.deleted' %>
86 <div id="area_edit_menu" class="menu">
88 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
89 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
90 edit_path(:editor => editor),
91 :data => {:editor => editor},
92 :class => "geolink bbox" %></li>
97 <div id="object_edit_menu" class="menu">
99 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
100 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
101 edit_path(:editor => editor),
102 :data => {:editor => editor},
103 :class => "geolink object" %></li>