]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/changeset.js
zoomPrecision doesn't need to be higher-order
[rails.git] / app / assets / javascripts / changeset.js
index 6d4881547b4d07bba65eecaf661c64462b0aa2c0..d9c09bab49ee5a288d200eadad22978a2837a9e5 100644 (file)
@@ -69,11 +69,5 @@ $(document).ready(function () {
         }
   });
 
-  var params = OSM.mapParams();
-  if (params.bbox) {
-    map.fitBounds([[params.minlat, params.minlon],
-                   [params.maxlat, params.maxlon]]);
-  } else {
-    map.fitBounds(group.getBounds());
-  }
+  map.fitBounds(OSM.mapParams().bounds || group.getBounds());
 });