set_view() sets the centre and/or zoom; set_bounds() fits bounds
(keeping the view's size). Python: m.set_view(), m.set_bounds().
Arguments
- m
A
basemap()object.- center
c(longitude, latitude), orNULLto keep it.- zoom
MapLibre zoom, or
NULLto keep it.- bounds
Bounds to fit instead of
center/zoom:c(xmin, ymin, xmax, ymax)incrs(default EPSG:4326), ansf::st_bbox()result, or ansf/sfcobject.- crs
CRS of
bounds(anythingsf::st_crs()accepts).