From aed55c77c58d74879dd9acedbab8965233d47aa3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 3 Jun 2022 09:08:31 -0700 Subject: Selected device direction (fix #924) --- modern/src/map/MapPositions.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'modern/src/map/MapPositions.js') diff --git a/modern/src/map/MapPositions.js b/modern/src/map/MapPositions.js index 4b53255a..070ec0c8 100644 --- a/modern/src/map/MapPositions.js +++ b/modern/src/map/MapPositions.js @@ -101,8 +101,6 @@ const MapPositions = ({ positions, onClick, showStatus }) => { map.on('click', clusters, onClusterClick); return () => { - Array.from(map.getContainer().getElementsByClassName('maplibregl-popup')).forEach((el) => el.remove()); - map.off('mouseenter', id, onMouseEnter); map.off('mouseleave', id, onMouseLeave); map.off('mouseenter', clusters, onMouseEnter); -- cgit v1.2.3