- map
a googleway map object created from google_map()
- data
data frame containing at least a polyline
column,
or a lat
and a lon
column. If Null, the data passed into
google_map()
will be used.
- polyline
string specifying the column of data
containing
the encoded polyline
- lat
string specifying the column of data
containing the 'latitude'
coordinates. If left NULL, a best-guess will be made
- lon
string specifying the column of data
containing the 'longitude'
coordinates. If left NULL, a best-guess will be made
- id
string specifying the column containing an identifier for a shape
- geodesic
logical
- stroke_colour
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
- stroke_weight
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
- stroke_opacity
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
- info_window
string specifying the column of data to display in an info
window when a shape is clicked.
- mouse_over
string specifying the column of data to display when the
mouse rolls over the shape
- mouse_over_group
string specifying the column of data specifying which
groups of shapes to highlight on mouseover
- draggable
string specifying the column of data
defining if
the polygon is 'draggable'. The column of data should be logical (either TRUE or FALSE)
- editable
string specifying the column of data
defining if the polygon
is 'editable' (either TRUE or FALSE)
- update_map_view
logical specifying if the map should re-centre according to
the shapes
- layer_id
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.
- z_index
single value specifying where the circles appear in the layering
of the map objects. Layers with a higher z_index
appear on top of those with
a lower z_index
. See details.
- digits
integer. Use this parameter to specify how many digits (decimal places)
should be used for the latitude / longitude coordinates.
- palette
a function, or list of functions, that generates hex colours
given a single number as an input. See details.
- legend
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.
- legend_options
A list of options for controlling the legend.
- load_interval
time in miliseconds to wait between plotting each shape
- focus_layer
logical indicating if the map should re-centre according to this layer