An R package that provides methods for interactive editing of spatial objects from the sf, sp and raster packages.
Questions tagged [r-mapedit]
15 questions
8
votes
1 answer
How to update the leaflet map in the selectModUI in a Shiny app?
I would like to update the selectModUI from the mapedit package for different leaflet maps when using Shiny. Below is a working…

www
- 38,575
- 12
- 48
- 84
3
votes
0 answers
replicate the behavior of mapedit::selectFeatures(..., mode = "click") within a Shiny app
I am trying to replicate the behavior of mapedit::selectFeatures(..., mode = "click") within a Shiny app. I have a working example similar to the solution posed here:
Multi-Point Select in R/Shiny/Leaflet
and documented here:…

Jeremy Holden
- 61
- 6
1
vote
0 answers
Change color of leafpm-layer
Can I change the default color of an object added to a leaflet map by the leafpm-package? The default color is blue, which I would like to have in red. I managed to get the lines red (see below) until the shape is finished. However, I'm lacking a…

Beni
- 191
- 9
1
vote
1 answer
Read in a list of shapefiles and row bind them in R (preferably using tidy syntax and sf)
I have a directory with a bunch of shapefiles for 50 cities (and will accumulate more). They are divided into three groups: cities' political boundaries (CityA_CD.shp, CityB_CD.shp, etc.), neighborhoods (CityA_Neighborhoods.shp,…

Abe
- 393
- 2
- 13
1
vote
1 answer
Interactive Chloropeth Electoral College Map in R
I am looking to replicate one of those maps where you can guesstimate the state-level results of the next presidential election and have the results of your scenario shown to you by way of changing color backgrounds. An example of what I mean can be…

tifu
- 1,352
- 6
- 17
1
vote
1 answer
Convert XY to lat long in R
I am trying to plot the position of ports on a leaflet map which fall into a certain region. These 30 odd regions have been created using the mapedit package as sf POLYGONs. The code for one such region WestCoastIndiax(West coast of India) is as…

Dhiraj
- 1,650
- 1
- 18
- 44
0
votes
1 answer
Dynamically hide module from package in Shiny app
I try to build an application that dynamically shows and hides modules. Following this tutorial and this code, I can show and remove modules built by my own. However, when calling a module from an external package (e.g from mapedit the editModu…

r2d2
- 3
- 2
0
votes
0 answers
Include editAttributes in R shiny module
I still face problems to apply the editAttributes() function from the mapedit R-package into a shiny module. As soon As I modularize this function the data table corresponding to the rectangles is not reactive anymore. Below I provide a shortened…

r2d2
- 3
- 2
0
votes
0 answers
popup to modify polygon values in R with mapedit
Again, I struggle with the implementation of an interactive map in a shiny app. I need a map where people can draw a rectangle. After each rectangle draw round, a popup window with a numerical input should appear (e.g. a slider). The user set a…

r2d2
- 3
- 2
0
votes
0 answers
editAttributes in shiny app force user to edit attributes
Thanks for helping about my first question regarding this topic. I update and specify my question here:
I try to build a shiny app that loads a map and an empty data frame with three previously defined attributes as table headers. The user should…

r2d2
- 3
- 2
0
votes
0 answers
edit geometry attribute with mapedit in R
I aim to draw simple rectangle on a leaflet map in R using the mapview and mapedit package. However, does someone has an idea how to directly add a specific numeric value to each geometry just after drawing the geometry?
thanks in advance
I already…

r2d2
- 3
- 2
0
votes
2 answers
Shiny workaround to flush data from $finished while using EditMod in the mapEdit package
This is a crosspost from the mapedit issues github page here. I am attempting to build a shiny app that allows a user to plot a subset of data after selecting polygons using the mapedit package. While I am able to successfully plot the data using…

mowen
- 1
- 2
0
votes
0 answers
R: Error when using viewRGB() and editMap()
Below is the code I am using:
if (interactive()) {
library(raster)
library(plainview)
viewRGB(plainview::poppendorf, 4, 3, 2) # true-color
viewRGB(plainview::poppendorf, 5, 4, 3) # false-color
}
I got the following error message:
Error in…

B.B.Zhou
- 1
0
votes
1 answer
Converting a data frame to a spatial object
I'm trying to publish a map on Shiny, but keep running into this issue.
Let's call the data.frame region. Here are the columns:
library(mapedit)
library(mapview)
library(shiny)
library(leaflet)
library(leaflet.extras)
…
user9302275
0
votes
1 answer
Why do I get an error when using mapedit::selectFeatures with mode = 'draw'?
I'm using the selectFeatures function within the R package called mapedit.
I want to be able to select all polygons that fall within (either wholly or partially) an area drawn using the tools in the mapedit viewer.
Using the following code from the…

Jody Biggs
- 35
- 1
- 5