34

I need a Leaflet plugin which extends L.Control.Layers. I have the following requirements:

  • works with Leaflet 1.x
  • handles ungrouped layers alongside grouped ones
  • handles nested layer groups
  • does not rely on actual Leaflet LayerGroups, but can be built up independently (in other words, layers can be grouped in this control in a different structure to how the layers themselves are grouped in the Leaflet map)

I've tried:

Can anyone suggest if any plugin does what I need?

BOUNTY ADDED To qualify for the bounty, please link to or upload a fully working example using Leaflet 1.x, including in the custom layer control:

  • ungrouped layers
  • grouped layers
  • nested groups
Taras
  • 32,823
  • 4
  • 66
  • 137
Tom Chadwin
  • 5,842
  • 4
  • 25
  • 48

0 Answers0