X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9c1a3e47086b53592aafa9452a2a666d5c972f0d..72e33046c80bddc0ca9b1336786dcb4b349137f7:/app/views/browse/_map.html.erb diff --git a/app/views/browse/_map.html.erb b/app/views/browse/_map.html.erb index 1ff86cd4e..d2695ebe6 100644 --- a/app/views/browse/_map.html.erb +++ b/app/views/browse/_map.html.erb @@ -99,6 +99,15 @@ <% 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); + + $("loading").style.display = "none"; + + updatelinks(centre.lon, centre.lat, 16, null, null, null, null, null) <% else %> var obj_type = "<%= map.class.name.downcase %>"; var obj_id = <%= map.id %>;