/mapedit

Interactive editing of spatial data in R

Primary LanguageROtherNOASSERTION

mapedit

CRAN_Status_Badge

Interactive editing of spatial data in R | an RConsortium funded project. For additional detail, please see the original proposal.

Status

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.

Blog Posts

Introduction to mapedit - January 30, 2017

mapedit updates in 0.2.0 - June 12, 2017

Install

As the CRAN badge above indicates, mapedit is a long way from CRAN. To install, please use devtools. mapedit requires leaflet.extras which is not currently on CRAN. We will also need the development version of mapview.

devtools::install_github("bhaskarvk/leaflet")
devtools::install_github("bhaskarvk/leaflet.extras")
devtools::install_github("r-spatial/mapview@develop")
devtools::install_github("r-spatial/mapedit")

Examples

We can interactively CRD (create, update, delete) features on a map with editMap.

library(mapedit)
library(leaflet)
library(mapview)

editMap(leaflet() %>% addTiles())

editMap(
  mapview(breweries91),
  targetLayerId = "breweries91"
)

mapedit also offers interactive selection of map features with selectMap.

library(mapedit)
library(leaflet)
library(mapview)

selectMap(
  leaflet(breweries91) %>%
    addTiles() %>%
    addCircleMarkers(layerId = ~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.

Acknowledgment

This project has been realized with financial support from the