Skip to contents

setShapeLabel from https://github.com/rstudio/leaflet/pull/598

Usage

setShapeLabel(
  map,
  data = leaflet::getMapData(map),
  layerId,
  label = NULL,
  options = NULL
)

Arguments

map

Leaflet map object

data

Leaflet map data

layerId

Layer to manipulate

label

Labels to add

options

Options to add