Skip to main content

All Questions

2 votes
1 answer
1k views

R Shiny with Leaflet - change color of marker after click

I am developing a Shiny app that shows a Leaflet map with markers. The markers are clickable and I collect the IDs of the clicked markers. But I also want to change the color of a clicked marker. When ...
Mario's user avatar
  • 2,551
5 votes
1 answer
1k views

R leaflet - Add a new marker on the map with the popup already opened

I have a shiny app that displays a leaflet map. One of the functionalities of the app allows users to add a new geographic marker on the map. However, I would like to make the popup of such marker ...
nd091680's user avatar
  • 605
0 votes
0 answers
172 views

Display different markers depending on a selectInput field in Shiny

I am trying to display markers on a map, which appearance would depend on a selectInput. The global idea is that the user can click on different locations on a map, searching for an ideal spot. ...
Doc Martin's's user avatar
0 votes
1 answer
312 views

Is there any function to separete the marker click on shiny leflet

I have plotted some marker point according to my dataset[lang, lat,asset_id]. The objective is to, when clicking on the marker points, input$layput_marker_click should return the corresponding ...
Dark Star's user avatar
0 votes
0 answers
321 views

Issues for rendering Leaflet markers in shiny app with Google Chrome and Mozilla

I would like to highlight an issue I am experiencing with a Leaflet map embedded inside a shiny app. I have to display almost 1.200 markers with a custom icon. Some of these markers are grouped in ...
nd091680's user avatar
  • 605
0 votes
1 answer
643 views

Click on marker on map to show 2 ggplot chart on R shiny

I am new to R shiny. I am able to show 1 line chart upon clicking on the marker on the map. However, I would like to show 2 line charts together, one on top of another at the side of the map, upon ...
Joyce's user avatar
  • 1
0 votes
0 answers
326 views

Selecting markers based on characteristics in R - Leaflet - Shiny

I am writing a Leaflet map in R and integrating it with shiny. I have three questions to ask and the code will be at the bottom with the problems highlighted: On this map, I have random markers, each ...
user avatar
3 votes
1 answer
660 views

R Shiny Leaflet Marker Zoom Issues

I want to be able to double click on a custom marker and have the map recenter and zoom. Im not sure if it should be doing it automatically and just isnt or if i need a special code. Below is my ...
Veronica Agne's user avatar
3 votes
0 answers
322 views

How to mask number on marker cluster in R leaflet

output$countPlot <- renderLeaflet({ leaflet(cleanData) %>% addTiles() %>% addCircleMarkers(lng =~longitude+rnorm(1,0,0.0001), lat = ~latitude+rnorm(1, 0, 0.0001), clusterOptions = ...
user7891984's user avatar
8 votes
3 answers
5k views

Remove specific leaflet Markers in R shiny.

I have a layer of CircleMarkers and I am trying to remove only the markers that have a certain layerId. The id's for these circle markers are in a dataframe. Below is a simple example: Suppose I ...
DS501's user avatar
  • 133