diff --git a/src/sharedData/visualization/components/Visualization.js b/src/sharedData/visualization/components/Visualization.js index 96ed1e3cd..aa783e203 100644 --- a/src/sharedData/visualization/components/Visualization.js +++ b/src/sharedData/visualization/components/Visualization.js @@ -278,7 +278,10 @@ const MapboxLayer = props => { if (!map || !popupData?.coordinates) { return; } - popup.setLngLat(popupData?.coordinates).addTo(map); + popup.setLngLat(popupData?.coordinates); + if (!popup.isOpen()) { + popup.addTo(map); + } }, [popup, popupData?.coordinates, map]); useEffect(() => {