All Questions
271
questions with no upvoted or accepted answers
5
votes
1
answer
559
views
R-Shiny Leaflet Right-Click Context Menu
I got a R-Shiny app and a leaflet map in my UI output. I want to setup something where I can right click on the map and it opens a context menu on cursor coordinates, where I can select icons and ...
5
votes
0
answers
247
views
Using SelectAreaFeature plugin with Leaflet for R
I am trying to use the SelectAreaFeature Leaflet JS plugin with Leaflet for R.
I have had success using other Leaflet JS plugins, but not the SelectAreaFeature plugin.
Here is an MRE (requires the ...
5
votes
0
answers
2k
views
Shiny and Leaflet integration is really slow - how can I speed it up?
Right now i'm almost certain that my current use of shiny and leaflet is sub-optimal.
At a high level my current approach looks like this:
Generate a leaflet.
Create a reactive dataframe on user ...
5
votes
0
answers
621
views
Shiny Leaflet Map Popups Are Pulling the Wrong Data
For some reason, the popups assigned to the polygons on the Shiny leaflet app are pulling up the wrong information that should be assigned to the polygon. It seems that the Polygons have been placed ...
4
votes
0
answers
517
views
Use leafsync and leafletProxy together on shiny map
I'm trying to show two synced maps on a shiny app that show densities of species in two different samples based on inputs species and year. I have it working using leafsync, but not set up to use ...
4
votes
0
answers
492
views
get current extent of mapview (R, in Shiny)
I have a small Shiny app - code below. The idea is that a user is able to edit, add and delete points and polygons. Because the end products will be two shapefiles (one points, one polygons), I need ...
4
votes
0
answers
536
views
R Shiny Leaflet: In-App Autorefresh but maintain view
I am working on a shinydashboard (using leaflet) that takes National Weather Service (NWS) Doppler radar data (through WMS), NWS hazard shapefile data, and NWS warning shapefile data.
I have with it,...
4
votes
0
answers
1k
views
When adding layerId to addPolygons(), the polygon does not show up
I have a polygon which I can add perfectly fine to the leaflet using addPolygons, but I am trying to give it a layerId, so I can remove it later on. I cannot use clearShape() as I have more than 1 ...
4
votes
0
answers
1k
views
Interactive choropleth map with R Shiny and leaflet
I am trying to create a shiny app where I can select the value that I want to plot into my map. It might be that this is a very easy task but I am new in Shiny and I can't figure it out.
I don't ...
4
votes
2
answers
4k
views
Leaflet colorQuantile 'breaks' are not unique
I work on some data with shiny and leaflet and run into a problem which seems to pop up here and there but I could not find a solution or implement the pieces I found
Lets use
library(leaflet)
a <- ...
3
votes
0
answers
386
views
How to delete polygons created with addDrawToolbar with actionButton
I am creating a map app with shiny.
I'm looking for a way to delete a polygon created with addDrawToolbar using the actionButton placed on the sidebar.
The sample code is as follows.
library(shiny)
...
3
votes
0
answers
603
views
http:/localhost:8000/mapTiles/OSM/{z}_{x}_{y}.png not working - SHINY R
I'm working on a project with a shiny app running offline because I have to work in sewer systems. I managed to run my app with a batch file (converted in a .exe file since it looks more professional)
...
3
votes
0
answers
702
views
Refresh arrows from Leaflet PolylineDecorator in R Shiny to create an interactive flow map
I would like to make an interactive map with flows where I can easily see the direction of the flow.
I have data of flows passing multiple locations. So the flow goes from a starting point to a finish ...
3
votes
0
answers
1k
views
R Shiny Leaflet - How to clear previous marker/circle/etc before adding a new one
Fairly basic question but I cant seem to find the answer; I have an interactive map which saves coordinates on a click event, I'd like the old markers to disappear if the user clicks on a new part of ...
3
votes
1
answer
3k
views
Square markers in Leaflet for R
In JS Leaflet, you can create a divIcon that is square and in the colour of your choice, for example this square purple marker:
How can this be achieved in Leaflet for R? Bonus question: how can the ...