Skip to content

Commit

Permalink
imporve maps link text
Browse files Browse the repository at this point in the history
  • Loading branch information
gil committed Oct 9, 2024
1 parent 9fb13ca commit c24271f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ const formatLocation = (location, googleMapsLink, osmLink, appleMapsLink) => {
if (googleMapsLink || osmLink || appleMapsLink) {
result += ' ';
if (googleMapsLink) {
result += `🌍 <a href="${googleMapsLink}">Google Maps</a>`;
result += `🌍 <a href="${googleMapsLink}">Google</a>`;
}

// OpenStreetMap Link
if (osmLink && (googleMapsLink || appleMapsLink)) {
result += ' | ';
}
if (osmLink) {
result += `🕵️ <a href="${osmLink}">OpenStreetMap</a>`;
result += `🕵️ <a href="${osmLink}">OSM</a>`;
}

// AppleMaps Link
if (appleMapsLink && (googleMapsLink || osmLink)) {
result += ' | ';
}
if (appleMapsLink) {
result += ` <a href="${appleMapsLink}">Apple Maps</a>`;
result += `🍏 <a href="${appleMapsLink}">Apple</a>`;
}

result += '\n';
Expand Down

0 comments on commit c24271f

Please sign in to comment.