All Questions
26
questions
0
votes
1
answer
60
views
Can leaflet layer controls be used to alter popup contents in a Shiny dashboard?
I am building a dashboard in R Shiny that includes a map rendered using R leaflet. There are popups associated with locations on the map and items in the popup are also used as layer controls. i.e., ...
0
votes
1
answer
258
views
Adding multiple row table in leaflet map
I am trying to add multiple row table in leaflet map R for each polygon, which should popup while clicking the polygon. PopupTable() only allows single row to popup.
Please suggest me a better option ...
1
vote
0
answers
125
views
R shiny: How can I make a popup in the leaflet for R
I am using some data to produce a map with markers in certain places and using the popup function to output a value.
The data I am getting is from sql, following is the code for that:
ui <- ...
3
votes
1
answer
851
views
R leaflet : how to display raster value on mouse hover?
I'm writing a shiny app using leaflet. What I want to achieve is :
render a simple leaflet map
when click on a button, update rendering with "leafletProxy" to print a raster on top
Being ...
0
votes
1
answer
187
views
How to make slider inputs with Leaflet and shiny in R?
I have two dataframes as follows. I have only put partial data for simplicity:
**order**
Location Order_count Longitude Latitude
New York 12 74.0060 40.7128
San Francisco ...
1
vote
1
answer
169
views
in Shiny Leaflet app, user input interpreted as text in popup instead of a column name
I would like users to be able to change the choropleth map overlay by selecting different attributes from a dropdown. The map and different attributes render fine based on user selection, but the ...
5
votes
1
answer
1k
views
R leaflet - Add a new marker on the map with the popup already opened
I have a shiny app that displays a leaflet map. One of the functionalities of the app allows users to add a new geographic marker on the map. However, I would like to make the popup of such marker ...
1
vote
1
answer
293
views
Sparkline in Leaflet popup/label within Shiny using leafletProxy
I'm trying to add a sparkline in a leaflet label within a shiny app. I'm able to do this when not using leafletProxy, but can't figure out how to make it work when using leafletProxy (which need to ...
1
vote
0
answers
214
views
R Leaflet - How to combine text and figure in popup?
I would like to combine text and a figure in a Leaflet Popup. I saw this on a website of Deutsche Bahn: Multi-Object-Popup
Website:
strecken.info
For me it would be sufficient to combine two of these ...
2
votes
1
answer
4k
views
Adding reactive popup graphs/plots to a Leaflet map with Shiny R
I have built a Shiny dashboard. The user can select a municipality from a dropdown menu, after which a range of data from that municipality are downloaded and visualized with Leaflet.
A main user ...
0
votes
1
answer
894
views
popupGraph - R, Leaflet: Why are my popup graphs blank?
Mapping in R - Shiny, leaflet.
Been trying to figure out how to display my line plots (library - ggplot2) as popups in my map.
Primarily, I'm using popupGraph (leafpop) to do this. Basically want to ...
2
votes
1
answer
303
views
includeHTML in R Shiny Leaflet popups
I'm making an R Shiny app with Leaflet that shows trees in a city. I want to add an svg image to the marker popups that depends on the tree species for the clicked marker, but I can't get includeHTML ...
3
votes
2
answers
214
views
Prevent scientific notation in leaflet popup - R
I created a map in R using leaflet and the popups display the attributes in scientific notation. The values are displayed normally everywhere else except the leaflet popups. How do I change this?
2
votes
1
answer
1k
views
Control the size of popupImage from leaflet in r shiny
I am having difficulties to control the size of the image resulting from popupImage (mapview package). Below is a reproducible shiny example where I have a single marker with a popup. When I set width ...
2
votes
0
answers
266
views
Add multiple popups to a single marker location coordinate
I have two different types of information I would like to display in a location.
I can do it like this, displaying everything in a single popup:
leaflet() %>% addCircleMarkers(data = goo,
...