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

View source: R/addToolbar.R

addToolbarR Documentation

Add a (possibly customized) toolbar to a leaflet map

Description

Add a (possibly customized) toolbar to a leaflet map

Usage

addToolbar(leafmap, editorOptions, editor = "leafpm", targetLayerId)

Arguments

leafmap

leaflet map to use for Selection

editorOptions

A list of options to be passed on to leafpm::addPmToolbar.

editor

Character string giving editor to be used for the current map. Defaults to "leafpm" which is the only supported option at the moment.

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. 15, 2026, 5:07 p.m.