Skip to contents

Add MapLibre geolocate control

Usage

add_geolocate(map, position = "topright", track_user_location = FALSE, ...)

Arguments

map

A maplamina widget created by maplamina().

position

Control position: "topleft", "topright", "bottomleft", "bottomright".

track_user_location

Logical; keep tracking after initial locate.

...

Named options passed through to the underlying MapLibre control.

Value

The modified map widget.

Examples

maplamina() |>
  add_geolocate()