Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addToolbar

Add a (possibly customized) toolbar to a leaflet map


Description

Add a (possibly customized) toolbar to a leaflet map

Usage

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

Interactive Editing of Spatial Data in R

v0.6.0
MIT + file LICENSE
Authors
Tim Appelhans [aut, cre], Kenton Russell [aut], Lorenzo Busetto [aut], Josh O'Brien [ctb], Jakob Gutschlhofer [ctb]
Initial release
2020-02-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.