Skip to content

Commit 55bfc1c

Browse files
committed
added vendor, second sort by name on map list
1 parent 326d464 commit 55bfc1c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

assets/db/vendormap.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ Outdoor Wilderness Fabrics,https://www.owfinc.com/,"Caldwell, ID",US,43.66944,-1
3030
Ripstop.pl,https://www.ripstop.pl/,"Poznań, PL",PL,52.40589,16.921680,
3131
Hofman Outdoor Gear Supply,https://hofmanoutdoorgearsupply.ca/,"Portage la Prairie, Manitoba",CA,49.97331,-98.29440,
3232
Shelby Outdoor,https://www.shelbyoutdoor.com/,"Oulu, Finland",FI,65.02769,25.4702384,
33-
Thelin Outdoor,https://thelinoutdoor.se,"Lidköping, Sweden",SE,58.4994758,13.1574837,
33+
Thelin Outdoor,https://thelinoutdoor.se,"Lidköping, Sweden",SE,58.4994758,13.1574837,
34+
Aktivstoffe.de,https://www.aktivstoffe.de/,"Quakenbrück, DE",DE,52.670650,7.923957,

assets/js/map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ async function getFlagEmoji( array, data ) {
4242
}
4343

4444
function drawMarkers( data ) {
45-
data.sort((a,b) => a.country.localeCompare(b.country));
45+
data.sort((a,b) => a.country.localeCompare(b.country) || a.name.localeCompare(b.name));
4646

4747
data.forEach(marker => {
4848
let star = (marker.friend) ? "⭐️" : "";
4949
L.marker([marker.lat, marker.long], {
50-
icon: marker.friend == true ? greenIcon : blueIcon
50+
icon: marker.friend == true ? yellowIcon : blueIcon
5151
}).addTo(map)
5252
.bindPopup(`<a href="${marker.website}" target="_blank">${star + " " + marker.name}</a>`)
5353

map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<div class="inner">
6969
<!-- map.js insert -->
7070
<div id="map"></div>
71-
<p class="major align-center">⭐️ LearnMYOG Highly Recommended</p>
71+
<p class="major align-center">⭐️ LearnMYOG Recommended All-Stars</p>
7272
<!-- map.js list insert -->
7373
<ul id="store-shelf" class="align-left">
7474
</ul>

0 commit comments

Comments
 (0)