]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/browse.js
Remove unnecessary abstraction around rectangles
[rails.git] / app / assets / javascripts / browse.js
index 24fe5171e50968d2b3f6e78e567974375d0e5843..a5738e1ba7f449ad93c4070e63f43f0f30cd6531 100644 (file)
@@ -33,7 +33,12 @@ $(document).ready(function () {
                               [params.maxlat, params.maxlon]);
 
     map.fitBounds(bbox);
-    addBoxToMap(bbox);
+
+    L.rectangle(bbox, {
+      weight: 2,
+      color: '#e90',
+      fillOpacity: 0
+    }).addTo(map);
 
     $("#loading").hide();
     $("#browse_map .geolink").show();