Don't close point popup when hovering over a polyline

This commit is contained in:
Eugene Burmakin 2024-12-16 14:27:45 +01:00
parent cddbace10e
commit 41dfbfc1f4
3 changed files with 13 additions and 2 deletions

View file

@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
# [Unreleased]
### Fixed
- A point popup is no longer closes when hovering over a polyline. #536
### Changed
- Months and years navigation is moved to a map panel on the right side of the map.
- List of visited cities is now being shown in a map panel on the right side of the map.
# 0.19.7 - 2024-12-11
### Fixed

View file

@ -925,7 +925,7 @@ export default class extends Controller {
${photo.type === 'video' ? '🎥 Video' : '📷 Photo'}
</div>
`;
marker.bindPopup(popupContent);
marker.bindPopup(popupContent, { autoClose: false });
this.photoMarkers.addLayer(marker);
}

View file

@ -9,7 +9,7 @@ export function createMarkersArray(markersData, userSettings) {
const popupContent = createPopupContent(marker, userSettings.timezone, userSettings.distanceUnit);
let markerColor = marker[5] < 0 ? "orange" : "blue";
return L.circleMarker([lat, lon], { radius: 4, color: markerColor }).bindPopup(popupContent);
return L.circleMarker([lat, lon], { radius: 4, color: markerColor }).bindPopup(popupContent, { autoClose: false });
});
}
}