View source: R/mapboxgl-stuff.R
Make a mapbox text style
1 | mapbox_text_style(text_field, text_color = "white", text_size = 10)
|
text_field |
Value to use for a text label. |
text_color |
The color with which the text will be drawn. |
text_size |
The size with which the text will be drawn. Units are in pixels. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.