Skip to content

Commit 8d030a2

Browse files
committed
Add updates
1 parent 65d9b3d commit 8d030a2

File tree

4 files changed

+113
-5
lines changed

4 files changed

+113
-5
lines changed

fantasysixtysix/locations.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ export const locations = [
1616
{ timestamp: "2022-05-31", lat: 47.26955, lng: -80.69917 },
1717
{ timestamp: "2022-06-01", lat: 47.26950, lng: -80.69906 },
1818
{ timestamp: "2022-06-02", lat: 47.26946, lng: -80.69908 },
19+
{ timestamp: "2022-06-03", lat: 47.25248, lng: -80.67647 },
20+
{ timestamp: "2022-06-04", lat: 47.24542, lng: -80.66021 },
21+
{ timestamp: "2022-06-05", lat: 47.24540, lng: -80.66028 },
22+
{ timestamp: "2022-06-06", lat: 47.24535, lng: -80.66033 },
23+
{ timestamp: "2022-06-07", lat: 47.24531, lng: -80.66031 },
24+
{ timestamp: "2022-06-08", lat: 47.16374, lng: -80.59473 },
1925
];
26+

fantasysixtysix/trip.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import "./slider.js";
44
import { locations } from "./locations.js";
5+
import { updates } from "./updates.js";
56
import { getTilesets, buildPath } from "./utils.js";
67

78
const tilesets = getTilesets();
@@ -12,7 +13,7 @@ const map = L.map("map-container", {
1213
layers: Object.values(tilesets),
1314
}).setView([lastLocation.lat, lastLocation.lng], 11);
1415

15-
const [markers, path] = buildPath(locations);
16+
const [markers, path] = buildPath(locations, updates);
1617
markers.map((marker) => marker.addTo(map));
1718
path.addTo(map);
1819

fantasysixtysix/updates.js

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
export const updates = [
2+
{
3+
timestamp: "2022-05-19",
4+
text: `
5+
<h2>Week 1</h2>
6+
<p>
7+
As seems to be a recurring theme on recent trips, this one's not going according to plan.
8+
On Saturday we were turned around by OPP at Elk Lake 'coz the hwy was closed due to a forest fire to the west.
9+
</p>
10+
<p>
11+
My friend Alan was en route from Thunder Bay so we arranged to meet on hwy 11 and discuss alternatives.
12+
We put in at McLean L on the infamous Red Squirrel Road and paddled up into Anima Nipissing L
13+
where we set up camp on a large rock outcrop overlooking the lake.
14+
Along the shore the low cliff below our tents is adorned with ancient pictographs.
15+
</p>
16+
<p>
17+
Alan stayed until Wednesday when Dan & I accompanied him back to the road.
18+
During that time we enjoyed each other's company, reminiscing, laughing, even crying, and failing yet again to solve the worlds problems.
19+
We spent hours watching suckers work their way up the creek beside camp, watching the clouds come and go, huddling under the rain tarp, and eating!
20+
</p>
21+
<p>
22+
Alan brought food for all, was the chief cook and never failed to amaze us at his culinary creations.
23+
Pancakes with Rum stands out as an example destined to become a weekly staple!
24+
All in all it was a stellar reminder that Al is one of the nicest people in the world to spend a relaxing time with.
25+
He regaled us with stories of his explorations of the Wabikimi area near his home as well as other parts of the world,
26+
growing up in Newfoundland and spoke at length about his growing family.
27+
I was so sorry to see him depart.
28+
</p>
29+
<p>
30+
I also discovered I can't physically fit a month of food and my gear in my little canoe.
31+
Three weeks seems to be the absolute max. Live & learn....
32+
</p>
33+
<p>
34+
Right now I'm camped at home for a couple of days. Gonna repack, regroup and head out for Smoothwater Monday.
35+
With the weather moving in, long weekend campsite competition and more importantly the threat of ranger danger
36+
(we're travelling without permits.... Shhhhh!) we decided to wait until Monday when things should quieten down in there.
37+
Dan and I are planning a shortened version of our Smith Lake trip and then I'll have just
38+
over two weeks to move through the high country and down to Alex's for mid-June.
39+
</p>
40+
<p>
41+
Weather this week was mixed. Mostly cool, but not unpleasant.
42+
A few rain showers, but nothing that created any issues.
43+
We were mostly well sheltered from the wind and bugs only made their feeble presence known a few times.
44+
That's all for this week.
45+
</p>
46+
<p>
47+
Cheers,
48+
<br />
49+
Paul
50+
</p>
51+
`
52+
},
53+
{
54+
timestamp: "2022-05-27",
55+
text: `
56+
<h2>Week 2</h2>
57+
<p>Nice easy paddle against a diminishing light headwind. Camped on Smoothwater.</p>
58+
<p>
59+
Day 11 saw us heading to Smith L (10am) but 1st portage gave us grief.
60+
Landing was marked in wrong place but short search located the actual trail(85m).
61+
Upper end was choked with a raft of floating (& sunken) logs.
62+
It took some time to brush out the trail & clear a path for canoes through the logs.
63+
</p>
64+
<p>
65+
Reached the second portage (we think) around 1 & ate lunch before scouting the trail.
66+
After over 2 hrs of thrashing we had failed to locate any song of a trail.
67+
Getting late in the day, & unprepared for a 2km uphill bushwhack, we reluctantly
68+
turned back & set up camp on Smoothwater again. Day 12 we set out again for Smith L,
69+
this time via Smith Creek, based on info I rec'd via satellite.
70+
At the limit of navigability, where the creek ends a long tumble over steep, rocky drops I found a tree blaze on river left!
71+
</>
72+
`
73+
},
74+
{
75+
timestamp: "2022-06-05",
76+
text: `
77+
<h2>Week 3<h2>
78+
<p>A brutally hard week of traveling! </p>
79+
<p>
80+
Day 15 saw Dan & I climb cliff on Marina L for view over it and Smoothwater.
81+
Park rangers portaged right through our camp without checking for the permits we didn’t have! YEEHAW!!
82+
</p>
83+
<p> Day 16 I left Dan and moved south. 10km of walking, 6km hauling 55, 65 & 75 lb loads! Buggiest camp ever! </p>
84+
<p> Day 17 was steep uphill on trapper trail. 4 loads!!! Exhausting! <p
85+
<p> Day 18 took 8 hrs to move 3km! 4 very steep carries on 2 portages. Made it to Broken Pelvis Lake and took a couple days off. </p>
86+
<p> Day 19 in camp with rain & repairs. </p>
87+
<p> Day 20 hiked trail along Pilgrim Cr past Scarecrow Cut. Had conversation with a beaver. Beaverspeak sounds like mournful whalesong! </p>
88+
<p> Day 21 headed for Chivers L but only got to Horseshoe L. 9 hrs to go 3km! Afternoon t-storm delayed progress. Another big one in evening. </p>
89+
<p> Day 22 made it to Chivers Island! Showers & sun all day. Saw a full rainbow over the Mtn across the lake with both ends touching down IN the lake! Stunning! </p>
90+
<p> Day 23 relaxing in camp. Probably go for a hike this aft. </p>
91+
`
92+
}
93+
]

fantasysixtysix/utils.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,17 @@ export function getTilesets() {
3131
};
3232
}
3333

34-
export function buildPath(locations) {
35-
const markers = locations.map((loc) =>
36-
L.marker([loc.lat, loc.lng]).bindPopup(loc.timestamp)
37-
);
34+
export function buildPath(locations, updates) {
35+
const markers = locations.map((loc) => {
36+
const update = updates.find((update) => update.timestamp == loc.timestamp);
37+
const popupContent = `<h3>${loc.timestamp}</h3><div style="font-size:8pt">${
38+
update ? update.text : ""
39+
}</div>`;
40+
const popupOptions = {
41+
maxHeight: 225,
42+
};
43+
return L.marker([loc.lat, loc.lng]).bindPopup(popupContent, popupOptions);
44+
});
3845
const path = L.polyline(locations.map((loc) => [loc.lat, loc.lng]));
3946
return [markers, path];
4047
}

0 commit comments

Comments
 (0)