-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
map.remove() does not remove Popups #7744
Comments
Thanks for reporting this! I can confirm with a minimal repro here. |
Thanks for doing the repro for me, I was in a rush when I logged this yesterday. |
That was fast, thanks @andycalder! Any idea when this will be available in a prod release? |
@davidgilbertson Our next release will be a beta that's scheduled for January 23rd with the final release a week later on the 30th. You can use the |
That's excellent, thanks. I'm in no rush. |
mapbox-gl-js version: 0.52.0
browser: Chrome 71
Steps to Trigger Behavior
new Popup
map.remove()
Expected Behavior
The popup should be removed
Actual Behavior
The popup remains behind even after the map is removed.
Seems like
map.remove()
is removing themapboxgl-canvas-container
div and themapboxgl-control-container
div and some other things, but missing themapboxgl-popup
div, which is a sibling tomapboxgl-canvas-container
(and of course it's not just the div...)For a workaround, I'm tracking and manually removing any popups that I add with
popup.remove()
The text was updated successfully, but these errors were encountered: