{% load i18n %} {% comment %} — where a sample was taken: a map with the point marked, and the coordinates as recorded. The map is drawn by `overview/includes/map_library.html`, which the page includes once in `extra_js` when it has a location to show. Attributes: location – a location with x (longitude) and y (latitude) in WGS 84, or nothing elevation – metres above sea level, or nothing uncertainty – metres, or nothing title – the card's title (default "Location") label – the map's accessible name (default: where the sample was taken) empty – what to say when there is no location; with none given, the card isn't shown class – extra classes on the card {% endcomment %} {% if location or empty %} {% if location %}
{% translate "Latitude" %}
{{ location.y|floatformat:5 }}
{% translate "Longitude" %}
{{ location.x|floatformat:5 }}
{% if elevation is not None and elevation != "" %}
{% translate "Elevation" %}
{{ elevation|floatformat:"-1" }} m
{% endif %} {% if uncertainty is not None and uncertainty != "" %}
{% translate "Uncertainty" %}
± {{ uncertainty|floatformat:"-1" }} m
{% endif %}

{% translate "Decimal degrees, WGS 84" %}

{% else %}

{{ empty }}

{% endif %}
{% endif %}