Update polygons displayed on a leaflet map using leafletProxy.

polygonsUpdater(input, output, session, proxy, poly, group = "group",
  ...)

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.

poly

A reactive containing a polygon to be displayed on the leaflet map.

group

Group of polygons we want to update.

...

Additional parameters of addPolygons function.

Value

None. Invoked for the side-effect of creating an observer, which manages current set of polygons on a leaflet map using leaflet proxy.

Note

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