Add popups with polygon and raster summaries on a leaflet map.

summaryPopups(input, output, session, proxy, click, rast, poly,
  rasterValueLabel = "Raster value: %s", extractedValues = NULL)

Arguments

input

shiny server input object

output

shiny server output object

session

shiny server session object

proxy

Leaflet proxy which manages a connected leaflet map.

click

Reactive value with click on shape input from leaflet map.

rast

Reactive value with raster to summarize by.

poly

Reactive value with current polygon on the map.

rasterValueLabel

String with description of raster value. Uses sprintf, so must include exactly one %s in order to display raster value. Default is a string "Raster value: %s".

extractedValues

List of attributes from SpatialPolygonDataFrame which should be included in popup summary. When NULL (default) all attributes are included.

Value

None. Invoked for the side-effect of creating a shiny observer.

Note

This is a server-only module with no UI component.