Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Function to Recolor Polygons in Shiny without Redrawing them #58

Open
mateolangston opened this issue Jun 15, 2023 · 2 comments
Labels
upstream Bug in upstream repo wontfix

Comments

@mateolangston
Copy link

mateolangston commented Jun 15, 2023

rstudio/leaflet#496
See this issue which has not been resolved for nearly 5 years on leaflet or leaflet.extras

A function to updatePolygons() would be wonderful to be able to change the fillColor without redrawing the entire polygon.

Another possibility would be to integrate this with Timeslider so that it can handle Polygons and not just Points

@tim-salabim
Copy link

I started on something like that a while ago in https://github.com/r-spatial/leafem/blob/master/R/addLayerSelector.R
See e.g. https://fosstodon.org/@tim_salabim/109930450935451917 for a very basic demo. It's functional, but not very flexible at this stage

@trafficonese
Copy link
Owner

This seems indeed very useful, but I dont think leaflet.extras2 is the place to incorporate that.
Especially since a lot of work was already put into this.
I think this should be adressed in leaflet itself and there are already some PR's or examples on how to implement it yourself.

@trafficonese trafficonese added upstream Bug in upstream repo wontfix labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Bug in upstream repo wontfix
Projects
None yet
Development

No branches or pull requests

3 participants