Skip to main content

Questions tagged [r-leaflet]

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

r-leaflet
0 votes
1 answer
53 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 ...
PhDavey's user avatar
  • 416
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 ...
fluegelrad's user avatar
0 votes
1 answer
37 views

The position of map (leaflet) not updating from dropdown user input R

I have a global variable called map_status, selectedDropdownData. mapStatus <<- list(map_lng = -110.9747, map_lat = 32.2226, map_zoom = 12) selectedDropdownData <<- NULL I currently ...
Kirthana's user avatar
1 vote
1 answer
37 views

Click on a subregion and autoscale zoom to fit the subregion

I'm developing an R Shiny app and want to have an interactive map, where the user clicks on a region (or subregion), and the map automatically zooms and scales the view to fit the selected region. ...
pseudotsuga's user avatar
0 votes
1 answer
47 views

Problem with deploying shiny app/leaflet to shinyapps.io

I am trying to deploy a very simple app to Shinyapps.io. My app is the following, and the structure of the folder is mines_peru/app.R (the file below) and mines_peru/data/clean_active_mines.RDS. ...
catatau's user avatar
  • 55
1 vote
0 answers
30 views

Render Leaflet Map Layers Asynchronously in R Shiny

I am trying to reduce the loading time of a Shiny App that renders a map via the Leaflet package utilizing large sf object datasets. Much of the slow loading time is attributable to the actual ...
AJJJ's user avatar
  • 11
0 votes
0 answers
47 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 ...
Victor Cz's user avatar
1 vote
1 answer
48 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(...
Gautam's user avatar
  • 2,703
0 votes
0 answers
25 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
WaxLyrical's user avatar
0 votes
0 answers
36 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 -...
zakmn moh's user avatar
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 ...
Nick Curran's user avatar
0 votes
0 answers
29 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 ...
mdc690's user avatar
  • 60
1 vote
1 answer
40 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 ...
HighSE's user avatar
  • 13
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,...
Kinza Rehman's user avatar
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() %>% ...
mzkrc's user avatar
  • 287

15 30 50 per page
1
2 3 4 5
41