editMod: Shiny Module Server for Geo Create, Edit, Delete

Description Usage Arguments Value

View source: R/modules.R

Description

Shiny Module Server for Geo Create, Edit, Delete

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
editMod(
  input,
  output,
  session,
  leafmap,
  targetLayerId = NULL,
  sf = TRUE,
  record = FALSE,
  crs = 4326,
  editor = c("leaflet.extras", "leafpm"),
  editorOptions = list()
)

Arguments

input

Shiny server function input

output

Shiny server function output

session

Shiny server function session

leafmap

leaflet map to use for Selection

targetLayerId

character identifier of layer to edit, delete

sf

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.

Value

server function for Shiny module


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