190 fillColor: 'yellow', |
194 fillColor: 'yellow', |
191 fillOpacity: 1, |
195 fillOpacity: 1, |
192 title: "{{halt['ref']}} {{halt['name']}}", |
196 title: "{{halt['ref']}} {{halt['name']}}", |
193 _my_bus_stop_url: "/stop/{{halt['ref']}}", |
197 _my_bus_stop_url: "/stop/{{halt['ref']}}", |
194 }).addTo(mymap); |
198 }).addTo(mymap); |
195 popupmsg = "<h3><a href='/stop/{{halt['ref']}}'><span class='bus_stop_ref'>{{halt['ref']}}</span> {{halt['name']}}</a></h3>"; |
199 popupmsg = "<span class='popup'><h3><a href='/stop/{{halt['ref']}}'><span class='bus_stop_ref'>{{halt['ref']}}</span> {{halt['name']}}</a></h3>"; |
196 |
200 |
197 {% if halt['arrival_time'] != halt['departure_time'] %} |
201 {% if halt['arrival_time'] != halt['departure_time'] %} |
198 popupmsg += "<p><ul><li>Saapuu: {{halt['arrival_time']}}</li><li>Lähtee: {{halt['departure_time']}}</li></ul></p>"; |
202 popupmsg += "<p><ul><li>Saapuu: {{halt['arrival_time']}}</li><li>Lähtee: {{halt['departure_time']}}</li></ul></p></span>"; |
199 {% else %} |
203 {% else %} |
200 popupmsg += "<p><ul><li>Pysähtyy: {{halt['arrival_time']}}</li></ul></p>"; |
204 popupmsg += "<p><ul><li>Pysähtyy: {{halt['arrival_time']}}</li></ul></p></span>"; |
201 {% endif %} |
205 {% endif %} |
202 marker.bindPopup(popupmsg); |
206 marker.bindPopup(popupmsg); |
203 {% endfor %} |
207 {% endfor %} |
204 {% endfor %} |
208 {% endfor %} |
205 </script> |
209 </script> |