I can't find the way to hide all opened marker popups or even check marker popup state.
How to hide all opened marker popups in mapbox-gl?
Does this answer your question? How to close all popups programmatically in mapbox gl? –
Perspiratory
I would think getPopup().isOpen()
would allow you to check state, and getPopup().remove()
(ran while iterating over all of your stored markers in some array) would accomplish what you need here.
© 2022 - 2024 — McMap. All rights reserved.