Interactive editing of spatial data in R | an RConsortium funded project. For additional detail, please see the original proposal.
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 devtools
.
devtools::install_github("r-spatial/mapedit")
We can interactively CRD (create, update, delete) features on a map with edit_map
.
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 select_map
.
library(mapedit)
library(leaflet)
library(mapview)
select_map(
leaflet(breweries91) %>%
addTiles() %>%
addCircleMarkers(group = ~brewery)
)
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.