How to create an interactive map

with the SKEMA Quantum Studio framework

Anne Sophie Gill (SKEMA Global Lab in AI) , Marine Leroi (SKEMA Global Lab in AI) , Martin Paquette (SKEMA Global Lab in AI) , Thierry Warin (SKEMA Business School (Raleigh, NC))

Using the SKEMA Quantum Studio(Warin 2019) framework, we are going to teach you how to create basic interactive maps.

Open the following packages


Create your interactive map


# Create your map widget

leaflet() %>% 
setView(lng = -73.5673, lat = 45.5017, zoom = 12) %>% 

# Add layers to your map by using layer functions to modify the map widget. 
# You can have as many or as little layers as you want

  addProviderTiles(providers$Esri.NatGeoWorldMap) %>%  # add ProviderTiles
  addMarkers(lng=-73.582189, lat=45.517958, popup="SKEMA Global Lab in AI") %>% # add Markers
  addScaleBar() %>% # add ScaleBar
  addMiniMap() # add MiniMap

Leaflet provides a lot of different Tiles. You can find them here.

Here is another example of interactive map.


# Create custom icon to add to your layer
koalaIcon <- makeIcon(
  iconUrl = "koala.png",
  iconWidth = 70, iconHeight = 70,
  iconAnchorX = 22, iconAnchorY = 94

# Open packages


# Create Map Widget

leaflet() %>% 
  setView(lng = 144.9631, lat = -37.8136, zoom = 11) %>%  
  addProviderTiles(providers$Stamen.Watercolor) %>% # Stamen Watercolor Theme
  addMarkers(lng= 144.9632, lat= -37.8135, popup="Melbourne", icon = koalaIcon) %>% # Custom Icon 
  addScaleBar() %>% 

And that is how you create basic interactive maps ! For more information about interactive maps, visit Leaflet

Follow SKEMA Global Lab in Augmented Intelligence

Warin, Thierry. 2019. “SKEMA Quantum Studio: A Technological Framework for Data Science in Higher Education.”


For attribution, please cite this work as

Gill, et al. (2020, Jan. 28). Blog: How to create an interactive map. Retrieved from

BibTeX citation

  author = {Gill, Anne Sophie and Leroi, Marine and Paquette, Martin and Warin, Thierry},
  title = {Blog: How to create an interactive map},
  url = {},
  year = {2020}