Adds zoom buttons and/or compass control.
Arguments
- map
A maplamina widget created by
maplamina().- position
Control position:
"topleft","topright","bottomleft","bottomright".- compass
Logical; show compass control.
- zoom_controls
Logical; show zoom buttons.
- ...
Named options passed through to the underlying MapLibre control.
Examples
maplamina() |>
add_navigation(position = "topright", compass = FALSE)