leafem icon indicating copy to clipboard operation
leafem copied to clipboard

[feature request] addImageQuery functionality with SpatRast

Open Jadamso opened this issue 1 year ago • 0 comments

Thank you for this package. It would be nice to update the package to use terra instead of raster, specifically the function "addImageQuery".

library(terra)
library(leaflet)
library(leafem)
library(plainview)

r <- rast(system.file("ex/elev.tif", package="terra"))
leaflet() %>%
    addRasterImage(r, group="elevation",  layerId="elevation") %>%
    addImageQuery(raster::raster(r), type='mousemove', layerId='elevation')%>%
    addMouseCoordinates()

Jadamso avatar Sep 04 '23 05:09 Jadamso