Django: want to use loop.counter to assign letter for Google Maps marker -
I have a variable number of items, somewhere between 0 and 20
I want to list them with Google static maps, showing a little "A" for the first one, one for "B" and so on.
I'm a newbie using Google App Engine so I'm limited to '0.96 (unless I do not use different patches, which I do not want to do because I'm a newbie. )
and markers = {% result%} {{item.latitude}}, {{item.longitude}} {% if not forloop.last%} | {% Endif%} {% endfor%} To provide a list of red markers working properly
and markers = {in the results %} {Item.latitude}} for item, {{item.longitude}}, {{forloop.counter0}} {% if not liquid .last%} | {% Endif%} {% endfor%} I get 0-9 on the map.
For now, I have set the results down to 10. I would like to go back to 20 Is there a way to use loop-quaker and slice ({{alpha_list | slice: "loop_counter"}}? I was struggling with different rewards, {}} loop_ counter around and without having to work it
Thank you!
, You can use it.
With the extension of something like ...
{% cycle 'A' 'b '...' alphabetical as% 'z' and markers = {%} For item in result {{item.latitude}}, {{item.longitude}}, {% cycle alphabet%} {% if not forloop.last%} | {% endif%} {% endfor% }
Comments
Post a Comment