leaflet or mapview objectsBeing a wrapper around addLabelOnlyMarkers, this
function provides a smart-and-easy solution to add custom text labels to an
existing leaflet or mapview map object.
addStaticLabels(map, data, label, group = NULL, layerId = NULL, ...)A labelled leaflet map
A leaflet or mapview object.
A sf or Spatial* object used for label placement,
defaults to the locations of the first dataset in 'map'.
The labels to be placed at the positions indicated by 'data' as
character, or any vector that can be coerced to this type.
the group of the static labels layer.
the layerId of the static labels layer.
Additional arguments passed to
labelOptions.
Florian Detsch, Lorenzo Busetto
addLabelOnlyMarkers.