I am using Leaflet JS with Bing map. I need to add titles on top of Type 1 Layer and Category 1 overlays selection, displayed on right top of Map. I could not see any documentation for the same. Can someone help me.
My layers are,
Base Layers: Default and English
Overlays: Type 1 Layer, Type 2 Layer, Category 1, Category 2
let type1Layer = L.layerGroup()
let type2Layer = L.layerGroup()
let category1 = L.layerGroup()
let category2 = L.layerGroup()
let overlays = {
'Type1Layer': type1Layer,
'Type2Layer': type2Layer,
'Category1': category1,
'Category2': category2
}
L.control.layers(baseLayers, overlays).addTo(myMap)
Need to add titles Select Type and Select Category in layer selection window in map as below,
Select Type
Type1Layer
Type2Layer
Select Category
Category1
Category2

SelectTypeinstead ofSelect Typeotherwise you will have to write your own custom plugin that extendsLayersControl. If it fits your needs I can post an example