Suite of interactive functions and helpers for selecting and editing geospatial data.
mapedit is still in active development. We would very much appreciate feedback, ideas, and use cases. The API has stabilized, but please be aware that the API might change over the next couple of months. We will use semantic versioning with Github tagged releases to track changes and progress. All changes will also be documented in NEWS.md.
Introduction to mapedit - January 30, 2017
mapedit updates in 0.2.0 - June 12, 2017
Tim Appelhans at useR 2017 - July 2017
As the CRAN badge above indicates,
mapedit has achieved CRAN status. To install, please use
install.packages, or for the cutting edge, use
install.packages("mapedit") # cutting edge # devtools::install_github("r-spatial/mapedit")
We can interactively CRD (create, update, delete) features on a map with
library(mapedit) library(leaflet) library(mapview) editMap(leaflet() %>% addTiles()) editMap( mapview(breweries91), targetLayerId = "breweries91" )
mapedit also offers interactive selection of map features with
library(mapedit) library(leaflet) library(mapview) selectMap( leaflet(breweries91) %>% addTiles() %>% addCircleMarkers(layerId = ~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.
This project has been realized with financial support from the
length > 1 not handled correctly. See discussion.
remove internally added
edit_id column in editFeatures return
cast edits back to their original type. See discussion
fix merge_edit to only consider last edit when there are multiple edits per layerId
sf; thanks @tim-salabim for identifying
record = TRUEthen a
"recorder"attribute will be added to the returned object for full reproducibility.
combine_list_of_sfwith length 0
list; found when
editFeatures()and save with no changes
API breaking change
geojsonby default. Toggle behavior with the