Shiny Module Server for Geo Create, Edit, Delete
editMod( input, output, session, leafmap, targetLayerId = NULL, sf = TRUE, record = FALSE, crs = 4326, editor = c("leaflet.extras", "leafpm"), editorOptions = list() )
input
: Shiny server function inputoutput
: Shiny server function outputsession
: Shiny server function sessionleafmap
: leaflet map to use for SelectiontargetLayerId
: character
identifier of layer to edit, deletesf
: logical
to return simple features. sf=FALSE
will return GeoJSON
.record
: logical
to record all edits for future playback.crs
: see st_crs
.editor
: character
either "leaflet.extras" or "leafpm"editorOptions
: list
of options suitable for passing to either leaflet.extras::addDrawToolbar
or leafpm::addPmToolbar
.server function for Shiny module