i often work just with geometry vectors directly in R. I was trying to view some points quickly with maplibre_view() however it seems mapgl doesn't support them.
It would be great if mapgl supported the geometries themselves!
repro:
x <- runif(5, -180, 180)
y <- runif(5, -90, 90)
sf::st_multipoint(cbind(x, y)) |>
sf::st_sfc(crs = 4326) |>
sf::st_cast("POINT") |>
mapgl::maplibre_view()
#> Error in mapgl::maplibre_view(sf::st_cast(sf::st_sfc(sf::st_multipoint(cbind(x, : data must be an sf object, SpatRaster, or RasterLayer
i often work just with geometry vectors directly in R. I was trying to view some points quickly with
maplibre_view()however it seems mapgl doesn't support them.It would be great if mapgl supported the geometries themselves!
repro: