Examples for 'leafem::addStarsImage'


Add stars layer to a leaflet map

Aliases: addStarsImage

Keywords:

### ** Examples

## No test: 
library(stars)
Loading required package: abind
Loading required package: sf
Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 8.2.1; sf_use_s2() is TRUE
library(leaflet)

tif = system.file("tif/L7_ETMs.tif", package = "stars")
x = read_stars(tif)
leaflet() %>%
  addProviderTiles("OpenStreetMap") %>%
  addStarsImage(x, project = TRUE)
Error in loadNamespace(name): there is no package called 'webshot'
## End(No test)

[Package leafem version 0.2.3 Index]