Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear_layer() doesnt clear popups #29

Closed
ews-grmunjal opened this issue Jul 30, 2024 · 2 comments
Closed

clear_layer() doesnt clear popups #29

ews-grmunjal opened this issue Jul 30, 2024 · 2 comments

Comments

@ews-grmunjal
Copy link

Hi Kyle

in shiny, when using clear_layer("x") with mapboxgl_proxy... the layer x seems to clear but the popup does not.

What I was trying to do was:

-1- render a base map with renderMapboxgl()
-2- select a field from a dropdown menu and add_circle_layer using that field with mapboxgl_proxy(). Field is numeric, circle size is based on field.

if i switch to a different numeric field in the dropdown...the old popups stay but read "undefined"

@walkerke
Copy link
Owner

Do you have a minimal reproducible example I could try out?

@ews-grmunjal
Copy link
Author

Thanks for the prompt response. Unfortunately, the whole thing has gotten quite extensive and not straightforward to share. A small reproducible example I tried to make does seem to work fine. In the larger example, I found issue was somewhere related to missing values so just changing NA to "Missing" before mapgl calls seemed to make that one work too.

I was able to make a reproducible small example of a second issue I was having with missings. I'll close this one in favor of that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants