Learn R Programming

leaflet.extras (version 2.0.1)

addFullscreenControl: Add fullscreen control

Description

Add a fullscreen control button

Usage

addFullscreenControl(map, position = "topleft", pseudoFullscreen = FALSE)

Arguments

map

The leaflet map

position

position of control: "topleft", "topright", "bottomleft", or "bottomright"

pseudoFullscreen

if true, fullscreen to page width and height

Examples

Run this code
leaflet() %>%
  addTiles() %>%
  addFullscreenControl()

Run the code above in your browser using DataLab