A web page using R Markdown that features a map created with Leaflet.

Hosted on RPubs.

library(leaflet)
## Warning: package 'leaflet' was built under R version 4.1.2
redHouse_map <- leaflet() %>%
  addTiles()
redHouseIcon <- makeIcon(
  iconUrl = "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQa3yRaYmo0qip6Yf20GBnGuGBPlp-jAgBv-FwFljwrF1_IIsY0",
  iconWidth = 31*215/230, iconHeight = 31,
  iconAnchorX = 31*215/230/2, iconAnchorY = 16
)
red_House <- c("<a href= 'http://www.ttparliament.org/about.php?mid=37'>The Red House</a>")
redHouse_map %>% 
  addMarkers(lat=10.65343, lng=-61.51167, icon = redHouseIcon, popup = red_House)