text_layer | R Documentation |
Text Layer
add_text_layer(
rdeck,
...,
id = uuid::UUIDgenerate(),
name = "TextLayer",
group_name = NULL,
data = NULL,
visible = TRUE,
pickable = FALSE,
opacity = 1,
wrap_longitude = FALSE,
position_format = "XY",
color_format = "RGBA",
auto_highlight = FALSE,
highlight_color = "#00008080",
billboard = TRUE,
size_scale = 1,
size_units = "pixels",
size_min_pixels = 0,
size_max_pixels = 9007199254740991,
background = FALSE,
get_background_color = "#ffffffff",
get_border_color = "#000000ff",
get_border_width = 0,
background_padding = c(0, 0, 0, 0),
font_family = "Roboto, Helvetica, Arial, san-serif",
font_weight = "normal",
line_height = 1,
outline_width = 0,
outline_color = "#000000ff",
font_settings = list(),
word_break = "break-word",
max_width = -1,
get_text = text,
get_position = position,
get_color = "#000000ff",
get_size = 32,
get_angle = 0,
get_text_anchor = "middle",
get_alignment_baseline = "center",
get_pixel_offset = c(0, 0),
blending_mode = "normal",
visibility_toggle = TRUE,
tooltip = NULL
)
update_text_layer(
rdeck,
...,
id,
name = cur_value(),
group_name = cur_value(),
data = cur_value(),
visible = cur_value(),
pickable = cur_value(),
opacity = cur_value(),
wrap_longitude = cur_value(),
position_format = cur_value(),
color_format = cur_value(),
auto_highlight = cur_value(),
highlight_color = cur_value(),
billboard = cur_value(),
size_scale = cur_value(),
size_units = cur_value(),
size_min_pixels = cur_value(),
size_max_pixels = cur_value(),
background = cur_value(),
get_background_color = cur_value(),
get_border_color = cur_value(),
get_border_width = cur_value(),
background_padding = cur_value(),
font_family = cur_value(),
font_weight = cur_value(),
line_height = cur_value(),
outline_width = cur_value(),
outline_color = cur_value(),
font_settings = cur_value(),
word_break = cur_value(),
max_width = cur_value(),
get_text = cur_value(),
get_position = cur_value(),
get_color = cur_value(),
get_size = cur_value(),
get_angle = cur_value(),
get_text_anchor = cur_value(),
get_alignment_baseline = cur_value(),
get_pixel_offset = cur_value(),
blending_mode = cur_value(),
visibility_toggle = cur_value(),
tooltip = cur_value()
)
rdeck |
< |
... |
Additional parameters that will be forwarded to deck.gl javascript without
validation nor processing. All dots must be named and will be |
id |
< |
name |
< |
group_name |
< |
data |
< |
visible |
< |
pickable |
< |
opacity |
< |
wrap_longitude |
< |
position_format |
< |
color_format |
< |
auto_highlight |
< |
highlight_color |
< |
billboard |
< |
size_scale |
< |
size_units |
< |
size_min_pixels |
< |
size_max_pixels |
< |
background |
< |
get_background_color |
< |
get_border_color |
< |
get_border_width |
< |
background_padding |
< |
font_family |
< |
font_weight |
< |
line_height |
< |
outline_width |
< |
outline_color |
< |
font_settings |
< |
word_break |
< |
max_width |
< |
get_text |
< |
get_position |
< |
get_color |
< |
get_size |
< |
get_angle |
< |
get_text_anchor |
< |
get_alignment_baseline |
< |
get_pixel_offset |
< |
blending_mode |
<
|
visibility_toggle |
< |
tooltip |
< |
https://github.com/visgl/deck.gl/blob/8.7-release/docs/api-reference/layers/text-layer.md
Other core-layers:
arc_layer
,
bitmap_layer
,
column_layer
,
geojson_layer
,
grid_cell_layer
,
icon_layer
,
line_layer
,
path_layer
,
point_cloud_layer
,
polygon_layer
,
scatterplot_layer
,
solid_polygon_layer
Other layers:
arc_layer
,
bitmap_layer
,
column_layer
,
contour_layer
,
cpu_grid_layer
,
geojson_layer
,
gpu_grid_layer
,
great_circle_layer
,
grid_cell_layer
,
grid_layer
,
h3_cluster_layer
,
h3_hexagon_layer
,
heatmap_layer
,
hexagon_layer
,
icon_layer
,
line_layer
,
mvt_layer
,
path_layer
,
point_cloud_layer
,
polygon_layer
,
quadkey_layer
,
s2_layer
,
scatterplot_layer
,
scenegraph_layer
,
screen_grid_layer
,
simple_mesh_layer
,
solid_polygon_layer
,
terrain_layer
,
tile_3d_layer
,
tile_layer
,
trips_layer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.