feat(falukant): render houses with 3D models
Some checks failed
Deploy to production / deploy (push) Failing after 1m17s
Some checks failed
Deploy to production / deploy (push) Failing after 1m17s
This commit is contained in:
15
frontend/src/utils/falukantHouseModels.js
Normal file
15
frontend/src/utils/falukantHouseModels.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const HOUSE_MODELS = Object.freeze({
|
||||
'Unter der Brücke': 'under_bridge',
|
||||
'Strohhütte': 'straw_hut',
|
||||
Holzhaus: 'wooden_house',
|
||||
Hinterhofzimmer: 'backyard_room',
|
||||
'Kleines Familienhaus': 'family_house',
|
||||
Stadthaus: 'townhouse',
|
||||
Villa: 'villa',
|
||||
Herrenhaus: 'mansion',
|
||||
Schloss: 'castle',
|
||||
});
|
||||
|
||||
export function getFalukantHouseModel(houseType) {
|
||||
return HOUSE_MODELS[houseType?.labelTr] || 'under_bridge';
|
||||
}
|
||||
Reference in New Issue
Block a user