improve map bubles
This commit is contained in:
parent
4f3ea5db20
commit
f2107c9715
@ -4,8 +4,7 @@ Twisted>=16.3.0
|
|||||||
dmr_utils3>=0.1.19
|
dmr_utils3>=0.1.19
|
||||||
configparser>=3.0.0
|
configparser>=3.0.0
|
||||||
aprslib>=0.6.42
|
aprslib>=0.6.42
|
||||||
traceback
|
|
||||||
pynmea2
|
pynmea2
|
||||||
maidenhead
|
maidenhead
|
||||||
flask
|
flask
|
||||||
smtplib
|
folium
|
||||||
|
@ -143,7 +143,7 @@ def view_map():
|
|||||||
user_lat = -user_lat
|
user_lat = -user_lat
|
||||||
if 'W' in user_coord['lon']:
|
if 'W' in user_coord['lon']:
|
||||||
user_lon = -user_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_()
|
return folium_map._repr_html_()
|
||||||
@app.route('/map/')
|
@app.route('/map/')
|
||||||
def map():
|
def map():
|
||||||
|
Loading…
Reference in New Issue
Block a user