Click event on Leaflet tile map in Shiny
Is it possible to get the lat long from a click event in leaflet/shiny (in R) from the tile map? (i.e. NOT from any loaded markers, polygons etc). Just to show positional (lat/long) info i guess. I thought maybe from this qu it was possible but no luck. ui <- bootstrapPage( tags$style(type = "text/css", "html, body {width:100%;height:100%}"), leafletOutput("map", width = "100%", height = "100%") ) server <- function(input, output,session) { output$map <- renderLeaflet({ leaflet() %>% addProviderTiles("CartoDB.Positron")%>% setView(lng = -4, lat= 52.54, zoom = 7) }) #Show popup on click