Skip to content

Commit

Permalink
Improve layer manager gui (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Jul 12, 2024
1 parent 9d6e463 commit 2e36ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leafmap/toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -6184,7 +6184,7 @@ def all_layers_chk_changed(change):

all_layers_chk.observe(all_layers_chk_changed, "value")

layers = [lyr for lyr in m.layers]
layers = [lyr for lyr in m.layers if lyr.name]

# if the layers contain unsupported layers (e.g., GeoJSON, GeoData), adds the ipyleaflet built-in LayerControl
if len(layers) < (len(m.layers) - 1):
Expand Down

0 comments on commit 2e36ff6

Please sign in to comment.