Skip to contents

A pipe-friendly way to register a plugin for a Leaflet map

Usage

registerPlugin(map, plugin)

Arguments

map

A Leaflet map, eg. the output of leaflet::leaflet()

plugin

A plugin, eg. leaflet.circlesector::circlePlugin

Value

The map with the plugin registered

Examples

if (FALSE) {
library(leaflet.circlesector)  # loads pipe
leaflet::leaflet() %>%
   registerPlugin(circlePlugin())
}