addImageQuery not working for multiple layers
tim-salabim opened this issue · 0 comments
tim-salabim commented
@trafficonese would you mind having a look into making addImageQuery
work for multiple layers? As in
library(leaflet)
library(leafem)
library(plainview)
leaflet() %>%
addProviderTiles("OpenStreetMap") %>%
addRasterImage(poppendorf[[1]], project = TRUE, group = "poppendorf1",
layerId = "poppendorf1") %>%
addImageQuery(poppendorf[[1]], project = TRUE,
layerId = "poppendorf1") %>%
addRasterImage(poppendorf[[4]], project = TRUE, group = "poppendorf2",
layerId = "poppendorf2") %>%
addImageQuery(poppendorf[[4]], project = TRUE,
layerId = "poppendorf2") %>%
addLayersControl(overlayGroups = c("poppendorf1", "poppendorf2"))
At the moment, this only shows the image query values for layerId "poppendorf2". I've just pushed an update which registers the data arrays for the two layers with the map (I know the names are messed up....) but I cannot figure out how to adjust either addImageQuery-bindings.js
or joda.js
to properly read /display the arrays for both layerIds
.
Your help would be much appreciated!