Skip to content

Instantly share code, notes, and snippets.

@walkerke
Created July 9, 2024 17:22
Show Gist options
  • Save walkerke/8e95e910bffa84a65fa553d9757c1a27 to your computer and use it in GitHub Desktop.
Save walkerke/8e95e910bffa84a65fa553d9757c1a27 to your computer and use it in GitHub Desktop.
library(mapgl)
maplibre(
style = maptiler_style("bright"),
center = c(-118.705, 34.027),
zoom = 10
) |>
add_symbol_layer(
id = "trailheads",
source = list(
type = "geojson",
data = "https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0/query?f=pgeojson&where=1=1"),
icon_image = "outdoor"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment