add_control: Add layer control for leaflet map

View source: R/10_map.R

add_controlR Documentation

Add layer control for leaflet map

Description

Add layer control for leaflet map

Usage

add_control(leaf, layer_vec, tiles_info = TILES_INFO)

Arguments

leaf

leaflet map widget object.

layer_vec

character vector of user data layers. For example animal names, model names etc.

tiles_info

A list holding tiles information, default to be ctmmweb:::TILES_INFO. To customize it, use ctmmweb:::TILES_INFO as a template.


ctmm-initiative/ctmmweb documentation built on June 28, 2024, 9:28 a.m.