Interactive editing of spatial data in R
R
Latest commit 9767267 Feb 14, 2017 @tim-salabim tim-salabim committed on GitHub Merge pull request #17 from restonslacker/bugfix/readme
updates to README to clarify installation procedure.
Permalink
Failed to load latest commit information.
R fix bug in edit_map edited Jan 25, 2017
inst some small updates to first post Jan 29, 2017
man add library(mapedit) in second select_map example Jan 25, 2017
.Rbuildignore
.gitignore
CONDUCT.md add starter meta to Readme Jan 19, 2017
DESCRIPTION increment version to 0.0.1 Jan 24, 2017
LICENSE
NAMESPACE add select_map function for interactive selection of features on a map Jan 24, 2017
README.Rmd
README.md updates to README to clarify installation procedure. Feb 13, 2017
mapedit.Rproj

README.md

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.

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 and which itself requires a recent development version of leaflet (>=1.0.2.9008 as of 13 Feb, 2017).

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

Examples

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)
)

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.