From 2f92bba41a106776323ba989d0b13621383f4dfb Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Wed, 27 Jul 2022 14:57:35 +0200 Subject: [PATCH] Added icons for rooms --- assets/layers/indoors/indoors.json | 53 +++++++-- assets/layers/indoors/license_info.json | 52 ++++++++ assets/layers/indoors/room_auditorium.svg | 137 ++++++++++++++++++++++ assets/layers/indoors/room_conference.svg | 118 +++++++++++++++++++ assets/layers/indoors/room_storage.svg | 94 +++++++++++++++ assets/layers/indoors/room_toilet.svg | 132 +++++++++++++++++++++ assets/layers/indoors/room_toilets.svg | 132 +++++++++++++++++++++ 7 files changed, 711 insertions(+), 7 deletions(-) create mode 100644 assets/layers/indoors/license_info.json create mode 100644 assets/layers/indoors/room_auditorium.svg create mode 100644 assets/layers/indoors/room_conference.svg create mode 100644 assets/layers/indoors/room_storage.svg create mode 100644 assets/layers/indoors/room_toilet.svg create mode 100644 assets/layers/indoors/room_toilets.svg diff --git a/assets/layers/indoors/indoors.json b/assets/layers/indoors/indoors.json index 38b1cdd9b..bae08331a 100644 --- a/assets/layers/indoors/indoors.json +++ b/assets/layers/indoors/indoors.json @@ -30,27 +30,39 @@ "mappings": [ { "if": "indoor=room", - "then": "Indoor Room {name}" + "then": { + "en": "Indoor Room {name}" + } }, { "if": "indoor=area", - "then": "Indoor Area {name}" + "then": { + "en": "Indoor Area {name}" + } }, { "if": "indoor=wall", - "then": "Indoor Wall {name}" + "then": { + "en": "Indoor Wall {name}" + } }, { "if": "indoor=corridor", - "then": "Indoor Corridor {name}" + "then": { + "en": "Indoor Corridor {name}" + } }, { "if": "indoor=door", - "then": "Indoor Door {name}" + "then": { + "en": "Indoor Door {name}" + } }, { "if": "indoor=level", - "then": "Indoor Level {name}" + "then": { + "en": "Indoor Level {name}" + } } ] }, @@ -96,7 +108,34 @@ "location": [ "point", "centroid" - ] + ], + "icon": { + "render": null, + "condition": "indoor=room", + "mappings": [ + { + "if": "room=auditorium", + "then": "./assets/layers/indoors/room_auditorium.svg" + }, + { + "if": "room=conference", + "then": "./assets/layers/indoors/room_conference.svg" + }, + { + "if": "room=storage", + "then": "./assets/layers/indoors/room_storage.svg" + }, + { + "if": "room=toilet", + "then": "./assets/layers/indoors/room_toilet.svg" + }, + { + "if": "room=toilets", + "then": "./assets/layers/indoors/room_toilets.svg" + } + ] + }, + "iconSize": "15,15, center" } ] } \ No newline at end of file diff --git a/assets/layers/indoors/license_info.json b/assets/layers/indoors/license_info.json new file mode 100644 index 000000000..ba436bce0 --- /dev/null +++ b/assets/layers/indoors/license_info.json @@ -0,0 +1,52 @@ +[ + { + "path": "room_auditorium.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_auditorium.svg" + ] + }, + { + "path": "room_conference.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_conference.svg" + ] + }, + { + "path": "room_storage.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_storage.svg" + ] + }, + { + "path": "room_toilet.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_toilet.svg" + ] + }, + { + "path": "room_toilets.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_toilets.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/indoors/room_auditorium.svg b/assets/layers/indoors/room_auditorium.svg new file mode 100644 index 000000000..7c0853943 --- /dev/null +++ b/assets/layers/indoors/room_auditorium.svg @@ -0,0 +1,137 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_conference.svg b/assets/layers/indoors/room_conference.svg new file mode 100644 index 000000000..5ee49fb50 --- /dev/null +++ b/assets/layers/indoors/room_conference.svg @@ -0,0 +1,118 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_storage.svg b/assets/layers/indoors/room_storage.svg new file mode 100644 index 000000000..2c6c28308 --- /dev/null +++ b/assets/layers/indoors/room_storage.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_toilet.svg b/assets/layers/indoors/room_toilet.svg new file mode 100644 index 000000000..e41fc9954 --- /dev/null +++ b/assets/layers/indoors/room_toilet.svg @@ -0,0 +1,132 @@ + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_toilets.svg b/assets/layers/indoors/room_toilets.svg new file mode 100644 index 000000000..e41fc9954 --- /dev/null +++ b/assets/layers/indoors/room_toilets.svg @@ -0,0 +1,132 @@ + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + +