Show map of past trips

This commit is contained in:
Edward Betts 2024-01-14 12:17:22 +00:00
parent bd61b1bccd
commit 36b5d38274
4 changed files with 43 additions and 26 deletions

View file

@ -1,13 +1,13 @@
function emoji_icon(emoji) {
return L.divIcon({
className: 'custom-div-icon',
html: "<div style='font-size: 24px;'>🚉</div>",
html: "<div style='font-size: 24px;'>" + emoji + "</div>",
iconSize: [30, 42],
});
}
var stationIcon = emoji_icon("🚉");
var airportIcon = emoji_icon("✈️<");
var airportIcon = emoji_icon("✈️");
function build_map(map_id, coordinates, routes) {
// Initialize the map