I can't get my links to open in a new tab. Instead, they open in the map window and look terrible. I added <target=\"_blank\"
to my links but this didn't help. What am I missing?
chryslerIcon <- makeIcon(
iconUrl = "http://www.patemcmichael.com/wp-content/uploads/2020/07/Office_of_Strategic_Services_Insignia.png",
iconWidth = 30*215/230, iconHeight = 31,
iconAnchorX = 30*215/230/2, iconAnchorY = 16
)
chryslerLatLng <- data.frame(
lat = c(45.880278, 45.832941, 45.796115, 45.784045, 45.80154, 45.873949),
lng = c(8.451111, 8.47093, 8.399866, 8.401868, 8.38608,8.373969))
chryslerSites <- c(
"<a href='http://www.patemcmichael.com/wp-content/uploads/2019/12/SupplyDrop-Ridgeline-scaled.jpg', <target=\"_blank\" >The Drop</a>",
"<a href='http://www.patemcmichael.com/wp-content/uploads/2019/12/LakeRegion-Mottaron-scaled.jpg', <target=\"_blank\" >The Area</a>",
"<a href='http://www.patemcmichael.com/wp-content/uploads/2019/12/SanGiulio-Aerial-Edit.jpg', <target=\"_blank\" >The Belfry</a>",
"<a href='http://www.patemcmichael.com/wp-content/uploads/2019/12/VillaC.jpg', <target=\"_blank\" >The Safe House</a>",
"<a href='http://www.patemcmichael.com/wp-content/uploads/2019/12/Road-LoDolce.jpg', <target=\"_blank\" >The Escape to Pella</a>",
"<a href='http://www.patemcmichael.com/wp-content/uploads/2019/12/QuarnaDrop-9.jpg', <target=\"_blank\" >The Partisans</a>"
)
chryslerLatLng %>%
leaflet() %>%
addTiles() %>%
addMarkers(icon = chryslerIcon, popup = chryslerSites)