X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b8c500cdbc7061afc6b42d1efbcdf5b477de9daa..19a57c97b16d2dae962739f49732c081acaf3202:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 35ce1e2fd..94b24debf 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -125,7 +125,7 @@ by the OpenStreetMap project and it's contributors. function setPosition(lat, lon, zoom) { var centre = new OpenLayers.LonLat(lon, lat); - map.setCenter(centre, zoom); + setMapCenter(centre, zoom); if (marker) removeMarkerFromMap(marker); @@ -180,5 +180,9 @@ by the OpenStreetMap project and it's contributors. window.onload = handleResize; window.onresize = handleResize; + + <% if params['action'] == 'export' %> + <%= remote_function :url => { :controller => 'export', :action => 'start' } %> + <% end %> // -->