reduce hiding distance for popups

This commit is contained in:
vcoppe
2024-10-01 14:18:23 +02:00
parent 11934e5825
commit 572d206c2c
2 changed files with 2 additions and 2 deletions

View File

@@ -409,7 +409,7 @@ export class GPXLayer {
if (waypoint) {
let marker = this.markers[waypoint._data.index];
if (marker) {
if (this.map.project(marker.getLngLat()).dist(this.map.project(e.lngLat)) > 100) {
if (this.map.project(marker.getLngLat()).dist(this.map.project(e.lngLat)) > 60) {
this.hideWaypointPopup();
}
} else {