Relative Content

Tag Archive for rshinyleaflet

R Shiny Leaflet: 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. This is essentially the same question as posted here, except in that solution, the solution involved manually-provided ‘Zoom’ levels for each state; I’m looking for a way to automate this (I have hundreds of subregions that vary dramatically in size).

Leaflet circle markers are not adhering to my colorfactor palette? (R)

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 correspond to the levels I used in the domain. They seem to be colored randomly.

R: Ignoring prepended content; prependContent can’t be used in a Shiny render call

I have a shiny app with lots of points that need to be selected to display data in a table. I love the functionality displayed in this question here. Unfortunately implementing this in shiny produces the error message Ignoring prepended content; prependContent can't be used in a Shiny render call. My shiny app is rather large and requires internal data so I will post the example from the above linked question. If someone can get this working in shiny I can adapt it to my app.