Commit 44fdcb6b authored by Benoit Fabrèges's avatar Benoit Fabrèges

Adding pin to openstreetmap location

parent db396753
Pipeline #6041 passed with stages
in 1 minute and 58 seconds
......@@ -54,7 +54,8 @@ def json_mesolist_to_rst(url):
rst += " "*8 + f":{key}: {', '.join(map(str, val))}\n"
if 'fullDescription' in meso.keys():
rst += "\n" + " "*8 + f"{meso['fullDescription']}\n\n"
rst += "\n" + " "*8 + f"{meso['fullDescription']}\n"
rst += "\n"
return rst
......
......@@ -35,7 +35,7 @@
{% if meso['location'] %}
<img src="../theme/img/position_full.png" alt="Position" />
{% if meso['gpscoordinates'] %}
<a href="https://www.openstreetmap.org/#map=16/{{meso['gpscoordinates'][0]}}/{{meso['gpscoordinates'][1]}}">{{ meso['location'] }}</a>
<a href="https://www.openstreetmap.org/?mlat={{meso['gpscoordinates'][0]}}&mlon={{meso['gpscoordinates'][1]}}&zoom=16">{{ meso['location'] }}</a>
{% else %}
{{ meso['location'] }}
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment