- map
a mapdeck map object
- data
data to be used in the layer. Can be a url to GeoJSON
- layer_id
single value specifying an id for the layer. Use this value to
distinguish between shape layers of the same type. Layers with the same id are likely
to conflict and not plot correctly
- stroke_colour
column of an sf
object, or field inside a GeoJSON property
to use for colour
- stroke_opacity
column of an sf
object, or field inside a GeoJSON property
to use for opacity
- stroke_width
column of an sf
object, or field inside a GeoJSON property
to use for width (in meters)
- dash_size
size of each dash, relative to the width of the stroke
- dash_gap
size of the gap between dashes, relative to the width of the stroke
- fill_colour
column of an sf
object, or field inside a GeoJSON property
to use for colour
- fill_opacity
column of an sf
object, or field inside a GeoJSON property
to use for opacity
- radius
radius of points in meters. Default 1. See details
- elevation
elevation of polygons. Default 0. See details
- extruded
logical indicating if polygons should extrude from the map.
If TRUE
, stroke_colour
for polygons is ignored
- light_settings
list of light setting parameters. See light_settings
- 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.
A legend is only shown if you supply one of the colour arguments (fill or stroke)
- legend_options
A list of options for controlling the legend.
- legend_format
A list containing functions to apply to legend values. See section legend
- auto_highlight
logical indicating if the shape under the mouse should auto-highlight
- tooltip
variable of data
containing text or HTML to render as a tooltip.
Only works on sf
objects.
- highlight_colour
hex string colour to use for highlighting. Must contain the alpha component.
- palette
string or matrix. String will be one of colourvalues::colour_palettes()
.
A matrix must have at least 5 rows, and 3 or 4 columns of values between [0, 255],
where the 4th column represents the alpha. You can use a named list to specify a different
palette for different colour options (where available),
e.g. list(fill_colour = "viridis", stroke_colour = "inferno")
- na_colour
hex string colour to use for NA values
- line_width_units
The units of the line width, one of 'meters', 'pixels'.
When zooming in and out, meter sizes scale with the base map, and pixel sizes remain the same on screen.
- line_width_scale
The line width multiplier that multiplied to all lines,
including the LineString and MultiLineString features and also the outline for
Polygon and MultiPolygon features if the stroked attribute is true
- line_width_min_pixels
The minimum line width in pixels.
- elevation_scale
Elevation multiplier. The final elevation is calculated by
elevationScale * getElevation(d). elevationScale is a handy property to scale
all polygon elevation without updating the data
- point_radius_scale
A global radius multiplier for all points.
- point_radius_min_pixels
The minimum radius in pixels.
- update_view
logical indicating if the map should update the bounds to include this layer
- focus_layer
logical indicating if the map should update the bounds to only include this layer
- digits
number of digits for rounding coordinates
- transitions
list specifying the duration of transitions.
- ...
clear_legend
and clear_view
arguments passed to 'clear_()' functions