R/view.R
set_center.Rd
Center the map
set_center(map, lng, lat, zoom = NULL)
A GeoLibre widget.
Longitude of the new center.
Latitude of the new center.
Optional zoom level.
The modified widget.
map <- geolibre() |> set_center(-77.0369, 38.9072, zoom = 11) stopifnot(map$x$project$mapView$zoom == 11)