view_state: Create a view_state

View source: R/view_state.R

view_stateR Documentation

Create a view_state

Description

Create a view_state

Usage

view_state(center = c(0, 0), zoom = 0, pitch = 0, bearing = 0, ...)

Arguments

center

numeric | sf::st_point Center of the viewport on map

zoom

numeric Scale = 2^{zoom}

pitch

numeric Camera angle in degrees (0 is straight down)

bearing

numeric Map rotation in degrees (0 means north is up)

...

additional parameters to pass to view_state | initial_view_state

See Also

https://github.com/uber-archive/viewport-mercator-project/blob/master/docs/api-reference/web-mercator-viewport.md


anthonynorth/rdeck documentation built on Feb. 2, 2024, 1:12 p.m.