Learn R Programming

mapgl (version 0.2.1)

add_fullscreen_control: Add a fullscreen control to a map

Description

Add a fullscreen control to a map

Usage

add_fullscreen_control(map, position = "top-right")

Value

The modified map object with the fullscreen control added.

Arguments

map

A map object created by the mapboxgl or maplibre functions.

position

A string specifying the position of the fullscreen control. One of "top-right", "top-left", "bottom-right", or "bottom-left".

Examples

Run this code
if (FALSE) {
library(mapgl)

maplibre(
    style = maptiler_style("streets"),
    center = c(11.255, 43.77),
    zoom = 13
) |>
    add_fullscreen_control(position = "top-right")
}

Run the code above in your browser using DataLab