Stop fetching timing info for unselected flights.

The flight will be redrawn when it's selected. Don't bother fetching
this info for flights that aren't selected.
This commit is contained in:
Dan Albert 2022-03-03 01:24:32 -08:00
parent 8d806def5b
commit 89b987fc87

View File

@ -714,11 +714,13 @@ class Waypoint {
}); });
}); });
this.description(false).then((description) => if (this.flight.selected) {
marker.bindTooltip(description, { this.description(false).then((description) =>
permanent: zoom >= SHOW_WAYPOINT_INFO_AT_ZOOM, marker.bindTooltip(description, {
}) permanent: zoom >= SHOW_WAYPOINT_INFO_AT_ZOOM,
); })
);
}
return marker; return marker;
} }