Create a scrollytelling story map with MapLibre
story_maplibre(
map_id,
sections,
root_margin = "-20% 0px -20% 0px",
threshold = 0,
styles = NULL,
bg_color = "rgba(255,255,255,0.9)",
text_color = "#34495e",
font_family = NULL
)
The ID of your mapboxgl, maplibre, or leaflet output
defined in the server, e.g. "map"
A named list of story_section objects.
Names will correspond to map events defined within
the server using on_section()
.
The margin around the viewport for triggering sections by
the intersection observer. Should be specified as a string,
e.g. "-20% 0px -20% 0px"
.
A number that indicates the visibility ratio for a story ' panel to be used to trigger a section; should be a number between 0 and 1. Defaults to 0, meaning that the section is triggered as soon as the first pixel is visible.
Optional custom CSS styles. Should be specified as a
character string within shiny::tags$style()
.
Default background color for all sections
Default text color for all sections
Default font family for all sections