An Interactive map of Toronto, Canada


Code for the map.

# setup the library we need
        library(leaflet)


Building the map.

# leaflet code to setup map
        my_map <- leaflet() %>% 
                addTiles() %>%  # Add default OpenStreetMap map tiles 
        
# define the markers
        addMarkers(lat=43.638492, lng=-79.404789, popup= FY) %>%
        addMarkers(lat=43.642488, lng=-79.387002, popup= CN) %>%
        addMarkers(lat=43.652099, lng=-79.383237, popup= CH) %>%
        addMarkers(lat=43.623505, lng=-79.381735, popup= TI) %>%
        addMarkers(lat=43.662305, lng=-79.395675, popup= UofT)

# display the map
        my_map


Lots to see, so come for a visit!