{# @description Where a sample was taken, or a measurement made: a map with the point marked, and the coordinates as recorded. The page sets has_map in its context so MapLibre is loaded. #} {# @prop location:object | description:"A point with x (longitude) and y (latitude) in WGS 84, or nothing." #} {# @prop elevation:text | description:"Metres above sea level." #} {# @prop uncertainty:text | description:"Metres." #} {# @prop title:text | default:"Location" | description:"The heading." #} {# @prop label:text | description:"The map's accessible name. Defaults to where the sample was taken." #} {# @prop empty:text | description:"What to say when there is no location. With none given, the panel is left out." #} {# @prop edit_url:text | description:"The editing page for the location, for someone who may edit it." #} {# @prop id:text | description:"The panel's id, which the header's coordinates link to." #} {% load i18n %} {% 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 %}