Skip to contents

Set the camera bearing

Usage

set_bearing(map, bearing)

Arguments

map

A GeoLibre widget.

bearing

Clockwise rotation in degrees.

Value

The modified widget.

Examples

map <- geolibre() |> set_bearing(45)
stopifnot(map$x$project$mapView$bearing == 45)