mapview
mapview copied to clipboard
Condition has length > 1 when burst=T and row-selection
Thank you for this great pice of software!
Given the following code:
library(mapview)
library(sf)
data <- data.frame(
species = c("APP", "ASA", "ASL", "APP", "ASA", "ASL"),
lng = c(-1.52, -2.50, -2.63, -2.33, -2.05, -2.54),
lat = c(48.23, 47.87, 48.37, 47.77, 47.57, 48.17)
)
d_sf <- st_as_sf(data[1:5,], coords = c("lng", "lat"), crs = 4326)
mapview(d_sf,zcol = "species", burst = T)
It results in:
Error in if (unique(sapply(x, nrow)) == length(popup)) { : the condition has length > 1
If I select all of data, no problem. Not sure what could be wrong. mapview-version is 2.11.0 und R 4.2.1
I think this is already fixed in the dev version (#420) but not yet released on CRAN.
Hello, I have the same issue.