]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Set borders and spacing for control groups directly in js
[rails.git] / app / assets / javascripts / index.js
index 2bda933a975e53f4171ee132b7a21cc854e30f50..6f3bb0c5016bfc1573c6a2d1b38c656befc6eba0 100644 (file)
@@ -109,8 +109,14 @@ $(document).ready(function () {
       control.addTo(map);
     });
 
-    var lastContainer = controls[controls.length -1].getContainer();
-    $(lastContainer).addClass("leaflet-control-group-end");
+    var firstContainer = controls[0].getContainer();
+    $(firstContainer).find(".control-button").first()
+      .css("border-start-start-radius", "4px");
+
+    var lastContainer = controls[controls.length - 1].getContainer();
+    $(lastContainer).find(".control-button").last()
+      .css("margin-bottom", "10px")
+      .css("border-end-start-radius", "4px");
   }
 
   addControlGroup([