Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
100 views

I'm working on an interactive mapping tool using shiny and leaflet which will allow users to navigate through various filters, basemaps, shapefiles, and point data. The problem I am running in to ...
Morrigan's user avatar
3 votes
1 answer
123 views

Working on a leaflet map with a large number of groups that creates a bulky legend. To trim down the legend, I'd like to hide it away in the Layers Control with customizeLayersControl from the leafem ...
Molly Westbrook's user avatar
3 votes
1 answer
89 views

I'm creating some html files for colleagues where they can explore a leaflet map interactively, then save a copy for presentations. Unfortunately the downloads from addEasyprint in leaflet.extras2 are ...
Nova's user avatar
  • 6,050
2 votes
2 answers
118 views

I've collected longitude/latitude coordinates of roads in Hertfordshire. I want the user to enter a postcode in the app, and for the app to center the map on that postcode. The map has dots for each ...
Linda Anderson's user avatar
1 vote
2 answers
157 views

I have a database with longitude and latitude values that correspond to station names. Some stations have multiple entries with the same name. I need to group these stations by their name, so that all ...
Madd25 's user avatar
1 vote
0 answers
97 views

I am trying to create some interactive tmaps. I wanted to take advantage of the radio buttons in TMAP v4, to display different data inside the same .html-file. My first question is around using group....
SamBam's user avatar
  • 11
0 votes
1 answer
64 views

I'm working on a Shiny app with a leaflet map that allows users to change names of points using popups. The idea is that you can click on a point, see the name and edit its textInput. The problem is ...
Victor Cz's user avatar
  • 124
1 vote
1 answer
92 views

I am trying to save a map in html format from a shiny app, however, the map is saved alright but the dimensions from the map displayed on my mainPanel are different than the saved map. I would like to ...
Salvador's user avatar
  • 1,993
2 votes
1 answer
258 views

I'm making a Quarto document with the closeread "scrollytelling" extension. Right now, when I attempt to create a leaflet map from an R code chunk, the resulting HTML file does not show the ...
John J.'s user avatar
  • 1,877
1 vote
1 answer
108 views

How can I manage the zIndex of following map (see code) in R using RStudio and Shiny? I'd like to put on the top a mapPane programmaticaly (eg.: change "Sections" zIndex to 490). I found ...
AgoMar's user avatar
  • 11
1 vote
1 answer
132 views

I recently noticed that every time I saved a leaflet map to file as PNG or PDF, my saved map boundaries are narrower than what my shiny app mainPanel is showing. I looked into the mapshot() arguments ...
Salvador's user avatar
  • 1,993
1 vote
1 answer
99 views

Trying to save a leaflet map to png works fine but when saving as pdf, it saves the file but the legend does not show the colors only text. Can someone let me know what am I missing? Example below and ...
Salvador's user avatar
  • 1,993
5 votes
1 answer
311 views

I'd like to make sure maps I create with the leaflet package have alt text that could be read by screen readers. Essentially add alt text to the whole leaflet map the same way you can for static ...
Wavedash's user avatar
  • 153
0 votes
1 answer
178 views

How can I remove the zoom and layers buttons of mapview or leaflet? Below is a small shiny app that I found online, however, it does not remove the above mentioned buttons. The app opens but get an ...
Salvador's user avatar
  • 1,993
2 votes
1 answer
145 views

Two fold question: How can I avoid losing my data points while attempting to save a map with the downloadHandler shiny control? And I have 4 tiles to select from but it defaults to the first one all ...
Salvador's user avatar
  • 1,993
4 votes
2 answers
88 views

I'm working on generating several thousand static images out of leaflet maps. I would like the images to be zoomed in, so that a portion of the data layer is truncated, so that the plotted data extend ...
user2602640's user avatar
  • 1,059
2 votes
2 answers
141 views

I'm looking to produce a rectangular leaflet output (i.e., aspect ratio of ~0.7). My workflow is as follows: I'm creating static maps, to be saved to image files. Then, I'll use 2 map outputs shown ...
user2602640's user avatar
  • 1,059
1 vote
1 answer
166 views

How can I save a map displayed on the main panel either as pdf or png? I am able to save the default map but if I zoom in or out it still saves the default map. How can I tell shiny to capture what's ...
Salvador's user avatar
  • 1,993
0 votes
1 answer
235 views

I'd like to use R and particularly ggplot2 to load a basemap that looks very similar to the ESRI light gray canvas. The code below is pretty close, but it has the labels for different cities, and I'd ...
Alex Young's user avatar
1 vote
1 answer
53 views

I have a leaflet map with multiple data sources (ie different group arguments) and I want popup with plotly graphs to open when clicking on markers. I use leafpop:::addPopupIframes, saving widgets ...
Victor Cz's user avatar
  • 124
1 vote
1 answer
78 views

I'm looking to add a little text blurb inside a leaflet map within Shiny. This answer works great for leaflet outside of Shiny, but I can't seem to find a solution to doing this within Shiny. Toy ...
user2602640's user avatar
  • 1,059
1 vote
1 answer
62 views

This is a follow-up question to the excellent answer provided here on how to sync leaflet maps while using leafletProxy within Shiny. When I incorporate the provided answer into a dashboard with ...
user2602640's user avatar
  • 1,059
3 votes
1 answer
155 views

I'm working on a Shiny app that needs to have two maps showing the same area under 2 different scenarios (similar to facets in ggplot). The app has an animation, displaying the data over time, and ...
user2602640's user avatar
  • 1,059
1 vote
1 answer
91 views

I'd like to show subtitles in the control box for overlay groups of a leaflet map created in R. I found some examples (for instance https://github.com/ismyrnow/leaflet-groupedlayercontrol) but not ...
Victor Cz's user avatar
  • 124
0 votes
1 answer
117 views

I'm putting together a leaflet that is going to show several thousand points - a map of temperatures over the spatial extent of interest. Currently, the points are represented as diamond-shaped ...
user2602640's user avatar
  • 1,059
3 votes
1 answer
102 views

Problem: I'm building an interactive R Shiny app that uses leaflet to show a world map with country polygons and raster overlays (.tif) for each. Users can switch between the "World" view (...
Sofiia Fedorenko's user avatar
2 votes
2 answers
148 views

I want to display a leaflet map in R where the whole world is "whited out" except for a specific country (e.g., Germany). I had a working solution using sp, rgdal, and rgeos, but these ...
tuborgflasche's user avatar
3 votes
1 answer
104 views

I am trying to overlay a shapefile on the minimap using leaflet (addMiniMap). My code is below. The small sample shapefile can be downloaded from here: https://login.filesanywhere.com/guest/fs?v=...
Salvador's user avatar
  • 1,993
0 votes
1 answer
108 views

I'm building a Shiny app that visualizes rainfall data using a Leaflet map. Here's what I want to achieve: 1. Zoom to a Province When Selected When a province is selected from a dropdown, I want the ...
Rahmat Hidayat's user avatar
3 votes
1 answer
118 views

How can the font of scale bar be modified in leaflet? Example below of what I have tried without success: library(leaflet) library(htmltools) # Create a basic Leaflet map map <- ...
Salvador's user avatar
  • 1,993
1 vote
1 answer
74 views

I was able to change the size of the circleMarker to a small green dot but the label white space and border covers my study area. How can I remove the label mylabel borders leaving just the text. ...
Salvador's user avatar
  • 1,993
1 vote
1 answer
134 views

I can add labels to the main leaflet window but can't figure out how to add a label to the inset map window. Consider the example below: library(leaflet) main_map_with_labels <- leaflet() %>% ...
Salvador's user avatar
  • 1,993
1 vote
1 answer
57 views

I would like to use a different map in addMiniMap() than the main leaflet window. How can I do that? For example, I want to display CartoDB.Positron in the main window and Esri.NatGeoWorldMap in the ...
Salvador's user avatar
  • 1,993
1 vote
1 answer
186 views

