Skip to main content

All Questions

Tagged with
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
0 answers
53 views

Show the aggregate value on markerClusterOptions in R

I want to do a map in R, that will show the points in clusters when you zoom in/zoom out and in the same time show a aggregate value. Now I have this code: m <- leaflet(acdt_1, width = "200%&...
0 votes
0 answers
123 views

Smooth transition between markers or polygons in R Leaflet

I have a Leaflet map in R Shiny with circle markers which change colour based on a time series slider. When a year is changed, the previously drawn circle marker is erased, and a new one is drawn. I ...
1 vote
1 answer
423 views

Add leaflet legend for polygon outlines

Is there a mechanism for adding legends for for polygon outlines? I can map hollow polygon outlines by altering the color field and specifying fillOpacity=0 in my addPolygons() call, however I can ...
8 votes
2 answers
4k views

How to add a scale bar in the R package leaflet?

I have recently discovered the r package “leaflet” and found a great blog with some basic instruction for creating an interactive map (found here) http://mhermans.net/hiking-gpx-r-leaflet.html. I ...
0 votes
1 answer
173 views

RShiny display multiple leaflet maps on the same plot

I have a shiny app where the user can select to display a specific leaflet map (on 51 available), or all leaflet maps (the 51 on 11 columns and 5 rows). To display multiple leaflet maps on the same ...
10 votes
2 answers
5k views

Is it possible to include custom css in htmlwidgets for R and/or LeafletR?

I'd like to make some style changes to my leaflet map. Is it possible to include style elements OR a custom path to a css file either via htmlwidgets for R or LeafletR? Best
0 votes
0 answers
163 views

Add Polygon Layers to Leaflet Map (with labels and legends)

I am trying to combine 4 leaflet maps into one, where you can filter the layers using addLayerControl. Each layer has popups when you hover over the polygon with the corresponding variable (numeric) ...
0 votes
1 answer
164 views

Efficient way to draw polylines in leaflet using R

What's up! I have a data frame where each row I have the information of instant speed and coordinates (lat and long) of an object, but the dataset is very large. It's taking forever or even crashing ...
0 votes
0 answers
113 views

R Shiny Leaflet map doesn't center properly after expanding the container

I have a Shiny app that correctly collapses the datatable beneath a leaflet map, extends the map and then also brings back the datatable with a button click. The problem is something happens to the ...
0 votes
1 answer
59 views

Selectively load parts of a map

Suppose I have the following shapefile: library(sf) library(leaflet) library(leafgl) library(colourvalues) library(leaflet.extras) nc <- st_read(system.file("gpkg/nc.gpkg", package=&...
-1 votes
1 answer
299 views

R leaflet in Shiny, layer opacity controled by sliderInput

I am developing a shiny app with leaflet and several added polygons, and I want to control the polygons opacity with a sliderInput(). I have a working solution that restart addPolygons() when the ...
0 votes
0 answers
98 views

Select marker by clicking on a map and update selected input

I am currently working on a Shiny app and I encountered some problems. My objective is to display temperature graphs for specific weather stations and selected years. Users can choose a station name ...
5 votes
1 answer
12k views

Custom markers with different shapes and colors in leaflet R

There are some examples to create custom markers in leaflet, but most of them are only for one variable. However, there are lots of data with several factors, which is better to visualize with ...
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 ...

15 30 50 per page
1
3 4
5
6 7
124