Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Leaflet Controlls Horizontally

Tags:

gis

leaflet

I´ve an problem with placing leaflet controls in my map. I would like to place controls horizontally but I don´t know if is it in Leaflet possible? Is there any solution to do this?

like image 297
user22899 Avatar asked Mar 19 '23 18:03

user22899


1 Answers

The leaflet-control css class looks like that:

.leaflet-control {
    float: left;
    clear: both;
    }

The clear: both is what makes the controls go below each other. To prevent that for a certain control, just set clear:none on the CSS class for that control, assuming that the control has a specific CSS class you can reach.

like image 124
letmaik Avatar answered Apr 06 '23 01:04

letmaik