-
Notifications
You must be signed in to change notification settings - Fork 33
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
[R-sig-Geo] "Preselecting" shapes on leaflet map shiny using mapedit::selectmod #75
Comments
@tim-salabim thanks for posting here. I will demo this. Testing |
Hi, |
@timelyportfolio I would also be very interested in a solution to this problem. Did you do a demo for this? |
@GordoCabron @Fooourche I'll work on an example to demonstrate/test. If all works, then we can have a discussion about making this easier in |
@timelyportfolio HI, I have an option to let user select grid size (e.g., 0.5-degree, 1-degree) for gridded data on shiny. But after changing grid size, all re-drawn grids must be re-selected by user on mapedit map. So I intersect the new grid cells (finer or coarser) with old selected grids and try to make these intersected ones as pre-selected grids on map. I think it's similar problem to this issue. If there any possible solution/example to this issue? Thanks. |
The following came up on R-sig-Geo today. I have mirgrated to here as I don't know if @timelyportfolio is on that mailing list:
Hi I am putting together a shiny map app in which I want to allow for
selection or deselection of polygons from a map layer.
Importantly At the beginning of the process I would like a subset of the
polygons to be already selected ( and they can then be deselected using a
click if required).
The final set of selected polygons is then saved to disk.
Ideally I would like to be able ( eg using a shiny action button) to reset
the selection to the pre-selected polygons.
I have the basic click select working fine, but cannot work out how to
pre-select some polygons so that they are dis as selected ( and can be
deselected with a click) at the start of the process.
Secondly is there a way to reset the selection to the pre-selected set.
The pre-selected polygon ids will change depending on another interactive.
toy example of code is below with comments about the two issues that I
cannot figure out:
The text was updated successfully, but these errors were encountered: