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
0
answers
48
views
Polygon duplicated when using 'Cut layers'
I'm building a Shiny app using leafpm polygon editor. Basically I apply some changes to an existing polygon, then I save the edited polygons and edit the leaflet map by removing polygons and adding ...
0
votes
0
answers
43
views
Interactive R maps that work well on mobile, with inset AK and HI?
Issue: I need an interactive choropleth map of the US that will work well on mobile (ideally pinch-zoom), has a pop-up on tap/click, and has AK and HI set below. Plotly isn't it as you have to tap the ...
1
vote
1
answer
50
views
Change icon, color and marker color based on data in leaflet
I'd like to plot some data on a map wherein the icon shape, iconColor and markerColor are all based on the data itself.
Sample Code
library(data.table)
library(leaflet)
library(webshot2)
library(...
0
votes
0
answers
26
views
Getting Domain range Error using mapview function. Screenshot attached
Getting:
Error in leaflet::colorNumeric(palette = palette, domain = domain,
na.color = na.color) : Wasn't able to determine range of domain
Trying to attribute certain areas of map with a color
0
votes
0
answers
37
views
Ho to make markers have different colors based on specific variable in R using leaflet?
What I want:
I want to make markers appear with different colors
my map
will have radio button to control (show/hide) markers by variable
'color_status'
match color scale to the color of the markers -...
0
votes
1
answer
27
views
Leaflet circle markers are not adhering to my colorfactor palette?
I'm using a defined color palette in my circle markers to show the category of each point on the map.
The points that show up on the map are colored according to the palette but the palette does not ...
0
votes
0
answers
30
views
Leaflet overlayGroups cause circle markers to not be clickable
I'm working on a Leaflet map that will be part of a Shiny application. This map involves being able to click on a point to allow a plot to generate based on the input click. The map has an overlay ...
1
vote
1
answer
41
views
How to draw a custom map in the style of NASAGIBS.ViirsEarthAtNight2012 using R
"NASAGIBS.ViirsEarthAtNight2012" is an optional layer parameter under the addProviderTiles function in the leaflet and leafletCN packages.
I really like the drawing effect of this map.
How ...
0
votes
1
answer
31
views
on R studio for mac book, how do I make sure my map is laoding?
I am using Rstudio on my macbook, I want to run a geographical analysis. I have the leaflet library, and the required libraries overall. However, when i View(make_a_map) there is not a visual but name,...
0
votes
1
answer
63
views
Leaflet does not work with a specific basemap layer in R
I am recently working on a project. Its one dimension is to make a leaflet map with different basemap layers. Here is the code so far;
library(leaflet)
library(leaflet.providers)
leaflet() %>%
...
-1
votes
1
answer
60
views
Package warning
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/vctrs_0.6.5.zip'
Content type 'application/zip' length 1336614 bytes (1.3 MB)
downloaded 1.3 MB
trying URL 'https://cran.rstudio.com/bin/...
0
votes
0
answers
112
views
R Mapview and Leaflet render in quarto and shiny but not in Rstudio when with R 4.4.0
With the new update of R version 4.4.0, mapview and leaflet do not render in the viewer window of RStudio but do render when used in shiny applications or quarto documents.
These will preview fine in ...
1
vote
1
answer
36
views
How to use a Cicerone guide for elements of a leaflet map in R Shiny?
Using the Cicerone package, I am trying to create some guide steps for elements inside an r-leaflet map. I have tried a variety of CSS selectors I can think of from inspecting the elements and using ...
0
votes
0
answers
37
views
Fitting a Long Legend Within Mapview
I like what mapview outputs but can't really use it with with the burst option (seems to make legend interactive and zooms to group on click) as there's no way to adjust the scale of the legend. Is ...
0
votes
0
answers
33
views
Can I use Nearmap in leaflet via R?
I would like to know if it's possible to use Nearmap in leaflet via R?
If so, how can I do that?
I have access to Nearmap and can generate API key. I would like to use Nearmap as basemap.
I searched ...