diff --git a/app/plot_app/leaflet.py b/app/plot_app/leaflet.py index 3a94ff4b..8c9b8226 100644 --- a/app/plot_app/leaflet.py +++ b/app/plot_app/leaflet.py @@ -41,7 +41,7 @@ def rgb_colors(flight_mode): for i in range(len(pos_lon)): curr_t = pos_t[i] if (curr_t - last_t) / 1e6 > minimum_interval_s: - pos_datas.append([pos_lat[i], pos_lon[i]]) + pos_datas.append([float(pos_lat[i]), float(pos_lon[i])]) last_t = curr_t while current_flight_mode_idx < len(flight_mode_changes) - 1 and \ flight_mode_changes[current_flight_mode_idx][0] <= curr_t: