Skip to content

Instantly share code, notes, and snippets.

@han-tun
Forked from walkerke/esri_layer.R
Created July 11, 2024 15:51
Show Gist options
  • Save han-tun/809153d7e849931795d5ce48c019b957 to your computer and use it in GitHub Desktop.
Save han-tun/809153d7e849931795d5ce48c019b957 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