+ <% if preferred_editor == "remote" %>
+ $("area_edit").observe("click", function (event) {
+ remoteEditHandler(event, bbox);
+ });
+ <% end %>
+
+ updatelinks(centre.lon, centre.lat, 16, null, minlon, minlat, maxlon, maxlat)
+ <% elsif map.instance_of? Note %>
+ var centre = new OpenLayers.LonLat(<%= map.lon %>, <%= map.lat %>);
+
+ setMapCenter(centre, 16);
+ addMarkerToMap(centre);
+
+ var bbox = getMapExtent();
+
+ $("loading").style.display = "none";
+
+ $$("#browse_map .geolink").each(function (link) {
+ link.style.display = "inline";
+ });
+
+ $("remote_area_edit").observe("click", function (event) {
+ remoteEditHandler(event, bbox);
+ });
+
+ <% if preferred_editor == "remote" %>
+ $("area_edit").observe("click", function (event) {
+ remoteEditHandler(event, bbox);
+ });
+ <% end %>
+
+ updatelinks(centre.lon, centre.lat, 16, null, bbox.left, bbox.bottom, bbox.right, bbox.top)