]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/browse.js
Use jQuery's toggle binding
[rails.git] / app / assets / javascripts / browse.js
index 9858db091a65c769c7b0cd0994ecf542d3b3d3fb..1c0b1b47993287bd03378cee90c9ad9b85a610be 100644 (file)
@@ -56,7 +56,7 @@ $(document).ready(function () {
       $("#browse_map .geolink").show();
 
       if (extent) {
-        extent.transform(map.getProjectionObject(), map.displayProjection);
+        extent = unproj(extent);
 
         var centre = extent.getCenterLonLat();