mvt_layer | R Documentation |
MVT Layer
add_mvt_layer(
rdeck,
...,
id = uuid::UUIDgenerate(),
name = "MVTLayer",
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",
get_tile_data = NULL,
extent = NULL,
tile_size = 512,
max_zoom = NULL,
min_zoom = 0,
max_cache_size = NULL,
max_cache_byte_size = NULL,
refinement_strategy = "best-available",
z_range = NULL,
max_requests = 6,
zoom_offset = 0,
filled = TRUE,
stroked = TRUE,
line_width_max_pixels = 9007199254740991,
line_width_min_pixels = 0,
line_width_scale = 1,
line_width_units = "meters",
point_radius_max_pixels = 9007199254740991,
point_radius_min_pixels = 0,
point_radius_scale = 1,
point_radius_units = "meters",
point_antialiasing = TRUE,
point_billboard = FALSE,
get_fill_color = "#000000ff",
get_line_color = "#000000ff",
get_line_width = 1,
get_point_radius = 1,
icon_atlas = NULL,
icon_mapping = list(),
icon_size_max_pixels = 9007199254740991,
icon_size_min_pixels = 0,
icon_size_scale = 1,
icon_size_units = "pixels",
icon_alpha_cutoff = 0.05,
icon_billboard = TRUE,
get_icon = icon,
get_icon_angle = 0,
get_icon_color = "#000000ff",
get_icon_pixel_offset = c(0, 0),
get_icon_size = 1,
text_size_max_pixels = 9007199254740991,
text_size_min_pixels = 0,
text_size_scale = 1,
text_size_units = "pixels",
text_background = FALSE,
text_background_padding = c(0, 0, 0, 0),
text_font_family = "Roboto, Helvetica, Arial, san-serif",
text_font_weight = "normal",
text_line_height = 1,
text_max_width = -1,
text_outline_color = "#000000ff",
text_outline_width = 0,
text_word_break = "break-word",
text_billboard = TRUE,
text_font_settings = list(),
get_text = text,
get_text_angle = 0,
get_text_color = "#000000ff",
get_text_pixel_offset = c(0, 0),
get_text_size = 32,
get_text_anchor = "middle",
get_text_alignment_baseline = "center",
get_text_background_color = "#ffffffff",
get_text_border_color = "#000000ff",
get_text_border_width = 0,
line_joint_rounded = FALSE,
line_cap_rounded = FALSE,
line_miter_limit = 4,
line_billboard = FALSE,
extruded = FALSE,
wireframe = FALSE,
elevation_scale = 1,
material = TRUE,
get_elevation = 1000,
point_type = "circle",
unique_id_property = "",
highlighted_feature_id = NULL,
binary = TRUE,
blending_mode = "normal",
visibility_toggle = TRUE,
tooltip = NULL
)
update_mvt_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(),
get_tile_data = cur_value(),
extent = cur_value(),
tile_size = cur_value(),
max_zoom = cur_value(),
min_zoom = cur_value(),
max_cache_size = cur_value(),
max_cache_byte_size = cur_value(),
refinement_strategy = cur_value(),
z_range = cur_value(),
max_requests = cur_value(),
zoom_offset = cur_value(),
filled = cur_value(),
stroked = cur_value(),
line_width_max_pixels = cur_value(),
line_width_min_pixels = cur_value(),
line_width_scale = cur_value(),
line_width_units = cur_value(),
point_radius_max_pixels = cur_value(),
point_radius_min_pixels = cur_value(),
point_radius_scale = cur_value(),
point_radius_units = cur_value(),
point_antialiasing = cur_value(),
point_billboard = cur_value(),
get_fill_color = cur_value(),
get_line_color = cur_value(),
get_line_width = cur_value(),
get_point_radius = cur_value(),
icon_atlas = cur_value(),
icon_mapping = cur_value(),
icon_size_max_pixels = cur_value(),
icon_size_min_pixels = cur_value(),
icon_size_scale = cur_value(),
icon_size_units = cur_value(),
icon_alpha_cutoff = cur_value(),
icon_billboard = cur_value(),
get_icon = cur_value(),
get_icon_angle = cur_value(),
get_icon_color = cur_value(),
get_icon_pixel_offset = cur_value(),
get_icon_size = cur_value(),
text_size_max_pixels = cur_value(),
text_size_min_pixels = cur_value(),
text_size_scale = cur_value(),
text_size_units = cur_value(),
text_background = cur_value(),
text_background_padding = cur_value(),
text_font_family = cur_value(),
text_font_weight = cur_value(),
text_line_height = cur_value(),
text_max_width = cur_value(),
text_outline_color = cur_value(),
text_outline_width = cur_value(),
text_word_break = cur_value(),
text_billboard = cur_value(),
text_font_settings = cur_value(),
get_text = cur_value(),
get_text_angle = cur_value(),
get_text_color = cur_value(),
get_text_pixel_offset = cur_value(),
get_text_size = cur_value(),
get_text_anchor = cur_value(),
get_text_alignment_baseline = cur_value(),
get_text_background_color = cur_value(),
get_text_border_color = cur_value(),
get_text_border_width = cur_value(),
line_joint_rounded = cur_value(),
line_cap_rounded = cur_value(),
line_miter_limit = cur_value(),
line_billboard = cur_value(),
extruded = cur_value(),
wireframe = cur_value(),
elevation_scale = cur_value(),
material = cur_value(),
get_elevation = cur_value(),
point_type = cur_value(),
unique_id_property = cur_value(),
highlighted_feature_id = cur_value(),
binary = 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 |
< |
get_tile_data |
< |
extent |
< |
tile_size |
< |
max_zoom |
< |
min_zoom |
< |
max_cache_size |
< |
max_cache_byte_size |
< |
refinement_strategy |
< |
z_range |
< |
max_requests |
< |
zoom_offset |
< |
filled |
< |
stroked |
< |
line_width_max_pixels |
< |
line_width_min_pixels |
< |
line_width_scale |
< |
line_width_units |
< |
point_radius_max_pixels |
< |
point_radius_min_pixels |
< |
point_radius_scale |
< |
point_radius_units |
< |
point_antialiasing |
< |
point_billboard |
< |
get_fill_color |
< |
get_line_color |
< |
get_line_width |
< |
get_point_radius |
< |
icon_atlas |
< |
icon_mapping |
< |
icon_size_max_pixels |
< |
icon_size_min_pixels |
< |
icon_size_scale |
< |
icon_size_units |
< |
icon_alpha_cutoff |
< |
icon_billboard |
< |
get_icon |
< |
get_icon_angle |
< |
get_icon_color |
< |
get_icon_pixel_offset |
< |
get_icon_size |
< |
text_size_max_pixels |
< |
text_size_min_pixels |
< |
text_size_scale |
< |
text_size_units |
< |
text_background |
< |
text_background_padding |
< |
text_font_family |
< |
text_font_weight |
< |
text_line_height |
< |
text_max_width |
< |
text_outline_color |
< |
text_outline_width |
< |
text_word_break |
< |
text_billboard |
< |
text_font_settings |
< |
get_text |
< |
get_text_angle |
< |
get_text_color |
< |
get_text_pixel_offset |
< |
get_text_size |
< |
get_text_anchor |
< |
get_text_alignment_baseline |
< |
get_text_background_color |
< |
get_text_border_color |
< |
get_text_border_width |
< |
line_joint_rounded |
< |
line_cap_rounded |
< |
line_miter_limit |
number |
line_billboard |
< |
extruded |
< |
wireframe |
< |
elevation_scale |
< |
material |
< |
get_elevation |
< |
point_type |
<
Or a combination, separated by |
unique_id_property |
< |
highlighted_feature_id |
< |
binary |
< |
blending_mode |
<
|
visibility_toggle |
< |
tooltip |
< |
https://github.com/visgl/deck.gl/blob/8.7-release/docs/api-reference/geo-layers/mvt-layer.md
Other geo-layers:
great_circle_layer
,
h3_cluster_layer
,
h3_hexagon_layer
,
quadkey_layer
,
s2_layer
,
terrain_layer
,
tile_3d_layer
,
tile_layer
,
trips_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
,
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
,
text_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.