Error when assigning a title to the layer. It is intended that next to the icon you can see a title to know which layer or menu it corresponds to (There are 4 layers that each have different categories). But it shows the symbol or icon, but no title. In this way we cannot distinguish one layer from another.
Code:
var layerControlElements = new L.Control.Layers(null, {
'PLCs': plc
}).addTo(map);
layerControlElements.title = "Título del layer";
4 Layer (which have no title):
The divs of the icons have the class
leaflet-control-layers
, so it can be done:where
i
is eachL.control.layers
.titulo
it can be another html element with styles. Full example in this jsfiddle .