diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts
index 6a08c93361..8d04ef78a5 100644
--- a/Customizations/AllKnownLayouts.ts
+++ b/Customizations/AllKnownLayouts.ts
@@ -15,6 +15,7 @@ import {GhostBikes} from "./Layouts/GhostBikes";
import {CustomLayoutFromJSON} from "./JSON/CustomLayoutFromJSON";
import * as bookcases from "../assets/themes/bookcases/Bookcases.json";
import * as aed from "../assets/themes/aed/aed.json";
+import * as toilets from "../assets/themes/toilets/toilets.json";
export class AllKnownLayouts {
@@ -28,6 +29,7 @@ export class AllKnownLayouts {
new GhostBikes(),
CustomLayoutFromJSON.LayoutFromJSON(bookcases),
CustomLayoutFromJSON.LayoutFromJSON(aed),
+ CustomLayoutFromJSON.LayoutFromJSON(toilets),
new MetaMap(),
new StreetWidth(),
diff --git a/Customizations/Layers/Toilets.ts b/Customizations/Layers/Toilets.ts
deleted file mode 100644
index af41d6cfd2..0000000000
--- a/Customizations/Layers/Toilets.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-import {LayerDefinition} from "../LayerDefinition";
-import {FixedUiElement} from "../../UI/Base/FixedUiElement";
-import L from "leaflet";
-import {Tag} from "../../Logic/TagsFilter";
-
-export class Toilets extends LayerDefinition{
-
- constructor() {
- super("toilets");
-
- this.name="toilet";
- this.newElementTags = [new Tag( "amenity", "toilets")];
- this.icon = "./assets/toilets.svg";
- this.overpassFilter = new Tag("amenity","toilets");
- this.minzoom = 13;
- this.questions = [Quests.hasFee,
- Quests.toiletsWheelChairs,
- Quests.toiletsChangingTable,
- Quests.toiletsChangingTableLocation,
- Quests.toiletsPosition];
-
- this.style = function(tags){
- if(tags.wheelchair == "yes"){
-
- return {icon : new L.icon({
- iconUrl: "assets/wheelchair.svg",
- iconSize: [40, 40]
- })};
- }
- return {icon : new L.icon({
- iconUrl: "assets/toilets.svg",
- iconSize: [40, 40]
- })};
- }
-
- this.elementsToShow = [
- new FixedUiElement("Toiletten"),
-
- new TagMappingOptions({
- key: "access",
- mapping: {
- yes: "Toegankelijk",
- no: "Niet toegankelijk",
- private: "Niet toegankelijk",
- customers: "Enkel voor klanten",
- }
- }),
-
- new TagMappingOptions({
- key: "fee",
- mapping: {
- yes: "Betalend",
- no: "Gratis",
- ["0"]: "Gratis"
- },
- template: "Betalend, men vraagt {fee}"
- }),
-
- new TagMappingOptions({
- key: "toilets:position",
- mapping: {
- seated: 'Gewone zittoiletten',
- urinal: 'Een enkele urinoir',
- urinals: 'Urinoirs',
- ['urinals;seated']: "Urinoirs en gewone toiletten",
- ['seated;urinals']: "Urinoirs en gewone toiletten",
-
- }
- }),
-
- new TagMappingOptions({
- key: "wheelchair",
- mapping: {
- yes: "Rolstoeltoegankelijk",
- no: "Niet Rolstoeltoegankelijk",
- limited: "Beperkt rolstoeltoegankelijk",
-
- }
- }),
- ];
- }
-
-
-}
\ No newline at end of file
diff --git a/Customizations/Layouts/Toilets.ts b/Customizations/Layouts/Toilets.ts
deleted file mode 100644
index 1598c0f5a6..0000000000
--- a/Customizations/Layouts/Toilets.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import {Layout} from "../Layout";
-import * as Layer from "../Layers/Toilets";
-
-export class Toilets extends Layout{
- constructor() {
- super( "toilets",
- ["en"],
- "Open Toilet Map",
- [new Layer.Toilets()],
- 12,
- 51.2,
- 3.2,
-
-
- "
Open Toilet Map
\n" +
- "\n" +
- "
Help us to create the most complete map about all the toilets in the world, based on openStreetMap." +
- "One can answer questions here, which help users all over the world to find an accessible toilet, close to them.