Created
July 5, 2024 19:15
-
-
Save walkerke/86d80c59d6b5db446764b31aa648fc7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(mapgl) | |
mapboxgl( | |
style = mapbox_style("satellite"), | |
center = c(-122.514426, 37.562984), | |
zoom = 17, | |
bearing = -96, | |
minZoom = 14 | |
) |> | |
add_video_source( | |
id = "video", | |
urls = c('https://static-assets.mapbox.com/mapbox-gl-js/drone.mp4', | |
'https://static-assets.mapbox.com/mapbox-gl-js/drone.webm'), | |
coordinates = list( | |
c(-122.51596391201019, 37.56238816766053), | |
c(-122.51467645168304, 37.56410183312965), | |
c(-122.51309394836426, 37.563391708549425), | |
c(-122.51423120498657, 37.56161849366671) | |
) | |
) |> | |
add_raster_layer( | |
id = "video", | |
source = "video" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment