improve map bubles

This commit is contained in:
KF7EEL 2021-02-26 21:12:25 -08:00
parent 4f3ea5db20
commit f2107c9715
2 changed files with 2 additions and 3 deletions

View File

@ -4,8 +4,7 @@ Twisted>=16.3.0
dmr_utils3>=0.1.19
configparser>=3.0.0
aprslib>=0.6.42
traceback
pynmea2
maidenhead
flask
smtplib
folium

View File

@ -143,7 +143,7 @@ def view_map():
user_lat = -user_lat
if 'W' in user_coord['lon']:
user_lon = -user_lon
folium.Marker([user_lat, user_lon], popup="<i>" + str(user_coord['call']) + "</i>", tooltip=str(user_coord['call'])).add_to(folium_map)
folium.Marker([user_lat, user_lon], popup="<i>" + '<strong>' + str(user_coord['call']) + '</strong>' + '\n' + user_coord['time'] + "</i>", tooltip=str(user_coord['call'])).add_to(folium_map)
return folium_map._repr_html_()
@app.route('/map/')
def map():