All Questions
202
questions
0
votes
1
answer
52
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
50
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
56
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
39
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
22
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
75
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
88
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 ...
0
votes
0
answers
56
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
94
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 ...
1
vote
1
answer
150
views
Displaying Two Different Datasets on One Map
I want to visualize two distinct datasets on a common map for comparison purposes (so they should have different Icons). So far, I've been using the following code, but it only allows me to display ...
10
votes
1
answer
528
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
46
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
84
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&...