]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
api06: Fix normal way and relation uploading (i.e. not as part of a diff).
[rails.git] / public / javascripts / map.js
index b3d964b5b468e0bffa7ff1b5989a48119c483bcf..db5b8561638afd45ba4fa403c881b11196ddcf9f 100644 (file)
@@ -109,6 +109,10 @@ function setMapExtent(extent) {
    map.zoomToExtent(extent.clone().transform(epsg4326, map.getProjectionObject()));
 }
 
    map.zoomToExtent(extent.clone().transform(epsg4326, map.getProjectionObject()));
 }
 
+function getMapExtent(extent) {
+   return map.getExtent().clone().transform(map.getProjectionObject(), epsg4326);
+}
+
 function getEventPosition(event) {
    return map.getLonLatFromViewPortPx(event.xy).clone().transform(map.getProjectionObject(), epsg4326);
 }
 function getEventPosition(event) {
    return map.getLonLatFromViewPortPx(event.xy).clone().transform(map.getProjectionObject(), epsg4326);
 }