All Questions
137
questions
17
votes
1
answer
14k
views
shiny leaflet ploygon click event
I have a map called business which is downloaded from natural earth website. What I am doing here is I created a basic Map output which shows the map. I am mainly using two columns which are admin(...
16
votes
1
answer
10k
views
Creating legend with circles leaflet R
I'm trying to create a leaflet map with points sized by a variable. Is it possible to create a legend with different sized circles representing the different variable values? I found another post ...
6
votes
2
answers
9k
views
How to save a leaflet map in Shiny
Following on from this question, I am looking to save and download a leaflet map as a png or jpeg image. I have the following code but I keep getting an error.
ui <- fluidPage(
leafletOutput("...
2
votes
1
answer
2k
views
How to render custom map tiles created with gdal2tiles in Leaflet for R?
I'm working with the ESA's landcover raster layer and ultimately want to display that data for the globe in a Leaflet Shiny app. Rendering such a massive file is impossible, so I've decided to create ...
0
votes
1
answer
900
views
Plot scatterplot on a map in Shiny
how do I plot my scatterplot on a map? I managed to plot my scatterplot, however I wanted it to be plotted on a map. I believe that an option is to use the leaflet package, since I have the Latitude ...
72
votes
8
answers
27k
views
How to get Leaflet for R use 100% of Shiny dashboard height
I am in the process of creating a Shiny dashboard application, where the dashboard body is supposed to show some maps. So far no problem to get the map expand over the entire width of the body, but it'...
19
votes
1
answer
11k
views
How to get the zoom level from the leaflet map in R/shiny?
I create a map using leaflet package in Shiny which have a selectInput to allow user to select from a site list. The site list also adds into leaflet as markers.
When user selects a new site, I want ...
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 ...
10
votes
1
answer
3k
views
Changing styles when selecting and deselecting multiple polygons with Leaflet/Shiny
I'm having some problems changing polygon styles when selecting and deselecting polygons in a Leaflet Shiny app I'm working on. In my current app, when you click on a polygon, that polygon is ...
8
votes
1
answer
3k
views
Select multiple items using map_click in leaflet, linked to selectizeInput() in shiny app (R)
I would like to create a leaflet map where you can select multiple polygons and this will update the selectizeInput() in a shiny app. This would including removing a selected polygon, when it is ...
7
votes
1
answer
4k
views
Shiny leaflet easyPrint plugin
I'm trying to incorporate the easyPrint plugin into my shiny leaflet app. What I want is something that looks like the demo, but in shiny.
I have tried to mimic the examples, but have been ...
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 ...
16
votes
1
answer
7k
views
Save leaflet map in Shiny
I have created a leaflet map in a Shiny application. Now I need a download button, so that the user can download the currently shown map including all markers, polygons etc. as a pdf file.
I have ...
11
votes
1
answer
1k
views
How to save a leaflet map with drawn shapes/points on it in Shiny?
This question is a follow-up to the questions How to save a leaflet map in Shiny, and Save leaflet map in Shiny.
I add a toolbar to draw shapes/points on the map that is addDrawToolbar in the ...
9
votes
1
answer
3k
views
How to "save" click events in Leaflet Shiny map
What I want to do is pretty simple. I want to be able to save all click events on a Shiny/Leaflet map. Here's some example code:
library(raster)
library(shiny)
library(leaflet)
#load shapefile
rwa &...