Is it possible to add graticule tick marks and coordinates around the edges of a leaflet plot? Something like the screenshot below but with lon/lat values included? I looked online but did not find a ...
Salvador's user avatar
  • 1,993
3 votes
1 answer
343 views

How can I add a compass control to my map? There used to be a function called addControlCompass in leaflet.extras I believe but is not there anymore. Does anyone know how to add a compass or an arrow ...
Salvador's user avatar
  • 1,993
2 votes
1 answer
96 views

I'm using R shiny to build a web application for users to plot past and present data. Many of these data points are close together, so when the user opens the popups, they overlap. The user needs all ...
Moody's user avatar
  • 23
1 vote
1 answer
135 views

I’ve created a shiny app with raster layers plotted over a leaflet map. The user selects which raster to show with two drop down menus: one to select the type of data (mean or SD) the other to select ...
erz's user avatar
  • 13
2 votes
2 answers
173 views

I tried to add a raster file (stored in r_max) to my map. r_max is a RasterLayer with values from about 0 to 5: class : RasterLayer dimensions : 180, 360, 64800 (nrow, ncol, ncell) resolution : ...
user27931701's user avatar
1 vote
1 answer
73 views

I am trying to map traffic data onto a map of Ottawa. I first convert to longitude and latitude before plotting using the leaflet package. The plots look okay, but everything seems to be shifted west ...
Jipe's user avatar
  • 11
3 votes
1 answer
148 views

I have a Shiny app that contains a leaflet and a DT table. I'm using crosstalk so that if I click a row in the table, it highlights the respective point on the map. However, I'd like to have it work ...
user2602640's user avatar
  • 1,059
1 vote
1 answer
62 views

I have a leaflet map (in a R Shiny application) with multiple circles/radii added as the centroid of a province. What I would like to do is to slightly offset the circles/radii so they are not totally ...
rratnaya's user avatar
0 votes
1 answer
132 views

I am making a map that needs to have seven base layers on it. There are so many legends that they cannot all fit on the screen- which makes it necessary to add a feature of the map that makes it so ...
LouisianaCodingNPC's user avatar
2 votes
1 answer
120 views

I'm attempting to create a Shiny app which includes a map, and a downloadable Markdown report which has a copy of that map. I'm using the mapshot package, since it has the option to remove the zoom ...
anorlondo's user avatar
  • 417
1 vote
1 answer
42 views

I am using the following df: df <- structure(list(name = c("name1", "name2", "name3", "name4"), postcode = c("NE6 4AG", "YO12 4HG", &...
Abdul-Kareem Abdul-Rahman's user avatar
2 votes
1 answer
82 views

I downloaded two separate, similar but distinct shape files. They can be found here and here. The first file has filename "FED_A_FINAL_REPORT_BC.shp" and the second has filename "...
Abed's user avatar
  • 317
0 votes
1 answer
66 views

A previous topic: https://stackoverflow.com/questions/75526891/custom-icons-in-font-awesome-style-r-leaflet?newreg=026c290b4abe44f58cc3d9a9bb490e39 I've been working through the same problem with my ...
Samuel Thompson's user avatar
0 votes
1 answer
51 views

I am working on a R Shiny app. The user uploads his data file and it creates leaflet maps of the median values. The difficulty is that I need to generate maps for each variable, but that number can be ...
Benson_YoureFired's user avatar
0 votes
1 answer
189 views

I want to load a WMTS into R Leaflet. I've tried a number of variations on the file pathway, and also tried "addWMSTiles()" but so far nothing loads into the Leaflet map. I can load in the ...
KirkyLady's user avatar
1 vote
1 answer
99 views

Problem I've been working on a shiny app where the user can draw a single polygon and export as either a shapefile or geojson. What I can't seem to figure out is how to combine multiple polygons and ...
SeniorAthlete's user avatar
2 votes
1 answer
192 views

EDIT: This is solved per my answer posted below, thanks to comment by ghybs. In my actual code which has multiple UI inputs that change the data displayed on the map (some of those UI elements being ...
Blair's user avatar
  • 33

1
2 3 4 5
34