Questions tagged [r-leaflet]

This R package makes it easy to integrate and control the open-source JavaScript Leaflet software in R.

499 questions
0
votes
0 answers

How can I build an app in R that shows in a map the geolocation of the user?

I am brand new to shiny and leaflet and need your help, please. I want to build an app in r that shows in a leaflet map the geolocation of the user. It seems easy, however I couldn't deploy the app. I started with an example code to build a map…
0
votes
0 answers

How do I extract the polygon boundary from leaflet? (Either the coordinates or the shape)

I am trying to draw a boundary around points and remove what lies outside of it, but am unsure how to extract the polygon that is drawn using addDrawToolbar() from leaflet. Here are some images of what I have: enter image description here enter…
0
votes
0 answers

blinking leaflet map during animation

I have a question, is it possible to remove somehow blinking leaflet map during refreshing? I'm creating an application in Shiny that handles a large dataset, filtered by sliderInput (exactly the animation this widget offers) and then I process it…
tomsu
  • 371
  • 2
  • 16
0
votes
0 answers

Rshiny app for collecting fielddata interactively

`Hello everyone, My Rshiny app allows users to input data and show it interactively in the map and table. However, I want to allow user to upload his own coordinates file. then bind the other informations interactively. Simply put: User upload…
0
votes
0 answers

Leaflet Timeslider doesn't take full range of values, add a timeslider in R with leaflet

I have an sf linestring object, with a value attached to them. The lines are intended to remain static, but I their colours to be graduated according to the value and evolve over time in a specific day. I have managed to get the timeslider working…
suyash_n
  • 3
  • 2
0
votes
0 answers

Leaflet animated marker not adjusting route path upon zooming?

Here's the map with the animated marker I am coding using Leaflet. When I click start, the animated marker starts moving like I want it to, but when I zoom in or out, the marker's route doesn't adjust to the Zoom but seems to be locked into the…
0
votes
0 answers

R markdown including R leaflet elements in TOC

I'm running into quite a strange problem in r markdown & r leaflet. R markdown table of content (TOC) is including the 'addMeasure' function in the TOC as 'Measure distances and areas', not once, but twice. Whilst also moving within the document,…
0
votes
1 answer

Leaflet in ioslides_presentation puts unnecessary white space in box to toggle layers. Way to reduce size of box? More help needed

My problem is exactly the same as the problem found here: Leaflet in ioslides_presentation puts unnecessary white space in box to toggle layers. Way to reduce size of box? But I do not know where or how to add the css code to my r document. Many…
0
votes
0 answers

Dynamically add/remove groups of markers from Marker Cluster in R

I am using the leaflet for R package to create a leaflet map with multiple clustered marker groups that dynamically updates the cluster colors and values when groups are toggled on or off. I am attempting to do this with the…
Josh Persi
  • 83
  • 1
  • 7
0
votes
0 answers

Trying to add multiple pins to polarplots of Openair map in R

I have been using the open air package for my research work. I have an air quality monitor located in my city and I am able to the plot the polar plots on the map for the respective pm levels. I was wondering if I could add the location of the…
0
votes
0 answers

R markdown not knitting to HTML?

I cannot get both the markdown document to knit to html and the shiny code to function simulaneously. Here is my code: --- title: "Report" author: "Name" date: "`r Sys.Date()`" output: html_document: df_print: paged runtime:…
0
votes
1 answer

Custom icons in Font-Awesome Style R Leaflet

The problem is I have no access to doughnut icon with Font-Awesome, so I tried a code putting a custom doughnut icon, but this code just partially solved my problem, because I expected the doughnut to be a replacement for the white circle in the…
Ignacio2424
  • 116
  • 6
0
votes
1 answer

R Shiny/R Leaflet/ R : Dynamically render choropleth map with sliderInput in R shiny 2

I am trying to use the slider function to select and only display selected polygons using Shiny on a Leaflet map. The code below gets the slider to react, but I want the colour scale to represent the depth, and the slider to select and display the…
0
votes
0 answers

Leaflet basemap not showing after adding local shapefile

New here, well, after a long hiatus... Think it's a fairly simple fix, but going round in circles and tired. In Leaflet (R), once basemap has been successfully loaded, once I add my local shapefile, the basemap disappears. R leaflet: adding polygons…
0
votes
1 answer

R Shiny Leaflet Show number of overlapping markers / polygons?

I'm working with a large set of location data, and it turns out a lot of my locations share longitude and latitude values. Is there a way to show the number of markers / polygons that overlap, either through a popup or some other widget? I can not…
rwjam
  • 163
  • 10