Provides a dropdown list of polygons available for mapping, sorted alphabetically.

polygonChooserUI(id)

polygonChooser(input, output, session, rctPolygonList,
  selectedPoly = NULL, uploadOpts = list(auth = NULL, path = NULL, user
  = NULL), studyArea = NULL)

Arguments

id

An id string that corresponds with the id used to call the module's UI function.

input

shiny server input object

output

shiny server output object

session

shiny server session object

rctPolygonList

A reactive nested list with the following structure: # TODO: fill this in

selectedPoly

The name of the polygon to select by default.

uploadOpts

A list of options for use with file uploads: auth logical indicating whether user is authorized to upload; path a directory path to use for file uploads; user the current username (used for creating user-specific paths); The default for all options is NULL, which means do not use.

studyArea

A Spatial object used as a template for post-processing the uploaded polygon, which is cropped, reprojected, etc. to match studyArea. See postProcess.

Value

A reactive list with elements polygons (a list of polygons) and selected (the name of the selected polygon).

Examples