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
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 <ul class='secondary-actions clearfix'>
36 <%= link_to t("browse.map.larger.area"),
37 root_path(:box => "yes"),
38 :id => "area_larger_map",
39 :class => "geolink bbox" %>
42 <%= link_to h(t("browse.map.edit.area")) + content_tag(:span, "▼", :class => "menuicon"),
45 :data => { :editor => preferred_editor },
46 :class => "geolink bbox" %>
50 <% unless map.instance_of? Changeset %>
51 <ul class='secondary-actions clearfix'>
53 <%= link_to t("browse.map.larger." + map.class.to_s.downcase),
55 :id => "object_larger_map",
56 :class => "geolink object" %>
59 <%= link_to h(t("browse.map.edit." + map.class.to_s.downcase)) + content_tag(:span, "▼", :class => "menuicon"),
62 :data => { :editor => preferred_editor },
63 :class => "geolink object" %>
69 <%= t 'browse.map.deleted' %>
73 <div id="area_edit_menu" class="menu">
75 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
76 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
77 edit_path(:editor => editor),
78 :data => {:editor => editor},
79 :class => "geolink bbox" %></li>
84 <div id="object_edit_menu" class="menu">
86 <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
87 <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
88 edit_path(:editor => editor),
89 :data => {:editor => editor},
90 :class => "geolink object" %></li>