Unverified Commit dd64dbae authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

do not calculate markers on past journeys

parent 6cbd9c67
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -2793,13 +2793,16 @@ sub startup {
			my @extra_station_coordinates
			  = map { [ $_->{latlon}, $_->{name} ] } @extra_stations;

			my @now_coordinates = map {
			my @now_coordinates;
			if ( $opt{with_now_markers} ) {
				@now_coordinates = map {
					[
						$_->{now_latlon},
						$_->{train_type} . ' '
						  . ( $_->{train_line} // $_->{train_no} )
					]
				} @journeys;
			}

			my @station_pairs;
			my @polylines;
+6 −3
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ sub profile {
	if ( $status->{checked_in} ) {
		$map_data = $self->journeys_to_map_data(
			journeys         => [$status],
			with_now_markers => 1,
		);
	}

@@ -507,6 +508,7 @@ sub user_status {
	if ( $status->{checked_in} ) {
		$map_data = $self->journeys_to_map_data(
			journeys         => [$status],
			with_now_markers => 1,
		);
	}

@@ -601,6 +603,7 @@ sub status_card {
	if ( $status->{checked_in} ) {
		$map_data = $self->journeys_to_map_data(
			journeys         => [$status],
			with_now_markers => 1,
		);
	}

+6 −4
Original line number Diff line number Diff line
@@ -372,6 +372,7 @@ sub homepage {
				$map_data = $self->journeys_to_map_data(
					journeys         => [$status],
					show_full_route  => 1,
					with_now_markers => 1,
				);
			}
			my $journey_visibility
@@ -463,6 +464,7 @@ sub status_card {
			$map_data = $self->journeys_to_map_data(
				journeys         => [$status],
				show_full_route  => 1,
				with_now_markers => 1,
			);
		}
		my $journey_visibility