lmap_init: Initialize map (Mapbox GL)

View source: R/mapbox.R

lmap_initR Documentation

Initialize map (Mapbox GL)

Description

Load basin boundaries with default configuration.

Usage

lmap_init(
  iso3 = names(ISO3),
  mapbox_key = getOption("wa.mapbox"),
  maptiler_key = getOption("wa.maptiler")
)

Arguments

iso3

3-letter country code to center the map on (see ISO3)

mapbox_key

Mapbox API key (default to getOption("wa.mapbox"))

maptiler_key

Maptiler API key (default to getOption("wa.maptiler"))

Value

Mapbox GL map widget with default layers

Examples

# Default rendering
map_init()


mbacou/WADashboard documentation built on Jan. 3, 2023, 6:21 p.m.