Skip to content
Prev 28965 / 29559 Next

Add popup coordinates to marker in leaflet

Dear list members,

How can I add the coordinates to the popup of the marker?

library(leaflet)
leaflet(m) %>%
  addTiles() %>%
  fitBounds(0, 40, 10, 50) %>%
  setView(-93.65, 42.0285, zoom = 17) %>%
  addMarkers(-93.65, 42.0285)