emoji pour le suivi de thème
This commit is contained in:
parent
7166eb646a
commit
ed9e5b6b47
5 changed files with 101 additions and 21 deletions
|
@ -1924,18 +1924,48 @@ final class AdminController extends AbstractController
|
|||
|
||||
public static function getTagEmoji(string $mainTag): string
|
||||
{
|
||||
// Si c'est un tag clé=valeur, on garde le match existant
|
||||
if (str_contains($mainTag, '=')) {
|
||||
return match ($mainTag) {
|
||||
'amenity=restaurant', 'amenity=bar', 'amenity=cafe' => '🍽️',
|
||||
'amenity=townhall', 'amenity=community_centre' => '🏛️',
|
||||
'amenity=bank', 'amenity=atm' => '🏦',
|
||||
'amenity=pharmacy', 'amenity=hospital', 'amenity=clinic' => '🏥',
|
||||
'amenity=school', 'amenity=kindergarten', 'amenity=university' => '🎓',
|
||||
'amenity=library', 'amenity=museum', 'amenity=artwork' => '📚',
|
||||
'shop=car_repair', 'shop=car_parts', 'shop=car_wash' => '🚗',
|
||||
'amenity=post_office' => '📮',
|
||||
'shop=convenience' => '🏪',
|
||||
'shop=supermarket' => '🛒',
|
||||
'shop=clothes' => '👕',
|
||||
default => '🏷️',
|
||||
};
|
||||
}
|
||||
// Sinon, on regarde si c'est un tag principal simple
|
||||
return match ($mainTag) {
|
||||
'amenity=restaurant', 'amenity=bar', 'amenity=cafe' => '🍽️',
|
||||
'amenity=townhall', 'amenity=community_centre' => '🏛️',
|
||||
'amenity=bank', 'amenity=atm' => '🏦',
|
||||
'amenity=pharmacy', 'amenity=hospital', 'amenity=clinic' => '🏥',
|
||||
'amenity=school', 'amenity=kindergarten', 'amenity=university' => '🎓',
|
||||
'amenity=library', 'amenity=museum', 'amenity=artwork' => '📚',
|
||||
'shop=car_repair', 'shop=car_parts', 'shop=car_wash' => '🚗',
|
||||
'amenity=post_office' => '📮',
|
||||
'shop=convenience' => '🏪',
|
||||
'shop=supermarket' => '🛒',
|
||||
'shop=clothes' => '👕',
|
||||
'bicycle_parking' => '🚲',
|
||||
'building' => '🏢',
|
||||
'email' => '📧',
|
||||
'fire_hydrant' => '🚒',
|
||||
'charging_station' => '⚡',
|
||||
'toilets' => '🚻',
|
||||
'bus_stop' => '🚌',
|
||||
'defibrillator' => '❤️🩹',
|
||||
'camera' => '📷',
|
||||
'recycling' => '♻️',
|
||||
'substation' => '🏭',
|
||||
'laboratory' => '🧪',
|
||||
'school' => '🏫',
|
||||
'police' => '👮',
|
||||
'healthcare' => '🏥',
|
||||
'advertising_board' => '🪧',
|
||||
'bench' => '🪑',
|
||||
'waste_basket' => '🗑️',
|
||||
'street_lamp' => '💡',
|
||||
'drinking_water' => '🚰',
|
||||
'tree' => '🌳',
|
||||
'places' => '📍',
|
||||
'power_pole' => '⚡',
|
||||
default => '🏷️',
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue