restonslacker / mapedit

Interactive editing of spatial data in R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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.

About

Interactive editing of spatial data in R

License:Other


Languages

Language:R 100.0%