r-spatial/mapedit

edit* functions do not show anything in the browser

adrfantini opened this issue · 2 comments

Using the latest version from gitHub, I seem to be unable to use editMap and editFeatures in this package: a mostly empty window is displayed. I am running from the R command line, but the same holds true from Rstudio.

Basic example:

library(mapview)
library(mapedit)
lf = mapview()
editMap(lf)

Only shows the following:
screenshot_20180507_120326

> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 18

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_1.0.5    mapedit_0.4.1  mapview_2.4.0  pacman_0.4.6   colorout_1.1-2

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.16            compiler_3.4.4          plyr_1.8.4              tools_3.4.4            
 [5] R.methodsS3_1.7.1       R.utils_2.6.0           base64enc_0.1-3         iterators_1.0.9        
 [9] class_7.3-14            gdalUtils_2.0.1.14      digest_0.6.15           jsonlite_1.5           
[13] viridisLite_0.3.0       satellite_1.0.1         lattice_0.20-35         png_0.1-7              
[17] foreach_1.4.4           DBI_1.0.0               crosstalk_1.0.0         yaml_2.1.18            
[21] RPostgreSQL_0.6-2       rgdal_1.2-18            spData_0.2.8.3          e1071_1.6-8            
[25] raster_2.6-7            htmlwidgets_1.2         webshot_0.5.0           stats4_3.4.4           
[29] classInt_0.2-3          leaflet_2.0.0           grid_3.4.4              sf_0.6-3               
[33] R6_2.2.2                sp_1.2-7                udunits2_0.13           magrittr_1.5           
[37] leaflet.extras_0.2.9002 units_0.5-1             scales_0.5.0.9000       codetools_0.2-15       
[41] htmltools_0.3.6         mime_0.5                xtable_1.8-2            colorspace_1.3-2       
[45] httpuv_1.3.5            miniUI_0.1.1            munsell_0.4.3           R.oo_1.21.0 

Try updating leaflet.extras to version 1.0.0 (CRAN) and see if that resolves the issue

It works! Thanks.