-
Notifications
You must be signed in to change notification settings - Fork 503
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
Is drill-down in choropleth maps possible? #41
Comments
Yes, if the map outputId is
|
Thanks Joe. I can extract a lat and lon this way. However, I want to return the country clicked on, which is, say, in the data$country field from the underlying data object. I assume I can use the data argument of addPolygons but I cannot seem to return it correctly
Any help appreciated |
Use |
Thanks guys. layerId = data$country looks good |
Yep. You don't need to pass the On Fri, Jun 5, 2015 at 6:57 AM pssguy notifications@github.com wrote:
|
Hey Joe, This was super helpful. I've been able to implement a drill-down leaflet map going from country to state/province with an info control that changes on hover, but it's still pretty buggy. Would you mind looking at my code at https://github.com/efh0888/leafletDrilldown for some help? The README has all the details... Edit: you can also see a live version at https://efh0888.shinyapps.io/leafletDrilldown |
If I create a chroropleth map of the US states, using addPolygons, is it possible to have an event which would select the chosen state so that county map data / and a resultant map of that state alone can be produced?
The text was updated successfully, but these errors were encountered: