Skip to main content

Questions tagged [r-leaflet]

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

0 votes
1 answer
31 views

appendContent can't be used in a Shiny render call

The funciton addSearchGoogle from leaflet.extras is throwing this error in a Shiny-app: Warning in renderWidget(instance) : Ignoring appended content; appendContent can't be used in a Shiny render ...
SeGa's user avatar
  • 9,719
0 votes
1 answer
109 views

Handling polygon edits in shiny app using leafpm

I am working on a shiny app that lets users interactively draw polygons on a leaflet map using the "leafpm" package, calculate forest biometrics, report them, and make those polygons ...
Sean McKenzie's user avatar
0 votes
0 answers
41 views

react-leaflet manage close popup on Child Component

I'm trying to make a react-leaflet popup everytime I click a link that changes the marker position in the child component, but it never closes de popup, here's what it looks like on the map component ...
Sebastián Vidal's user avatar
0 votes
0 answers
91 views

filter leaflet map per year using crosstalk

I would like to filter my leaflet map per year using crosstalk with the filter_select function like this example. So when we select a year it should change the data of the leaflet map. Unfortunately ...
Quinten's user avatar
  • 39.8k
1 vote
1 answer
34 views

addPolarMarker issue - Error in UseMethod("drop_na")

I am trying to use the openairmaps and leaflet in R to add pollution plots on top of a leaflet map. Now I have already done this before, and produced the outcome I wanted, but that was almost 6 months ...
bre123's user avatar
  • 41
0 votes
1 answer
47 views

Interactive Leafpm editing in Shiny App doesn't recognize dataframe depending on session

I have a perplexing issue that must be related to some difference in my RStudio sessions. I am attempting to build an interactive shiny app that allows users to draw a polygon on a "leaflet"...
Sean McKenzie's user avatar
0 votes
1 answer
69 views

How to write/share an html document created in R using crosstalk and leaflet

I've created a filterable map using crosstalk and leaflet in R, and I'd like to share this with coworkers as a standalone document: library(leaflet) library(htmltools) library(htmlwidgets) #example ...
Eric's user avatar
  • 1
0 votes
2 answers
105 views

custom color palette for leaflet R consistently throws a warning

I create a leaflet app. For one particular value within my data, I want to use a custom color. For the remaining colors, I want to use a ramp. As I don't know any better, I create a simple color ...
Beni's user avatar
  • 251
0 votes
1 answer
66 views

Load shapefile in R Shiny mapedit editMod

In a Shiny app I use polygons that can be drawn manually with editMod() or loaded from shapefiles. It works for the calculation but so far the loaded shapefiles are not mapped on the editMod leaflet. ...
Victor Cz's user avatar
0 votes
1 answer
77 views

How to Dynamically Add Markers to a Leaflet Map in Shiny App Using JavaScript?

I'm working on a Shiny application that includes a Leaflet map. I want to dynamically add markers to the map based on user input, but I'm encountering issues when trying to add these markers using ...
Jarn Schöber's user avatar
1 vote
0 answers
75 views

Changing Colours of Leaflet Map

I wonder if and how it is possible to change the color of the map (individual countries, backgrounds and lines) in Leaflet? I have simply created the basic code of a leaflet map as specified in the ...
Tim Schäflein's user avatar
0 votes
1 answer
55 views

Reset editMod mapedit in R Shiny

I'm creating a R Shiny app using the drawing tools of mapedit through editMod() to run some operations (in the reprex below I simplified to just calculating the area of the drawn polygons). I have ...
Victor Cz's user avatar
0 votes
0 answers
56 views

I am having difficulty adding a layer of polygons to my existing leaflet map

I have created a leaflet map, "plot" that runs pretty well. I needed to add a new layer of polygons once the map fly's to selected coordinates. After a drop-down input is selected, that is, &...
nxatha's user avatar
  • 3
1 vote
0 answers
155 views

Use crosstalk to filter polygons on a leaflet map

I would like to use crosstalk (i can't use shiny) filters on polygons on a leaflet map. Now, I can't connect the result of the filter to the polygons data. After many investigations it seems ...
Elise_351995's user avatar
4 votes
0 answers
140 views

Shinylive app doesn't render leaflet map tiles

I am trying to move an r-Shiny app onto a website using the shinylive package. The app is exported to HTML and it is functional, except that a leaflet map that is embedded in the site does not render ...
SGE's user avatar
  • 410

15 30 50 per page
1 2 3
4
5
47