Opens an interactive map interface in your web browser where you can draw a rectangular bounding box to select an area of interest. Use the rectangle tool in the top-right corner to draw the box, then click 'Submit' to return the selection.
Arguments
- start_place_name
Optional address or place name to initially center the map on. This helps you quickly navigate to your area of interest.
- terrain
Logical, whether to use OpenTopoMap tiles (default: TRUE)
- provider
Optional custom tile provider. If specified, overrides the terrain parameter. See leaflet::providers for available providers.
Examples
if (FALSE) { # \dontrun{
# Open map centered on default location
bb <- draw_bb()
# Open map centered on a specific location
bb_innsbruck <- draw_bb("Innsbruck, Austria")
# Use the returned bounding box to get elevation data
elevation <- get_elevation(bb_innsbruck)
} # }
#