if (FALSE) {
mapboxgl(
style = mapbox_style("dark"),
zoom = 5,
center = c(-75.789, 41.874)
) |>
add_image_source(
id = "radar",
url = "https://docs.mapbox.com/mapbox-gl-js/assets/radar.gif",
coordinates = list(
c(-80.425, 46.437),
c(-71.516, 46.437),
c(-71.516, 37.936),
c(-80.425, 37.936)
)
) |>
add_raster_layer(
id = "radar-layer",
source = "radar",
raster_fade_duration = 0
)
}
Run the code above in your browser using DataLab