rstudio / leaflet

R Interface to Leaflet Maps
http://rstudio.github.io/leaflet/
Other
805 stars 509 forks source link

Add anything and everything to a popup #120

Open johnpauls opened 9 years ago

johnpauls commented 9 years ago

It would be nice to be able to add anything to a popup - plots, tables etc. This would be particularly good for shiny applications where the various render functions could be used to make graphs or tables that update based on both user selections at the level of the map and within the popup itself.

ziyadsaeed commented 9 years ago

something as basic as

popup = ~as.character(tags$b("City"))

doesn't work, you have to use paste or sprintf

efh0888 commented 8 years ago

I completely agree. In my app I was hoping to include a nice DataTable in popups.