[R-sig-Geo] Add popup coordinates to marker in leaflet
Manuel Spínola
m@p|no|@10 @end|ng |rom gm@||@com
Wed Jun 1 18:21:48 CEST 2022
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)
--
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola using una.cr <mspinola using una.ac.cr>
mspinola10 using gmail.com
Teléfono: (506) 8706 - 4662
Institutional website: ICOMVIS
<http://www.icomvis.una.ac.cr/index.php/manuel>
Blog sobre Ciencia de Datos: https://mspinola-ciencia-de-datos.netlify.app
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list