Changes the view of the of the map

mapdeck_view(
  map,
  location = NULL,
  zoom = NULL,
  pitch = NULL,
  bearing = NULL,
  duration = NULL,
  transition = c("linear", "fly")
)

Arguments

map

a mapdeck map object

location

unnamed vector of lon and lat coordinates (in that order)

zoom

zoom level of the map

pitch

the pitch angle of the map

bearing

bearing of the map between 0 and 360

duration

time in milliseconds of the transition

transition

type of transition