-
Notifications
You must be signed in to change notification settings - Fork 3
select geometries to map #6
Comments
Map/dl/etc specific geographies@carogeo, as I'm thinking about it now, I think the easiest way to go about this would be to add a "radiobutton" option. I think it could be intuitive to add it immediately under the map description, but not interfere with the sidebarpanel? If this seems like the way to go, I'd recommend making a new module (for instance
In the server of the module "save" the user input as a reactive value. Kind of like what is happening in the
Then in the
And you'll also want to make sure that the modules which will need the geography selection (mod_plot_tract, mod_download_scores, mod_table, map_utils, maybe others ) get the
The And then finally you'll get to the Give it a try, and let me know if you'd like me to have a look. If you're unsure of pushing something to GitHub and breaking your code that works, it can always be nice to start a new branch (here "geoselection") or something which can be linked to a specific issue. If you break the new branch, you'll always be able to abandon it! |
@ehesch These options both seem great, thank you! In the main branch of my fork, I added corridors as polygons. Any thoughts for how to best add EVA data for these? I'd like to either:
Alternatively, I also attempted to create geo selection radio buttons, in the geography_selections branch. I ran into a similar roadblock of how best to integrate a new module and new data into the current app structure. |
@carogeo yes! All of these things can be done :) breaking up into 2 comments here:
Overlay polygons
mod_map_overview.R
file shows how you can overlay extra information (in this case, transit stops)You'll note that I did
addCircles
but you can just as easilyaddPolygons
. ThezIndex
makes sure that the layer will be on top of others. The commented outgroupOptions
would automatically turn on the layer if you zoomed in on the map. Make sure to update theaddLayersControl
if you change names, add overlays, etc.The text was updated successfully, but these errors were encountered: