Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condition has length > 1 when burst=T and row-selection #455

Open
jhagenauer opened this issue Jun 22, 2023 · 2 comments
Open

Condition has length > 1 when burst=T and row-selection #455

jhagenauer opened this issue Jun 22, 2023 · 2 comments

Comments

@jhagenauer
Copy link

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

@markolipka
Copy link

I think this is already fixed in the dev version (#420) but not yet released on CRAN.

@Nicolescm
Copy link

Hello, I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants