1 <div id="browse_map" class='clearfix content_map'>
2 <% if map.instance_of? Changeset or (map.instance_of? Node and map.version > 1) or map.visible? %>
4 <% content_for :head do %>
5 <%= javascript_include_tag "browse" %>
9 if map.instance_of? Changeset
10 bbox = map.bbox.to_unscaled
14 :minlon => bbox.min_lon,
15 :minlat => bbox.min_lat,
16 :maxlon => bbox.max_lon,
17 :maxlat => bbox.max_lat
19 elsif map.instance_of? Note
28 :type => map.class.name.downcase,
30 :version => map.version,
31 :visible => map.visible
35 <%= content_tag "div", "", :id => "small_map", :data => data %>
36 <span id="loading"><%= t 'browse.map.loading' %></span>
38 <ul class='secondary-actions clearfix'>
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" %>
53 <%= render :partial => 'layouts/edit_menu',
54 :locals => { :link_text => t("browse.map.edit.area"),
55 :link_class => 'bbox' } %>
59 <% unless map.instance_of? Changeset %>
60 <ul class='secondary-actions clearfix'>
62 <%= link_to t("browse.map.larger." + map.class.to_s.downcase),
64 :id => "object_larger_map",
65 :class => "geolink object" %>
68 <%= render :partial => 'layouts/edit_menu',
69 :locals => { :link_text => t("browse.map.edit." + map.class.to_s.downcase),
70 :link_class => 'object' } %>
76 <%= t 'browse.map.deleted' %>