Updates specific colours and opacities of specified circles Designed to be used in a shiny application.
update_circles(
map,
data,
id,
radius = NULL,
draggable = NULL,
stroke_colour = NULL,
stroke_weight = NULL,
stroke_opacity = NULL,
fill_colour = NULL,
fill_opacity = NULL,
info_window = NULL,
layer_id = NULL,
digits = 4,
palette = NULL,
legend = F,
legend_options = NULL
)
a googleway map object created from google_map()
data frame containing the data to use in the layer. If Null, the
data passed into google_map()
will be used.
string representing the column of data
containing the id values
for the shapes. The id values must be present in the original data supplied to in order
for the shape to be udpated.
either a string specifying the column of data
containing the
radius of each circle, OR a numeric value specifying the radius of all the circles
(radius is expressed in metres)
string specifying the column of data
defining if
the polygon is 'draggable'. The column of data should be logical (either TRUE or FALSE)
either a string specifying the column of data
containing
the stroke colour of each shape, or a valid hexadecimal numeric HTML style to
be applied to all the shapes
either a string specifying the column of data
containing
the stroke weight of each shape, or a number indicating the width of pixels
in the line to be applied to all the shapes
either a string specifying the column of data
containing
the stroke opacity of each shape, or a value between 0 and 1 that will be
applied to all the shapes
either a string specifying the column of data
containing
the fill colour of each shape, or a valid hexadecimal numeric HTML style to
be applied to all the shapes
either a string specifying the column of data
containing
the fill opacity of each shape, or a value between 0 and 1 that will be applied
to all the shapes
string specifying the column of data to display in an info window when a shape is clicked.
single value specifying an id for the layer. Use this value to
distinguish between shape layers for when using any update_
function, and
for separating legends.
integer. Use this parameter to specify how many digits (decimal places) should be used for the latitude / longitude coordinates.
a function, or list of functions, that generates hex colours given a single number as an input. See details.
either a logical indiciating if the legend(s) should be displayed, or a named list indicating which colour attributes should be included in the legend.
A list of options for controlling the legend.