refactor: typo

This commit is contained in:
moanos [he/him] 2025-01-06 10:21:00 +01:00
parent 0a73b5099e
commit 2864d27a7f

View File

@ -52,17 +52,17 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for rescue_orgnization in rescue_organizations %} {% for rescue_organization in rescue_organizations %}
{% if rescue_orgnization.location %} {% if rescue_organization.location %}
// create the popup // create the popup
const popup_{{ forloop.counter }} = new maplibregl.Popup({offset: 25}).setHTML(`{% include "fellchensammlung/partials/partial-adoption-notice-minimal.html" %}`); const popup_{{ forloop.counter }} = new maplibregl.Popup({offset: 25}).setHTML(`{% include "fellchensammlung/partials/partial-rescue-organization.html" %}`);
// create DOM element for the marker // create DOM element for the marker
const el_{{ forloop.counter }} = document.createElement('div'); const el_{{ forloop.counter }} = document.createElement('div');
el_{{ forloop.counter }}.id = 'marker_{{ forloop.counter }}'; el_{{ forloop.counter }}.id = 'marker_{{ forloop.counter }}';
el_{{ forloop.counter }}.classList.add('animal-shelter-marker', 'marker'); el_{{ forloop.counter }}.classList.add('animal-shelter-marker', 'marker');
const location_popup_{{ forloop.counter }} = [{{ rescue_orgnization.location.longitude | pointdecimal }}, {{ rescue_orgnization.location.latitude | pointdecimal }}]; const location_popup_{{ forloop.counter }} = [{{ rescue_organization.location.longitude | pointdecimal }}, {{ rescue_organization.location.latitude | pointdecimal }}];
// create the marker // create the marker
new maplibregl.Marker({element: el_{{ forloop.counter }}}) new maplibregl.Marker({element: el_{{ forloop.counter }}})
.setLngLat(location_popup_{{ forloop.counter }}) .setLngLat(location_popup_{{ forloop.counter }})