Thanks for your reply! I tried it myself, but it doesn't work :(
I get this error message:
A mapping key must be a quoted string, a number, a name, or an expression enclosed in parentheses (unexpected token “operator” of value “%”.
Here's what I did:
<div class="map">
{{ ux_map(
center : [47.65, 1.50],
zoom: 7,
markers = [],
{% for signalement in signalements %}
{% set markers = markers|merge([{
'position' : [signalement.structure.latitude, signalement.structure.longitude],
'title' : signalement.structure.nom
}])
%}
{% endfor %}
attributes: {
class: 'mapimap',
style: 'height: 35rem; width: 30rem',
})
}}
</div>
Or maybe I didn't understand the reply correctly or used it wrong :(