Improve documentation for LayersControl
See original GitHub issueIn the LayersControl documentation, it seems to suggest that you add a new LayersControl
object, initialised with no parameters, and you automatically get control over the layers.
However, when I do this, I only get one checkbox in the control, which is unlabelled and only controls the most-recently added LayerGroup
. There doesn’t seem to be any way to control older groups, or give names in the label.
Is there something I’ve missed?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Layers Control — ipyleaflet documentation - Read the Docs
The LayersControl allows one to display a layer selector on the map in order to select which layers to display on the map....
Read more >React Leaflet with LayersControl handling object datas
Manupulate your data before that. That's just javascript try play with the map, filter and sort methods to understand better what you need...
Read more >Switch between basemap layers (Control.Layers) | Esri Leaflet
Use Leaflet's Control.Layers control to switch between different base layers and to toggle overlays on or off.
Read more >Documentation - a JavaScript library for interactive maps
Fired when an overlay is deselected through the layers control. layeradd, LayerEvent, Fired when a new layer is added to the map. layerremove,...
Read more >addLayersControl: Add UI controls to switch layers on and off
addLayersControl, R Documentation ... Uses Leaflet's built-in layers control feature to allow users to choose one of several base layers, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, that would make sense. I leave this issue open until the documentation is fixed. Thanks for reporting! 😃
Fixed by #319