All Questions
12
questions
3
votes
2
answers
4k
views
Leaflet for R: How to change default CSS cluster classes
How do I change the default CSS classes which define cluster objects from within the Leaflet for R interface? For example, if I wanted to remove the opacity from the .marker-cluster-small class, how ...
9
votes
1
answer
6k
views
Circles in legend for leaflet map with addCircleMarkers in R - without shiny
I am creating a leaflet map in R - I don't need to build a shiny app, and haven't tackled that particular skill set yet!
I was trying to follow along with this post here to create circles in my ...
1
vote
2
answers
2k
views
Clustered leaflet markers with sum (not count) totals: how to get consistent round red shape and label format like in unclustered markers
I would like to modify the behavior of leaflet grouping feature to total on grouping and preserve a round red bubble shape dependent on value.
My data contains columns:
lon lat sales_ytd
I would ...
0
votes
2
answers
278
views
How to change css in rmarkdown cell & shiny?
I am relatively new in r and creating leaflet plot for which I need a white background instead of grey.
I came across this SO post for same: blank, white background for leaflet map & tried:
Plot ...
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="...
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 ...
4
votes
1
answer
4k
views
Modifying Leaflet Popups in R
I want to modify the appearance of leaflet popups in R.
The helpfile states that ... in the popupOptions() function takes
"extra options passed to underlying Javascript object constructor."
In this ...
3
votes
3
answers
3k
views
Placing leaflet controls side-by-side instead of vertically stacked in R/Shiny with HTML/CSS
What I want to do is pretty simple: I want my leaflet controls to be aligned side-by-side in rows rather than vertically as columns (as leaflet automatically does).
Here is some short example code:
...
2
votes
1
answer
327
views
Putting a leaflet map in a "Picture Frame" in R
I am presently in the process of building an R package that allows users to make custom souvenir maps of their flights, road trips and the cities they visit.
I am in the process of trying to figure ...
2
votes
3
answers
3k
views
Making Leaflet Map fullscreen in RShiny
I'm having trouble making my leaflet map in Shiny go fullscreen. While I can obviously just manually set the width and height of the map to my screen-size, I'd like to the map to adapt to whatever ...
0
votes
1
answer
382
views
How to add triangles when customizing a leaflet legend in R?
I started with this post and the code from @Hallie Swan works great, but I want to change the last shape in the legend into a hollow triangle.
My impression is that it's challenging to draw a hollow ...
0
votes
0
answers
88
views
How to change color of leaflet map around the polygon shape in r? [duplicate]
I am using a shape file in leaflet plot & would like to have white color space external to the outer boundary of polygon shape instead of default greyish color background like color but unable to ...