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 {
}); });
}); });
if (this.flight.selected) {
this.description(false).then((description) => this.description(false).then((description) =>
marker.bindTooltip(description, { marker.bindTooltip(description, {
permanent: zoom >= SHOW_WAYPOINT_INFO_AT_ZOOM, permanent: zoom >= SHOW_WAYPOINT_INFO_AT_ZOOM,
}) })
); );
}
return marker; return marker;
} }