Questions tagged [r-leaflet]
This R package makes it easy to integrate and control the open-source JavaScript Leaflet software in R.
r-leaflet
703
questions
0
votes
1
answer
778
views
Shiny Leaflet map renders twice on switching input
I'm trying to produce a Shiny app with Leaflet that renders a choropleth map based on different input criteria. The map displays incidents of different types (input$type) and backgrounds (input$...
5
votes
1
answer
6k
views
Extracting data from a WMS-layer
I am trying to extract data from a WMS-layer.
As an example, I would like to analyse whether or not a Natura2000 area is touched by my area and what the specifics are of the Natura2000 area.
The WMS-...
1
vote
1
answer
4k
views
how to use colorNumeric within addCircles in leaflet
I have a leaflet map in which I have used addCircles, which are sized based on the population size of my data locations. I now want to color those circles based on the income of the population using ...
1
vote
0
answers
477
views
Performance problems in R's Shiny on huge (?) dataset
I have a dataset of ~10.000 address pairs (origin, destination) which consists of two sources - a database and a CSV-file. I am visualizing those pairs of addresses by two different marker types and I ...
0
votes
1
answer
284
views
Adding different pop-up iframes to multiple points
I'm building a map using the mapview R package following
this tutorial. Adding a different image to each point using popup=popupImage(images,src = "remote") works fine.
The issue is with iframe ...
2
votes
0
answers
343
views
How to assign a specific size to the marker in leaflet R
I am trying to plot spatial data using leaflet package in R. i want to change the location marker's default size. How can i assign a particular size to the marker in R leaflet package when i am using ...
1
vote
0
answers
521
views
Change color of existing polygons onRender function htmlWidgets Leaflet
So I am trying to create a choropleth map of all the counties in the United States where the counties will be colored based on a variety of different variables (e.g. unemployment rate, poverty rate, ...
4
votes
1
answer
2k
views
How to assign popup on map polygon that corresponds with the country R leaflet
I am trying to write a script that would allow people to click on a country then a popup would appear and show the country's name and corresponding value. I have successfully created the map and the ...
19
votes
2
answers
32k
views
R: Add title to Leaflet map
I'd like to add a title to the whole map (different from the legend title: addLegend(..., title = "", ...): by "title", I mean an overlaid map component that stays in place while the map is moved (...
1
vote
0
answers
250
views
How To Recolor An Already Existing Polygon In Leaflet With Shiny
Currently I have shapefiles for all counties for all 50 states. And I am coloring them based on some outcome variable chosen by the user (e.g. unemployment, poverty rate, etc.)
Using leafletProxy() I ...
2
votes
0
answers
2k
views
setMaxBounds does not set max bounds
setMaxBounds does not restrict the rectangle displayed to the coordinates specified.
On zooming in multiple times (5 on my browser), it gets 'close to' the specified rectangle, as shown in the table.
...
1
vote
1
answer
4k
views
Dynamic Color Fill For Polygon Using Leaflet In Shiny Not Working
My goal is to create a map that highlights states based on a dropdown menu. I have produced a map that works as intended for one of the metrics in the data set, but when I try and recreate the map in ...
2
votes
1
answer
3k
views
How to connect leaflet map clicks (events) with plot creation in a shiny app
Hello I am creating an environmental shiny app in which I want to use a leaflet map to create some simple plots based on openair package(https://rpubs.com/NateByers/Openair).
Aq_measurements() ...
1
vote
0
answers
466
views
R shinydashboard Leaflet marker click event not working after using addSearchMarker
I have a shinydashboard app with a leaflet map in a box, and an observeEvent function for marker clicks. When a marker is clicked, a data frame variable for that marker is displayed in another box.
...
0
votes
1
answer
293
views
Hide mouse cursor and projection information in mapview in R
In mapview by default, the mouse cursor and projection information are shown in a box at the top of the map.
How can I hide this information box as it is by default in leaflet?
library(leaflet)
...