inst/api-reference/navigation-control.R

map <- mapboxer() %>%
  set_view_state(-74.5, 40, pitch = 35) %>%
  add_navigation_control(
    showCompass = FALSE,
    pos = "top-left"
  )

if (interactive()) map

Try the mapboxer package in your browser

Any scripts or data that you put into this service are public.

mapboxer documentation built on Nov. 8, 2020, 4:21 p.m.