powered by
Add a fullscreen control button
addFullscreenControl(map, position = "topleft", pseudoFullscreen = FALSE)
The leaflet map
position of control: "topleft", "topright", "bottomleft", or "bottomright"
if true, fullscreen to page width and height
leaflet() %>% addTiles() %>% addFullscreenControl()
Run the code above in your browser using DataLab