fix map
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m41s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m41s
This commit is contained in:
parent
5f12042f2f
commit
5998a56e98
1 changed files with 8 additions and 2 deletions
|
|
@ -26,13 +26,19 @@
|
|||
html: `
|
||||
<div>
|
||||
<span style="background-color: #eee; padding: 2px;">
|
||||
{{ loc.route_id }} to {{ loc.headsign }}
|
||||
{{ loc.route_id }}
|
||||
</span>
|
||||
</div>`,
|
||||
className: 'text-label'
|
||||
});
|
||||
var marker = L.marker([{{loc.lat}}, {{loc.lng}}], {icon: icon}).addTo(map);
|
||||
marker.bindPopup("{{ loc.route_id }}")
|
||||
marker.bindPopup(`
|
||||
<div>
|
||||
<span style="padding: 2px;">
|
||||
{{ loc.route_id }} to {{ loc.headsign }}
|
||||
</span>
|
||||
</div>
|
||||
`)
|
||||
}
|
||||
{% endfor %}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue