Skip to content

Commit

Permalink
Close marker popup on mouse leave
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatcherK committed Oct 18, 2023
1 parent 17557b8 commit 86062e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/components/hooks/DistrictMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const useMap = (location, layer, defaultOptions = {}) => {
const handleMarkerLeave = useCallback(() => {
map.on('mousemove',COLOURED_LAYER,onHover)
popup.remove()
markerPopup.remove()
map.setLayoutProperty('points', 'icon-size', 0.2)
}, [map, location])

Expand Down

0 comments on commit 86062e4

Please sign in to comment.