All Questions
200
questions
0
votes
1
answer
65
views
Connecting R Leaflet to esri vector tile service
I'm building a Shiny leaflet application that I want to use a ESRI vector tile map from my organization for. I can see that leaflet connects to it as the attribution is accurate. However the tiles ...
0
votes
0
answers
55
views
Why are my leaflet points stuck to the map edge?
I try to plot transit stops on a leaflet map, indicating local clustering ("LISA"), based on Moran's I. The map is embedded in an R markdown file.
I've successfully done that with polygon ...
0
votes
1
answer
62
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() %>%
...
0
votes
1
answer
41
views
Can't add WMS layer to R Leaflet
I want to make a leaflet map in R with this wms servic : https://data.geopf.fr/wms-r/wms?VERSION=1.3.0
It works well in QGIS but not with addWMSTiles.
library(leaflet)
layer="ADMINEXPRESS-COG-...
0
votes
0
answers
23
views
R Leaflet - Problem Highlighting Features Underneath Layer
I am encountering a problem where I can't see highlighted features underneath a transparent top layer.
I have a simple map setup, where I have a US county choropleth layer with a transparent US state ...
1
vote
1
answer
83
views
Is there a way to pop out a leaflet map in an R Shiny app into a new browser tab?
I'm making an R Shiny application that includes a leafletOutput map that maps certain datapoints from a filtered dataframe. Is there any way to expand that map to a full screen size in a new browser ...
1
vote
1
answer
92
views
clusterOptions() displaying correct area of map but no markers or clusters
I am working on a Shiny app in R that creates a leaflet map and plots points.
Plotting the points by themselves works fine. The issue arises when I try to implement even the most basic clusters.
I can ...
1
vote
0
answers
63
views
Add time slider for a stack of rasters
I'm looking for a static HTML solution (no Shiny) to incorporate a timeslider for raster data in a leaflet.
leaflet.extras2::addTimeslider() requires the data argument to be "a Simple Feature ...
0
votes
0
answers
54
views
How to offset addStaticLabels using mapview or leaflet
How can the labels be moved up, down or to the sides. direction and offset seems to be ignored. I would like my labels to be moved to the bottom.
library(mapview);library(leafem)
mapview(franconia) %&...
0
votes
1
answer
102
views
LabelOnlyMarkers in R Leaflet with specific colors
I want to build a leaflet map with CircleMarkers and LabelOnlyMarkers atop the circles. Labels and circles should have colors specified in a data.frame column.
The following does what I want, except ...
10
votes
1
answer
544
views
Load Quarto html map data from json for Leaflet map generated in R
I have created a Quarto blog post which contains many leaflet maps, generated in R. As the data for each map is embedded within the html file, the file itself is very large. This is causing problems ...
0
votes
1
answer
48
views
R Leaflet layer control fails when using clusterOptions
Layers control in this map work well:
library(leaflet)
mini_quakes <- head(quakes, 10)
mini_quakes$stations <- as.character(mini_quakes$stations)
leaflet(mini_quakes) %>% addTiles() %>%
...
1
vote
1
answer
91
views
Display coordinates in a table when markers are dragged in shiny app
In my simple shiny app, I'm able to drag the markers on the map and see their new coordinates in observe function :
coords_data <- data.frame(id = 1:3, lng = c(2, 30, 50), lat = c(48, 40, 60))
...
2
votes
1
answer
267
views
Legend Disappearing on Geographic Map of North Carolina?
I am working with the R programming language.
Using this built-in map of North Carolina, I generated 3 random variables (income, number of kids, weight) and then created maps (with the "leaflet&...
0
votes
1
answer
989
views
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 ...