addbounds: Add polygon boundaries

View source: R/addpoly_legend.R

addboundsR Documentation

Add polygon boundaries

Description

Quick function for adding styled polygon boundaries layer to a leaflet map, with no fill-in.

Usage

addbounds(
  leafobj,
  placetype,
  spatialdf,
  .color = "black",
  .weight = 0.5,
  .opacity = 0.5,
  labformula = NULL
)

Arguments

leafobj

Leaflet map adding boundaries layer to.

placetype

Group-name as string.

spatialdf

Spatial dataframe showing boundaries for

.color

Color of polygon boundaries; default "black"

.weight

Weight of polygon boundaries; default 0.5

.opacity

Opacity of polygon boundaries; default 0.5

labformula

Label parameter in addPolygons(); e.g., ~ NAME, or leafletwrappers::label_output() results. Default NULL, so no label displayed

Value

Leaflet map with layer for polygon boundaries added.


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