I have been searching the web for weeks trying to find an example or a code for what I am trying to accomplish with my shiny app (shinydashboard). I’m new to r and I’m starting to think that what I am trying to do is not possible. I basically have a leaflet map with a county polygon (shapefile) and I want to use the click event on the polygon to open a related dataTable (species table) on a box() below the map. The polygon data is a shapefile containing the county name and county number id. The related dataTable contain the county name, county #id and names of species for each county (one-to-many relationship). I was thinking that some how I could use the observe function and county # id from the “map_shape_click” to render the table with the names of the species by county on a output box(). However I don’t know if that is even possible. So far I was able to create the map and use the click event to capture the county name on a box() ( see attached image). This forum is amazing and I have learn a lot from the postings. Thank everyone that contribute to the community. If you have any suggestions how I can accomplish this task please let me know, Thanks
JB