79801736

Date: 2025-10-27 11:04:25
Score: 2
Natty:
Report link

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 :(

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): :(
  • RegEx Blacklisted phrase (1): I get this error
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: d3LTa7