mapedit is in a very alpha state right now. We would very much appreciate feedback, ideas, and use cases. The API is very likely to change dramatically and rapidly over the next couple of months. We will use semantic versioning to track changes and progress.
As the CRAN badge above indicates,
mapedit is a long way from CRAN. To install, please use
leaflet.extras which is not currently on CRAN and which itself requires a recent development version of
leaflet (>=184.108.40.20608 as of 13 Feb, 2017).
devtools::install_github("bhaskarvk/leaflet") devtools::install_github("bhaskarvk/leaflet.extras") devtools::install_github("r-spatial/mapedit")
We can interactively CRD (create, update, delete) features on a map with
library(mapedit) library(leaflet) library(mapview) edit_map(leaflet() %>% addTiles()) edit_map( mapview(breweries91)@map, targetLayerId = "breweries91" )
mapedit also offers interactive selection of map features with
library(mapedit) library(leaflet) library(mapview) select_map( leaflet(breweries91) %>% addTiles() %>% addCircleMarkers(group = ~brewery) )
Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.