Skip to content

Commit

Permalink
Added some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiimy committed Sep 29, 2024
1 parent d59742d commit cd6606c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Front_End/Testing_heat_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@
]
)

fig.update_traces(
hovertemplate='<b>Coordinates:</b> (%{lon:.2f}, %{lat:.2f})<br>' + # Longitude, Latitude
'<b>AQI Value:</b> %{marker.color:.2f}<br>' + # The value you're displaying (AQI Value in this case)
'<extra></extra>', # Removes the "trace" label from the hover box
)


# Save the map as an HTML file
pio.write_html(fig, '../map_with_buttons.html')

Expand Down
2 changes: 1 addition & 1 deletion map_with_buttons.html

Large diffs are not rendered by default.

0 comments on commit cd6606c

Please sign in to comment.