- $("loading").innerHTML = "";
-
- $("area_larger_map").href = '/?minlon='+minlon+'&minlat='+minlat+'&maxlon='+maxlon+'&maxlat='+maxlat+'&box=yes';
- $("area_larger_map").innerHTML = "<%= t 'browse.map.larger.area' %>";
- <% else if map.instance_of? MapBug %>
- $("loading").innerHTML = "";
- var centre = new OpenLayers.LonLat(<%= map.lon %>, <%= map.lat %>);
- var zoom = 16;
- setMapCenter(centre, zoom);
- marker = addMarkerToMap(centre);
- $("area_larger_map").href = '/?mlon=<%= map.lon %>&mlat=<%=map.lat %>';
- $("area_larger_map").innerHTML = "<%= t 'browse.map.larger.area' %>";
- <% else %>
- var obj_type = "<%= map.class.name.downcase %>";
- var obj_id = <%= map.id %>;
- var obj_version = <%= map.version %>;
- var obj_visible = <%= map.visible %>;
- var url = "/api/<%= "#{API_VERSION}" %>/<%= map.class.name.downcase %>/<%= map.id %>";
-
- if (obj_type != "node") {
- url += "/full";
- } else if (!obj_visible) {
- var previous_version = obj_version - 1;
- url += "/" + previous_version;
- }
-
- addObjectToMap(url, true, function(extent) {
- $("loading").innerHTML = "";
-
- if (extent) {
- extent.transform(map.getProjectionObject(), map.displayProjection);
-
- $("area_larger_map").href = '/?minlon='+extent.left+'&minlat='+extent.bottom+'&maxlon='+extent.right+'&maxlat='+extent.top;
- $("area_larger_map").innerHTML = "<%= t 'browse.map.larger.area' %>";
-
- <% unless map.instance_of? Changeset %>
- $("object_larger_map").href = '/?<%= map.class.to_s.downcase %>=<%= map.id %>';
- $("object_larger_map").innerHTML = "<%= t('browse.map.larger.' + map.class.to_s.downcase) %>";
- <% end %>
- } else {
- $("small_map").style.display = "none";
- }
- });
- <% end end %>
- }
+<div id="area_edit_menu" class="menu">
+ <ul>
+ <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
+ <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
+ edit_path(:editor => editor),
+ :data => {:editor => editor},
+ :class => "geolink bbox" %></li>
+ <% end %>
+ </ul>
+</div>