{% comment %} Template to render a map form field. Assumes that the first key in the questiongroup is of type "map" (a hidden field holding the coordinates) {% endcomment %} {% load i18n static %} {% load floppyforms %} {% load list_to_columns %}
{% if config.label %} <{{ config.label_tag|default:"h4" }} class="{% if config.label_class %}{{ config.label_class }}{% endif %}"> {{ config.label }} {% endif %} {% include "form/helptext.html" with helptext=config.helptext helptext_length=config.helptext_length %}
{% blocktrans with button_search='' button_pin='' button_gps='' %}

Choose map layers, using the dropdown menus on top of the map image. You can overlay the selected map layers by moving the slider.

Zoom into your area / location by using one of the following methods:

Add points on the map by using one of the following methods:

Use the edit and delete buttons to move points, delete single points or delete all points from the map

Click on the “number” button to display a list of all points. Here you can also delete single points.

{% endblocktrans %}
{{ formset.management_form }} {% include "form/errors.html" with errors=formset.non_form_errors %} {% for qg_form in formset.forms %}
{% trans "List of all points on the map:" %}
{% trans "Delete all points from the map" %}

{% trans "Are you sure you want to delete all the points from the map? This cannot be undone." %}

{% trans "Delete" %}
{% trans 'Please enter the coordinates in the field below. The coordinates must be in decimal degrees of format "Latitude, Longitude", eg. 46.9526, 7.4352. Use the link below to convert from degrees, minutes and seconds to decimal degrees.' as msg %} {% include "form/helptext.html" with helptext=msg %}
{% trans "Map layers:" %}
{% include 'parts/map_layers_select.html' with select_name='map-layers-0' selected='googlehybrid'%}
{% include 'parts/map_layers_select.html' with select_name='map-layers-1' selected='osm'%}
{% for field in qg_form.visible_fields %} {% with template=config.templates|get_by_keyword:field.name options=config.options|get_by_keyword:field.name %} {% if template %} {% formrow field using template %} {% else %} {% formrow field using "form/question/default.html" %} {% endif %} {% endwith %} {% endfor %} {% for field in qg_form.hidden_fields %}{% formfield field %}{% endfor %}
{% endfor %}