You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #111 describes how to 'update' a layer by removing it and replacing it with the updated source. It would be nice to preserve the visibility that the original layer had, but I am not able to retrieve the visibility.
vis = m.get_visibility(layerid) # no such function
# remove and replace layer here
m.set_visibility(layerid, visible=vis)
Q: is there a 'get_visibility' corresponding to the 'set_visibility' function?
The text was updated successfully, but these errors were encountered:
@wendellwt Hi, at the moment, but I think I can add generic function to suppert all Map.get_* methods, but it will be a little bit tricky, because we have to define a variable to pass the values from JS back to Python as done for some other values as well, but in this case it should be dynamic. Do you use maplibre for Shiny or the ipywidget?
How do you retrieve the visibility of a layer?
Issue #111 describes how to 'update' a layer by removing it and replacing it with the updated source. It would be nice to preserve the visibility that the original layer had, but I am not able to retrieve the visibility.
Q: is there a 'get_visibility' corresponding to the 'set_visibility' function?
The text was updated successfully, but these errors were encountered: