Skip to content

Commit 65d9b3d

Browse files
committed
Update latest location data
1 parent f2262a4 commit 65d9b3d

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

fantasysixtysix/locations.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@ export const locations = [
33
{ timestamp: "2022-05-15", lat: 47.22788, lng: -79.96519 },
44
{ timestamp: "2022-05-16", lat: 47.22794, lng: -79.96509 },
55
{ timestamp: "2022-05-17", lat: 47.22773, lng: -79.96554 },
6-
{ timestamp: "2022-05-18", lat: 47.228, lng: -79.96514 },
6+
{ timestamp: "2022-05-18", lat: 47.22800, lng: -79.96514 },
77
{ timestamp: "2022-05-19", lat: 46.31801, lng: -79.46781 },
88
{ timestamp: "2022-05-23", lat: 47.39419, lng: -80.68654 },
9-
{ timestamp: "2022-05-24", lat: 47.39456, lng: -80.6644 },
9+
{ timestamp: "2022-05-24", lat: 47.39456, lng: -80.66440 },
1010
{ timestamp: "2022-05-25", lat: 47.39461, lng: -80.66455 },
11-
{ timestamp: "2022-05-26", lat: 47.39467, lng: -80.6646 },
11+
{ timestamp: "2022-05-26", lat: 47.39467, lng: -80.66460 },
12+
{ timestamp: "2022-05-27", lat: 47.39460, lng: -80.66446 },
13+
{ timestamp: "2022-05-28", lat: 47.39462, lng: -80.66464 },
14+
{ timestamp: "2022-05-29", lat: 47.31729, lng: -80.70282 },
15+
{ timestamp: "2022-05-30", lat: 47.28580, lng: -80.70805 },
16+
{ timestamp: "2022-05-31", lat: 47.26955, lng: -80.69917 },
17+
{ timestamp: "2022-06-01", lat: 47.26950, lng: -80.69906 },
18+
{ timestamp: "2022-06-02", lat: 47.26946, lng: -80.69908 },
1219
];

fantasysixtysix/trip.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ import { locations } from "./locations.js";
55
import { getTilesets, buildPath } from "./utils.js";
66

77
const tilesets = getTilesets();
8-
8+
const lastLocation = locations[locations.length - 1];
9+
console.log(lastLocation)
910
const map = L.map("map-container", {
1011
zoomControl: false,
1112
layers: Object.values(tilesets),
12-
}).setView([47.22797, -79.9651], 13);
13+
}).setView([lastLocation.lat, lastLocation.lng], 11);
1314

1415
const [markers, path] = buildPath(locations);
1516
markers.map((marker) => marker.addTo(map));
1617
path.addTo(map);
1718

1819
L.control.zoom({ position: "bottomright" }).addTo(map);
1920
L.control.layers(tilesets).addTo(map);
21+
tilesets["Street"].addTo(map);
2022
L.control
2123
.slider({
2224
position: "topleft",
@@ -28,3 +30,4 @@ L.control
2830
map,
2931
})
3032
.addTo(map);
33+

0 commit comments

Comments
 (0)