library(leaflet)
## Warning: package 'leaflet' was built under R version 4.3.2

MY FIRST MAP

CREATING A MAP OF UNION BUILDING IN PRETORIA

DATE: 12 FEBRUARY 2024

my_map <- leaflet() %>%
addTiles()
my_map

##link of the Union Building

South<-data.frame(lat=-25.740207, lng=28.211989,name ="UnionBuilding")
my_map <- South %>%
leaflet() %>%
addTiles() %>%
addMarkers(popup = ~South$name,clusterOptions = markerClusterOptions())
## Assuming "lng" and "lat" are longitude and latitude, respectively
my_map