Closed benmbutler closed 2 months ago
I have the same bug; since I updated the developer version, every time I add polygons to the mapbox_proxy() they don´t appear anymore.
Thanks to you both- I will fix ASAP!
I've got this working now - there were two separate bugs:
filter
argument at the layer level, which was preventing any layer from being added in a proxy session. I'm glad you caught that!paint
array was empty. I've taken care of this, all should now be working!Brilliant, thanks Kyle!
Hi Kyle,
Loving mapgl so far and the material from your workshops! Thanks so much for all the hard work on it.
I've been playing with mapboxgl_proxy in a shiny app I'm that building, and came across a couple of (what I think are) bugs. Here's a reprex to help explain:
The app should behave in the following way: When changing the selectInput, the data gets filtered to the selected polygon, the map gets cleared, and the newly selected polygon along with its label gets shown.
When running this app on the latest CRAN release, it loads fine. However, when changing the selectInput, the "chosen_polygon" fill layer gets cleared and updated fine, but the "chosen_polygon_label" only gets removed and does not show up for the new polygon.
When running this app on the latest development version from github, the "chosen_polygon" and "chosen_polygon_label" both get cleared but neither the polygon nor the label show up.
I'm using an intermediary selected_polygon_reactive() in this example because in my actual app I'm retrieving data from a database in response to a selectInput, and therefore don't load all the data I need into the app on first load. Therefore I can't use the filtering functionality that might otherwise be an option.
Any help would be much appreciated! Thanks in advance