set_view: Set the map center and zoom level

View source: R/views.R

set_viewR Documentation

Set the map center and zoom level

Description

Set the map center and zoom level

Usage

set_view(map, center, zoom)

Arguments

map

A map object created by the mapboxgl or maplibre function or a proxy object.

center

A numeric vector of length 2 specifying the center of the map (longitude, latitude).

zoom

The zoom level.

Value

The updated map object.


mapgl documentation built on Nov. 1, 2024, 5:08 p.m.