Interactive Map of Johns Hopkins Bloomberg School of Public Health

This map, created on 2023-12-01, features the Johns Hopkins Bloomberg School of Public Health. However, getting this map to display correctly was a nightmare and took ages. GitHub always seems to cause problems for me!

The setView function sets the initial view of the map to center on the school.

The addMarkers places a marker at the school’s location.

There is also a pop-up message if you click on the marker.

## Interactive Map of Johns Hopkins Bloomberg School of Public Health
m <- leaflet() %>% 
  addTiles() %>%  
  setView(lng = -76.590202, lat = 39.299236, zoom = 17) %>% 
  addMarkers(lng = -76.590202, lat = 39.299236, 
             popup = paste0('<img src="', 'https://api.hub.jhu.edu/factory/sites/default/files/styles/landscape/public/gilman_quad0508.jpg',
             '" width="300" height="200"><br>',
             'Johns Hopkins Bloomberg School of Public Health'))
print(m)