Skip to contents

Load basin boundaries with default configuration. Note that we could use custom vector tiles instead of raster basemaps with package mapboxapi to build more informative hydrological layers.

Add selected hydrological features across river basins.

Used to toggle 3rd-party contextual layers.

Usage

map_init(iso3 = names(ISO3), key = getOption("wa.maptiler"))

map_addWMSProvider(map, provider = "FAO", date = Sys.Date())

map_update(map, iso3 = names(ISO3))

map_toggle(map, provider = "FAO", layers = NULL)

Arguments

iso3

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

key

Maptiler API key

map

leaflet map

provider

name of WMS provider (see LAYERS)

date

selected timestamp

layers

vector of layer names (see LAYERS)

Value

leaflet map widget with default layers updated leaflet map leaflet map widget with default layers updated leaflet map

Examples

# Default rendering
map_init()