question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve documentation for LayersControl

See original GitHub issue

In 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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
martinRenoucommented, Feb 19, 2019

Sure, that would make sense. I leave this issue open until the documentation is fixed. Thanks for reporting! 😃

0reactions
martinRenoucommented, Mar 21, 2019

Fixed by #319

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found