Fix map jumping issue
Browse files- ui/map_viewer.py +1 -1
- ui/results_display.py +3 -1
ui/map_viewer.py
CHANGED
|
@@ -431,5 +431,5 @@ def render_results_map(scenarios: list, selected_scenario: int = 0):
|
|
| 431 |
icon=folium.Icon(color='purple', icon='info-sign')
|
| 432 |
).add_to(m)
|
| 433 |
|
| 434 |
-
# Display map
|
| 435 |
folium_static(m, width=700, height=500)
|
|
|
|
| 431 |
icon=folium.Icon(color='purple', icon='info-sign')
|
| 432 |
).add_to(m)
|
| 433 |
|
| 434 |
+
# Display map using static version to prevent jumping
|
| 435 |
folium_static(m, width=700, height=500)
|
ui/results_display.py
CHANGED
|
@@ -192,7 +192,9 @@ def render_scenario_tabs(scenarios: list):
|
|
| 192 |
|
| 193 |
with col1:
|
| 194 |
st.markdown("**Scenario Visualization**")
|
| 195 |
-
|
|
|
|
|
|
|
| 196 |
|
| 197 |
with col2:
|
| 198 |
render_scenario_details(selected_scenario, selected_idx + 1)
|
|
|
|
| 192 |
|
| 193 |
with col1:
|
| 194 |
st.markdown("**Scenario Visualization**")
|
| 195 |
+
# Add container to prevent layout shift
|
| 196 |
+
with st.container():
|
| 197 |
+
render_results_map(scenarios, selected_idx)
|
| 198 |
|
| 199 |
with col2:
|
| 200 |
render_scenario_details(selected_scenario, selected_idx + 1)
|