Skip to content

ENH: add Folium interactive flight trajectory map (#963) - #1132

Draft
thatrandomasiandev wants to merge 1 commit into
RocketPy-Team:developfrom
thatrandomasiandev:enh/963-folium-trajectory-map
Draft

ENH: add Folium interactive flight trajectory map (#963)#1132
thatrandomasiandev wants to merge 1 commit into
RocketPy-Team:developfrom
thatrandomasiandev:enh/963-folium-trajectory-map

Conversation

@thatrandomasiandev

Copy link
Copy Markdown

Summary

  • Add Flight.plots.trajectory_on_map() using optional Folium to render an interactive HTML map of the ground track with launch and landing markers.
  • Introduce a maps optional dependency extra (folium) and include it in rocketpy[all].
  • Add unit tests that mock Folium when absent and exercise real HTML export when Folium is installed.

Fixes #963

Test plan

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest tests/unit/test_flight_trajectory_map.py
  • Smoke: flight.plots.trajectory_on_map(filename="traj.html") opens in a browser with path + markers

@thatrandomasiandev
thatrandomasiandev requested a review from a team as a code owner August 11, 2026 01:46
@Gui-FernandesBR
Gui-FernandesBR force-pushed the enh/963-folium-trajectory-map branch from bf9ce35 to 2f52628 Compare August 15, 2026 01:47
@Gui-FernandesBR Gui-FernandesBR linked an issue Aug 15, 2026 that may be closed by this pull request
2 tasks
@Gui-FernandesBR
Gui-FernandesBR marked this pull request as draft August 15, 2026 01:47
@Gui-FernandesBR

Copy link
Copy Markdown
Member

There are many other ways of implementing this one. We need first to reflect on that.

@codecov

codecov Bot commented Aug 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 83.55%. Comparing base (e0ff281) to head (2f52628).
⚠️ Report is 65 commits behind head on develop.

Files with missing lines Patch % Lines
rocketpy/plots/flight_plots.py 96.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1132      +/-   ##
===========================================
+ Coverage    82.18%   83.55%   +1.37%     
===========================================
  Files          122      130       +8     
  Lines        16355    17111     +756     
===========================================
+ Hits         13441    14297     +856     
+ Misses        2914     2814     -100     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Folium support for interactive trajectory maps

2 participants