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

Add support for bit64::integer64 colouring #342

Open
symbalex opened this issue Mar 12, 2021 · 1 comment
Open

Add support for bit64::integer64 colouring #342

symbalex opened this issue Mar 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@symbalex
Copy link

Currently integer64 columns are not supported in colouring. Example:

library(mapdeck)

set_token("my_mapbox_token")

roads <- mapdeck::roads
roads$i64 <- bit64::as.integer64(seq_len(nrow(roads)))

mapdeck() %>% 
  add_sf(data = roads
         , stroke_colour = "i64")

gives error

Error in rcpp_path_geojson(data, l, geometry_column, digits, "path") : 
  Error in function boost::math::trunc<double>(double): Value inf can not be represented in the target integer type.

It would be good if colouring was supported.

@dcooley
Copy link
Collaborator

dcooley commented Mar 12, 2021

Thanks - I've put this in colourvalues as that's where the underlying error comes from.

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

No branches or pull requests

2 participants