{% load i18n %} {% comment %} Reusable map location picker component. Renders a MapLibre map. Address search is provided by AddressSearchControl (address_search_control.js), which is added to the map programmatically. Clicking the map places a draggable marker that writes back to id_lat / id_lon. Required context: form (must have lat and lon fields) JS initialisation: call window.initLocationPickerMap() after injecting this HTML into the DOM (handled by location_edit_modals.html). {% endcomment %} {# Hidden lat/lon inputs – submitted with the form; JS writes to them. #}
{{ form.lat }} {{ form.lon }}

{% translate "Position géographique" %} ({% translate "facultatif" %})
{# Map container – AddressSearchControl renders the search box inside the map. #}
{% translate "Cliquez sur la carte pour positionner le marqueur, ou glissez-le pour l'ajuster." %}