传单,如何将叠加层置于控件的底图之上?

时间:2018-12-12 12:53:57

标签: leaflet

在Leaflet控件中是底图下的叠加层。如何摆放它们? 只是为了交换叠加器/底图的位置。

1 个答案:

答案 0 :(得分:1)

现在使用flex进行编辑:

.leaflet-control-layers-expanded .leaflet-control-layers-list {
display:flex; flex-direction:column;}
.leaflet-control-layers-base { order:3 }
.leaflet-control-layers-separator {order:2} 

较旧:

.leaflet-control-layers-list {display:table; }
.leaflet-control-layers-base {display:table-footer-group; }
.leaflet-control-layers-overlays {display:table-header-group;}
.leaflet-control-layers-separator {display:none} 

来自: CSS table rows reorder