]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/export.js
Remove a couple of TODOs
[rails.git] / app / assets / javascripts / index / export.js
index 053f5169fa9832e622695042b88d18357b204169..fd658c53236922e1125ce55cdc6af2901acd8651 100644 (file)
@@ -41,6 +41,11 @@ OSM.Export = function(map) {
     $("#minlat").val(bounds.getSouth().toFixed(precision));
     $("#maxlon").val(bounds.getEast().toFixed(precision));
     $("#maxlat").val(bounds.getNorth().toFixed(precision));
+
+    $("#export_overpass").attr("href",
+        "http://overpass-api.de/api/map?bbox=" +
+        $("#minlon").val() + "," + $("#minlat").val() + "," +
+        $("#maxlon").val() + "," + $("#maxlat").val());
   }
 
   function validateControls() {