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

@@ -136,7 +136,7 @@ export class OverpassLayer {
maybeHidePopup(e: any) {
let poi = get(overpassPopupPOI);
if (poi && this.map.project([poi.lon, poi.lat]).dist(this.map.project(e.lngLat)) > 100) {
if (poi && this.map.project([poi.lon, poi.lat]).dist(this.map.project(e.lngLat)) > 60) {
this.hideWaypointPopup();
}
}