addToolbar: Add a (possibly customized) toolbar to a leaflet map

Description Usage Arguments Value

View source: R/addToolbar.R

Description

Add a (possibly customized) toolbar to a leaflet map

Usage

1
addToolbar(leafmap, editorOptions, editor, targetLayerId)

Arguments

leafmap

leaflet map to use for Selection

editorOptions

A list of options to be passed on to either leaflet.extras::addDrawToolbar or leafpm::addPmToolbar.

editor

Character string giving editor to be used for the current map. Either "leafpm" or "leaflet.extras".

targetLayerId

string name of the map layer group to use with edit

Value

The leaflet map supplied to leafmap, now with an added toolbar.


mapedit documentation built on Feb. 3, 2020, 1:07 a.m.