--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Hi Joe,
I'm using your code as a base for my own, and specifically, I'm having issues with map$clearShapes within observe; when I comment it out, the app works fine except for the fact that the shapes don't go away when the user selects a different city. Everything else seems to work well.
Here's my error.map$clearShapes : object of type 'closure' is not subsettable
Thank you so much for your help!
J.R.
--
Thanks for the response.
I'm pretty sure leaflet shiny is setup as Mercator projection but Google geocoding uses latlong. Leafletjs has a method for updating but I couldn't find the command in leafet -shiny.
Hiya Joe. Yeah they're definitely correct coords coming back from Google as I can use plotgooglemaps and or ggmap + ggplot2 and they're rendered correctly just getting adulterated by leaflet-shiny.