我有三个这样的控件:
map.addControl(new L.Control.Search({
position: "topright",
});
var searchControl = new L.esri.Geocoding.geosearch({
position: "topright",
}).addTo(map);
var proximity = L.control({
position: "topright",
});我希望后两个出现在彼此的旁边。应用Placing leaflet controls side-by-side instead of vertically stacked in R/Shiny with HTML/CSS使所有三个都显示在彼此的旁边。
发布于 2020-07-14 14:15:03
试一试
.leaflet-top.leaflet-right .leaflet-control:nth-child(2) {
clear: none;
}https://stackoverflow.com/questions/62888781
复制相似问题