layercontrolsquick: Quick layer controls

View source: R/addpoly_legend.R

layercontrolsquickR Documentation

Quick layer controls

Description

Quick function to add a vector of groups as overlay groups for a leaflet map, and hide groups you don't want displayed in one step

Usage

layercontrolsquick(leafletobj, groups, hide = NULL, .pos = "topleft")

Arguments

leafletobj

Leaflet object

groups

Character vector of overlay groups to show on Leaflet map

hide

Groups to hide on leaflet map. If NULL (default), hides all groups but first group

.pos

Position of layer controls; default "topleft"

Value

Leaflet map with overlay groups


dpowerstp/leafletwrappers documentation built on Sept. 4, 2022, 10:19 a.m.