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
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 <% if map.instance_of? Note -%>
41 <%= link_to t("browse.map.larger.area"),
42 root_path(:notes => "yes"),
43 :id => "area_larger_map",
44 :class => "geolink bbox" %>
46 <%= link_to t("browse.map.larger.area"),
47 root_path(:box => "yes"),
48 :id => "area_larger_map",
49 :class => "geolink bbox" %>
52 <%= link_to h(t("browse.map.edit.area")) + content_tag(:span, "▾", :class => "menuicon"),
55 :data => { :editor => preferred_editor },
56 :class => "geolink bbox" %>
58 <% unless map.instance_of? Changeset or map.instance_of? Note %>
60 <%= link_to t("browse.map.larger." + map.class.to_s.downcase),
62 :id => "object_larger_map",
63 :class => "geolink object" %>
65 <%= link_to h(t("browse.map.edit." + map.class.to_s.downcase)) + content_tag(:span, "▾", :class => "menuicon"),
68 :data => { :editor => preferred_editor },
69 :class => "geolink object" %>
73 <%= t 'browse.map.deleted' %>
77 <div id="area_edit_menu" class="menu">
79 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
80 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
81 edit_path(:editor => editor),
82 :data => {:editor => editor},
83 :class => "geolink bbox" %></li>
88 <div id="object_edit_menu" class="menu">
90 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
91 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
92 edit_path(:editor => editor),
93 :data => {:editor => editor},
94 :class => "geolink object" %></li>