R/view.R
set_view.Rd
Set the GeoLibre camera
set_view( map, center = NULL, zoom = NULL, bearing = NULL, pitch = NULL, bbox = NULL )
A GeoLibre widget.
Optional longitude/latitude pair.
Optional camera values.
Optional west/south/east/north bounds. When supplied it takes precedence over center and zoom.
center
zoom
The modified widget.
map <- geolibre() |> set_view(center = c(-77.0369, 38.9072), zoom = 10, pitch = 30) stopifnot(map$x$project$mapView$zoom == 10)