This R package makes it easy to integrate and control the open-source JavaScript Leaflet software in R.
Questions tagged [r-leaflet]
499 questions
0
votes
0 answers
How to set-up R crosstalk filter_select "group" argument to match unlisted vector of individual character strings from shared dataframe
I am new to using the crosstalk package and I already have a unique case for which I would like to use it. I want to filter point coordinates based on any matching keyword contained in a list of keywords belonging to an individual point. I have…

Amanda W
- 1
- 2
0
votes
1 answer
How to make a reactive Leaflet with a selectInput in Shiny?
I am trying to create a map using leaflet in which interacting with a selectInput modifies the data loaded in the map. I think I'm doing the filtering right and using the reactive variables but I keep getting this error:
Error in…

James_00
- 5
- 2
0
votes
0 answers
Bypassing textInput for reactive leaflet map
i have somehow a quite tricky question. Im creating an interactive leaflet map in my shinydashboard. Everything works fine (the error just appears because its waiting for some text input to be processed and then mapped).
But.. I don't get the map to…

Chalente
- 23
- 6
0
votes
0 answers
update gt table with selected markers on a leaflet map in R
I'm trying to update a GT table with selected markers in a leaflet marker but for the life of me I cannot get it to update the table. There are no errors when I run the app, and there are no errors in the console when trying to select a marker.
#…

bld1777
- 1
- 1
0
votes
1 answer
leaflet proxy does not update correctly with observeevent in shiny app
I have a shiny app that allow user select the project via checkboxGroupInput and show that on the map ! by default all options are selected. But when User de-selct all, the last group will remain on the map ! which I don't know how to fix it…

Haribo
- 2,071
- 17
- 37
0
votes
2 answers
How do I fix an error regarding addPolygon() from leaflet
I am currently struggling with spatial dataframes using leaflet to create interactive maps. in R I have been trying out many different solutions from multiple threads, but my addPolygon() does not seem to work at all. Can anyone help me trying to…

dilly
- 63
- 1
- 7
0
votes
1 answer
My shiny code does not make a reactive app
I'd like to construct a shiny app with leaflet displaying the locations of Ukraininan power plants. In the UI users shall have the option to select the plants shown based on the fuel type (e.g. nuclear, coal, hydro, wind, solar, gas). The data are…

Luke
- 11
- 2
0
votes
0 answers
Not able to create unique symbology in R shiny leaflet based on unique type in a field and radio button interaction not working
Problem 1: I want to add unique colors to every factor type (this is also what I am selecting from the dropdown)
for example if a person selects "Mall" the mall points are getting selected but the colors are not changing on a different feature type…

Sindhu R
- 1
- 1
0
votes
0 answers
R Shiny: Why Doesn't My Leaflet Map Project Two Political Races?
StackOverflow! I am a hobbyist coder, longtime lurker, first-time poster, and am completely stuck on how to fix a bug in a Shiny dashboard I wrote in R. Using this tutorial as a starting point, I want to map the 2022 General Election results in the…

WPB89
- 1
0
votes
1 answer
R addEasyButton - mouse hover label for a new button
I am using R leaflet and I added a custom button to the map using 'addEasyButton'. I have trawled any conceivable source and can not find a suggested way to create a mouse-hover label to pop up for my new button. The default buttons (Zoom '+' and…

Bernard v B
- 3
- 4
0
votes
0 answers
Show progress bar in percentage until the leaflet output is shown in SHINY?
I have created a shiny application where it executes sql query and sends the output as dataframe to leaflet to display the graph.
The execution time is taking longer than expected. So, I wanted to display a progress bar to let know the user of how…

PikaPika
- 9
- 3
0
votes
0 answers
What is the leaflet map variable created by R-leaflet?
TL;DR: What is the map variable name for a map created with R-leaflet?
I am trying to use some custom js to control the legend for a leaflet map created with R-leaflet. I have found the js code to do so on the leaflet js documentation, but that…

jzadra
- 4,012
- 2
- 26
- 46
0
votes
1 answer
Why does leaflet require .shp file to be sorted by Object ID to work?
I have a shiny app that I am building with interactive maps in it. I am primarily using leaflet to do this.
I added new data (statistics and whatnot) to a SpatialPolygonsDataframe in the map@data section of the df (map being the…

PotterFan
- 81
- 2
- 7
0
votes
0 answers
How can I visualise a point values from a raster in leaflet in a textoutput in shiny when one clicks on the map
I have been trying to visualise the point value from the raster that is in the leaflet map in a text output in shiny when someone clicks on the map. I was able to get the points to visualise as a popup in the map itself using leafem addimagequery…

Julie Ishimwe
- 11
- 4
0
votes
0 answers
How to project Albers projected mapbox tiles correctly with r-leaflet?
I have a Mapbox tileset that I have set to an Albers projection, however I have been unsuccessful at getting it to show in the correct conical projection (ie top of continental U.S. is curved) using R Leaflet.
I have tried starting with a barebones…

jzadra
- 4,012
- 2
- 26
- 46