feat(SW-325): added pois to the list and dynamic map
This commit is contained in:
21
components/Maps/Markers/utils.ts
Normal file
21
components/Maps/Markers/utils.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { IconName } from "@/types/components/icon"
|
||||
import { PointOfInterestCategory } from "@/types/hotel"
|
||||
|
||||
/* 2024-09-18: At the moment, the icons for the different categories is unknown.
|
||||
This will be handled later. */
|
||||
export function getCategoryIconName(category?: PointOfInterestCategory | null) {
|
||||
switch (category) {
|
||||
case "Transportations":
|
||||
return IconName.Train
|
||||
case "Shopping":
|
||||
return IconName.Shopping
|
||||
case "Museum":
|
||||
return IconName.Museum
|
||||
case "Tourist":
|
||||
return IconName.Cultural
|
||||
case "Restaurant":
|
||||
return IconName.Restaurant
|
||||
default:
|
||||
return IconName.StarFilled
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user