Questions tagged [leaflet-layer-control]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers

Leaflet custom layers: how to make them to be combined by user?

I have created a Leaftlet map in an Angular project, using an extended version of tileLayer WMS class: export class ExtendedWMS extends TileLayer.WMS { constructor(baseUrl: string, options: ...
smartmouse's user avatar
0 votes
1 answer

Adding title for each part of layer control in Leaflet

I create a Leaflet map containing some base maps and overlay maps. I want to organize the layer control so that these two parts separated by a title, so I want to have such a view on my layer control: ...
Solmaz's user avatar
  • 149
0 votes
1 answer

Why does Leaflet layer control require null to be expanded by default

I have the following code which is used the create a Leaflet layer control and keep it open by default:- const layerControl = L.control.layers(baseLayers, null, {collapsed:false, position: '...
mapperx's user avatar
  • 1,407