Describe the bug
An error occurs when adding a layer without data. Having no data to display can be common in interactive environments.
To Reproduce
library(sf) #> Linking to GEOS 3.6.2, GDAL 2.2.3, PROJ 5.1.0 library(mapdeck) sf <- sf::st_as_sf( capitals, coords = c("lon", "lat") ) mapdeck() %>% add_scatterplot( data = head(sf,0) , radius = 1000000 , fill_colour = "country" , layer_id = "scatter_layer" , tooltip = "capital" ) #> Error in rcpp_point_geojson(data, l, geometry_column, digits, "scatterplot"): 'getCharCE' must be called on a CHARSXP
Created on 2019-12-09 by the reprex package (v0.2.1)
Expected behaviour
The layer to be added to the plot, without any data to display.
Versions
Current dev version
TODO
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4