1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 04:49:37 +02:00

feat: add OverpassViewSet and implement osmTagToEmoji function; update requirements and aria-labels

This commit is contained in:
Sean Morley 2025-01-15 15:39:21 -05:00
parent 0588555707
commit 62efa2478e
6 changed files with 512 additions and 5 deletions

View file

@ -347,3 +347,120 @@ export let themes = [
{ name: 'aestheticDark', label: 'Aesthetic Dark' },
{ name: 'northernLights', label: 'Northern Lights' }
];
export function osmTagToEmoji(tag: string) {
switch (tag) {
case 'camp_site':
return '🏕️';
case 'slipway':
return '🛳️';
case 'playground':
return '🛝';
case 'viewpoint':
return '👀';
case 'cape':
return '🏞️';
case 'beach':
return '🏖️';
case 'park':
return '🌳';
case 'museum':
return '🏛️';
case 'theme_park':
return '🎢';
case 'nature_reserve':
return '🌲';
case 'memorial':
return '🕊️';
case 'monument':
return '🗿';
case 'wood':
return '🌲';
case 'zoo':
return '🦁';
case 'attraction':
return '🎡';
case 'ruins':
return '🏚️';
case 'bay':
return '🌊';
case 'hotel':
return '🏨';
case 'motel':
return '🏩';
case 'pub':
return '🍺';
case 'restaurant':
return '🍽️';
case 'cafe':
return '☕';
case 'bakery':
return '🥐';
case 'archaeological_site':
return '🏺';
case 'lighthouse':
return '🗼';
case 'tree':
return '🌳';
case 'cliff':
return '⛰️';
case 'water':
return '💧';
case 'fishing':
return '🎣';
case 'golf_course':
return '⛳';
case 'swimming_pool':
return '🏊';
case 'stadium':
return '🏟️';
case 'cave_entrance':
return '🕳️';
case 'anchor':
return '⚓';
case 'garden':
return '🌼';
case 'disc_golf_course':
return '🥏';
case 'natural':
return '🌿';
case 'ice_rink':
return '⛸️';
case 'horse_riding':
return '🐎';
case 'wreck':
return '🚢';
case 'water_park':
return '💦';
case 'picnic_site':
return '🧺';
case 'axe_throwing':
return '🪓';
case 'fort':
return '🏰';
case 'amusement_arcade':
return '🕹️';
case 'tepee':
return '🏕️';
case 'track':
return '🏃';
case 'trampoline_park':
return '🤸';
case 'dojo':
return '🥋';
case 'tree_stump':
return '🪵';
case 'peak':
return '🏔️';
case 'fitness_centre':
return '🏋️';
case 'artwork':
return '🎨';
case 'fast_food':
return '🍔';
case 'ice_cream':
return '🍦';
default:
return '📍'; // Default placeholder emoji for unknown tags
}
}