Dave

Results 263 comments of Dave

how about if the various `clear_()` functions gain the arguments - `update_view = TRUE` - `clear_legend = TRUE` so then if they're false the associated calls in [the `layer_clear`](https://github.com/SymbolixAU/mapdeck/blob/master/inst/htmlwidgets/mapdeck_functions.js#L146) function...

yeah might be the best solution. The remaining questions is how should those arguments propogate into the `clear_()` functions if `nrow( data ) == 0`, because you don't want to...

ok, the `clear_()` functions get the signature ```r clear_path

@mitchelloharawild could you try `devtools::install_github("SymbolixAU/mapdeck", ref = "issue252")` for me and let me know if it works for you?

A couple of benchmarks showing listing and colouring ```r n

```r microbenchmark( one = { ## colouring a vector, then "unnesting" the vector sf2$col

some kind of weird conflict ```r mapbox::mapbox( token = token ) %>% mapdeck::add_dependencies() %>% mapdeck::add_scatterplot( data = mapdeck::capitals , radius = 1000000 ) ``` ![Screen Shot 2019-09-19 at 8 45...

Reprodicible example ```r library(mapdeck) set_token(secret::get_secret("MAPBOX")) df

I've no idea why this happens. It looks like the `.legendContent` isn't being kept when exporting from RStudio to the browser. But I don't know why.

Do you get any errors in the javascript console in Safari?