X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/935c238626af44723ecb51531fe3a552831edd70..c20b31b54ed3043e9ebf3964aa7c08f5ddc73a95:/app/views/browse/_map.html.erb?ds=sidebyside diff --git a/app/views/browse/_map.html.erb b/app/views/browse/_map.html.erb index 13a352820..dd4ec74df 100644 --- a/app/views/browse/_map.html.erb +++ b/app/views/browse/_map.html.erb @@ -38,6 +38,16 @@ $("area_larger_map").href = '/?minlon='+minlon+'&minlat='+minlat+'&maxlon='+maxlon+'&maxlat='+maxlat+'&box=yes'; $("area_larger_map").innerHTML = "<%= t 'browse.map.larger.area' %>"; + <% elsif map.instance_of? Note %> + var centre = new OpenLayers.LonLat(<%= map.lon %>, <%= map.lat %>); + + setMapCenter(centre, 16); + addMarkerToMap(centre); + + $("loading").innerHTML = ""; + + $("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 %>;