All Questions
51
questions
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 ...
3
votes
1
answer
3k
views
Shiny R: How to make a Leaflet legend horizontal
I'm trying to make a horizontal legend in a Shiny app with a Leaflet map.
I can change the display to display: flex; using CSS which makes the legend horizontal but what I'm aiming at is something ...
2
votes
2
answers
1k
views
Leaflet maps not appearing in tabbed HTML document output from Rmarkdown
I've used R Markdown to create a HTML document with tabbed sections and each tab should include one Leaflet map. When I run the code, the Leaflet maps only appear in the first two tabs of the HTML ...
0
votes
1
answer
727
views
Creating label in leaflet map using htmltools produces tiny label
Creating a leaflet map. First step, specify the label. The code used on leaflet github puts
%>% lapply(htmltool::HTML)
after the sprintf() function. However, making it is creating the label as ...
7
votes
1
answer
2k
views
Center leaflet in a rmarkdown document
I want to create an html document with a centered leaflet widget inside it.
---
title: "Exemple"
author: "Antoine Bichat"
date: "31/08/2018"
output: html_document
---
```{r leaflet, fig.align="...
0
votes
1
answer
2k
views
Saving a leaflet map as an html file
I've created a leaflet map of corn yield in Kansas using USDA NASS data. The problem I'm running into is exporting the leaflet into an html file using the command:
htmlwidgets::saveWidget(...
1
vote
2
answers
3k
views
Post local image into a popup using leaflet and R
I've been trying like crazy to add local images (as in image files in my computer) into my leaflet map using R. I have plotted around 500 coordinates analyzing some images and I wish to show that ...
4
votes
2
answers
5k
views
R leaflet - Show/Hide addControl() element with group layers
I have a leaflet map which uses a custom legend using HTML and added using the addControl function (following: Leaflet Legend for Custom Markers in R).
However, I only want the legend to show when ...
0
votes
1
answer
2k
views
Saving R leaflet-shiny interactive map as HTML executable file
Is there a way to save a leaflet-shiny script as a single executable HTML file? For example for a leaflet script you can use:
saveWidget(map, file = "mymap.html")
Then the html file will contain all ...
1
vote
0
answers
359
views
R Leaflet HTML Formatting
Using Labels along with addCircleMarkers I want to customize the format of labels displayed. This is achieved with HTML as follows.
labels <- sprintf(
"<div style = 'width: 170px; word-wrap: ...
3
votes
1
answer
4k
views
labels in leaflet r with HTML tags
All good souls, help needed. I am creating a leaflet map and cannot resolve a strange issue with labels. I created labels with few variables and the labels render ok if the first variable is numeric, ...
0
votes
1
answer
429
views
r - Overlay fileInput on leaflet in shiny
I have a leaflet map in a shiny app. It takes a file from a user and plots that data. It's kind of ugly right now, though. I'd really like to have the fileInput to be overlaid on the leaflet map. In ...
6
votes
1
answer
15k
views
Customizing leaflet popup in R
I am using RStudio to create a choropleth leaflet map.
I have Country and Url as an attribute in the shapefile that I imported to R.
I wish to show the Country name and URL as a hyperlink within the ...
2
votes
1
answer
2k
views
Image in Leaflet marker popup in Shiny
When making maps in R using Leaflet I often use images in the marker popups by putting an html line. I would like to make a leaflet map in Shiny that allows the user to select photos to go into the ...
2
votes
3
answers
2k
views
Overlay Static Images on R Leaflet htmlwidget
It it possible to overlay an image to R leaflet maps - or perhaps in the leaflet html - that would stay fixed overtop the map itself?
That is, the image wouldn't be rendered on the map itself, but ...