Questions tagged [r-leaflet]

This R package makes it easy to integrate and control the open-source JavaScript Leaflet software in R.

499 questions
0
votes
1 answer

"Leaflet" map showing blue background

I am trying to create a leaflet map in R studio but the map appears to have blue background. Although it is showing the markers but not the actual map. Initially I thought it is due to slow processing in my system. But I tried on another system as…
0
votes
0 answers

How to Improve Leaflet Render Time - Shiny App

I would like to start off by apologizing for not providing the data but I am not at liberty to share the spatial data. I have a shiny app with a leaflet/ tab in which the user can choose a date range, a national park, a species of interest, and…
Eizy
  • 253
  • 1
  • 9
0
votes
0 answers

How to reduce incremental zooms in leaflet?

I am making maps in leaflet and cannot change the zoom increment for some reason. I don't have the option to use var map = L.map('map', { zoomSnap: 0.25 }); I also don't have these functions available: options = leafletOptions(zoomControl =…
ASHooper93
  • 27
  • 3
0
votes
0 answers

Add legend in R leaflet for polyline weight

I have a polyline that I am displaying in the R leaflet with the following code: leaf <- leaflet() %>% addTiles() %>% addPolylines(data= data, weight = data$vol) As you can see, I am defining the weight of each line based on the value of…
AkbarB
  • 460
  • 7
  • 24
0
votes
0 answers

Specify range of values to display in leaflet map?

I'm very new to using leaflet and the GBIF API in R, but I'm wondering how to display tiles up to a particular year (like 'year<=2015') rather than just the tiles with the year equivalent to a particular value ('year=2015')? Thanks! The issue is, I…
EML
  • 1
  • 1
  • 1
0
votes
1 answer

How to only allow one layergroup activated Leaflet R?

I have made a leaflet map in R, which works perfectly fine. But I would like that only one overlay group can be activated at a time, so when you click another overlay group, the first one is removed. So in the example below that it is not possible…
0
votes
0 answers

Create labels dynamically in leaflet

I am looking for a way to define labels in my leaflet map dynamically, such that they don't need to be precalculated but are generated just in time. Let us assume we want to show the current time on the label: leaflet() %>% …
c0bra
  • 1,031
  • 5
  • 22
0
votes
1 answer

How to remove dashes from addLegend in leaflet R

I am using addLegend() in leaflet in R. My labels have minus signs in them. Is there an easy way to remove the dashes that come with numeric colour palettes to improve the formatting? labFormat doesn't seem to have such an option. enter image…
0
votes
1 answer

Using leaflet for R to make a pie chart with GIS data

I am trying to make a point map that replaces the points with pie charts to make the information quicker to understand for the layman. the alternative is: "text": statistic "text": statistic "text": statistic "text":…
PotterFan
  • 81
  • 2
  • 7
0
votes
1 answer

How to save leaft map in shiny app that contain marker and some other filters

I Want to download the Map view that contains all my filters and markers and I want to upload it to the server so users can log in and download what they need I tried the solution to this question This but it always gives me an error:- Warning:…
HIXER
  • 11
  • 2
0
votes
0 answers

compress file size of exported leaflet html

Generating leaflet html's easily results in a 50-75 MB file (depending on the number of layers). However, they can be zipped to reduce the file size by factors. So i guess there is lots of repetitive information in the HTML. The data is the same for…
Beni
  • 191
  • 9
0
votes
1 answer

R Shiny Leaflet: Plot from shape file SF object WGS 84 missing lng ang lat data

First time working with shape files and new to mapping so please forgive my potential ignorance here. Also, I am unable to create MWE due to access to shape file in question. I am creating a leaflet map within Shiny and using the SF package for…
r0bt
  • 383
  • 3
  • 12
0
votes
0 answers

Specify the position of SelectInput widget under tabItem in Shiny for R

Below is sample of a dataset I'm using to build a shiny app. Everything works, I just need some guidance in laying out some of the pages. df<-df<-structure(list(lon = c(-1.309306062, -1.308591288, -1.308725397, -1.308223849, -1.309100942,…
McMahok
  • 348
  • 2
  • 13
0
votes
0 answers

Unable to see the plots I expected in the output pane

Sorry for the lack of a reproducible example, but the actual data I am working with is too specific to be shared here. I can share the data upon request, though. My ui.R script is this: suppressPackageStartupMessages({ library(shiny) …
KVemuri
  • 194
  • 1
  • 16
0
votes
1 answer

R leaflet.minicharts change addflows direction on map

I have a leaflet map in R, and am using the leaflet.minicharts function addFlows to show direction of product from origin to destination. This causes some confusion on the links from China to the United States. Leaflet defaults to showing the…
Ralph Asher
  • 192
  • 9