All Questions
24
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
264
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 ...
0
votes
1
answer
188
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
215
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
903
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
304
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,
...
2
votes
0
answers
1k
views
Automate image size in R shiny leaflet pop-up
I have a shiny app which I run in 3 separate tabs in R Studio:
Global tab:
library(shiny)
library(leaflet)
country = c("Russia", "Mongolia", "China")
...
8
votes
1
answer
8k
views
How can leaflet pop-up labels be formatted in R?
I have a dataframe:
https://www.dropbox.com/s/51j3hh9urwjudu2/Agents.csv?dl=0
Using this, I can create a leaflet map using this code:
map = leaflet() %>%
addTiles() %>% # Add default ...
1
vote
0
answers
69
views
How are my popups not showing in my Leaflet map?
How can I make popups show up in leaflet that I plot using this code?
leaflet(df) %>%
addTiles() %>%
setView(-119.09, 43.70, zoom = 5) %>%
addCircles(~long, ~lat, popup=df$hrus, color="...
3
votes
2
answers
4k
views
Way to add hyperlink to Leaflet popup in Shiny
Using leaflet in shiny to make an interactive map. Pulling data for popups from a CSV:
Row on CSV:
Name lat lng
Tufts 42.349598 -71.063541
Code on R for markers:
m %>% addMarkers(...
0
votes
1
answer
1k
views
Leaflet R legend & popup overlap rMarkdown flexdashboard
I am making an rMarkdown flex dashboard interactive html page which we will embed into another page (an iFrame). There are two small maps side by side. The maps themselves, the content, scales, legend ...
0
votes
1
answer
3k
views
Centre text in leaflet popup on marker
I am currently using leaflet to create a map and I was wondering if it was possible to centre the text in a popup?
Here is an example of what a marker currently looks like, as you can see, the ...
5
votes
2
answers
8k
views
Popup on a shape using tmap
I have made a map unsing tmap to include in a shiny app using leaflet. I have roughly what I want: a thematic map with fill color based on a SpatialPolygonsDataFrame, and when you click the map, a ...
1
vote
1
answer
731
views
Q: K. Rohde's shiny leaflet popup: how to ensure popups are properly displayed regardless of initial tabPanel?
In implementing an advanced shiny popup solution from K. Rohde, I've run into a problem using a navbarPage and tabPanels. Per the linked solution, the following code is in the appropriate tabPanel:
...
3
votes
2
answers
1k
views
Leaflet Map - second Polygon makes the first layer unclickable
I am working on a map of American Community Survey data. Currently I have a primary layer (seen below as plotMerge$incomePerCapita). It works well, has a fully fleshed out popup, image and all. When I ...
7
votes
2
answers
9k
views
How to control popup's width for leaflet-feature's popup in R?
I would like to control the width of a leaflet-feature popup via R, how can I do that?
output$HomeMap <- renderLeaflet(leaflet() %>%
addTiles() %>%
...
18
votes
2
answers
9k
views
How to display (advanced) customed popups for leaflet in Shiny?
I am using R shiny to build web applications, and some of them are leveraging the great leaflet features.
I would like to create a customed and advanced popup, but I do not know how to proceed.
You ...