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([
}
}
-.leaflet-control-group-end + .leaflet-control {
- padding-top: 10px;
-}
-
-.leaflet-control:first-child,
-.leaflet-control-group-end + .leaflet-control {
- &.control-button, .control-button:first-child {
- border-start-start-radius: 4px;
- }
-}
-
-.leaflet-control-group-end {
- &.control-button, .control-button:last-child {
- border-end-start-radius: 4px;
- }
-}
-
/* Rules for the sidebar and main map area */
.map-layout {