Merge branch 'master' into develop

This commit is contained in:
Pieter Vander Vennet 2023-02-07 02:35:22 +01:00
commit 3a2fc3cefd
10 changed files with 139 additions and 39 deletions

View file

@ -27,9 +27,9 @@ export class GeolocationControl extends VariableUiElement {
const timeDiff = (new Date().getTime() - lastClick.getTime()) / 1000 const timeDiff = (new Date().getTime() - lastClick.getTime()) / 1000
return timeDiff <= 3 return timeDiff <= 3
}) })
const geolocationState = geolocationHandler.geolocationState const geolocationState = geolocationHandler?.geolocationState
super( super(
geolocationState.permission.map( geolocationState?.permission?.map(
(permission) => { (permission) => {
if (permission === "denied") { if (permission === "denied") {
return Svg.location_refused_svg() return Svg.location_refused_svg()

View file

@ -13,12 +13,10 @@ export default class RightControls extends Combine {
state: MapState & { featurePipeline: FeaturePipeline }, state: MapState & { featurePipeline: FeaturePipeline },
geolocationHandler: GeoLocationHandler geolocationHandler: GeoLocationHandler
) { ) {
const geolocationButton = new Toggle( const geolocationButton = Toggle.If(state.featureSwitchGeolocation, () =>
new MapControlButton(new GeolocationControl(geolocationHandler, state), { new MapControlButton(new GeolocationControl(geolocationHandler, state), {
dontStyle: true, dontStyle: true,
}).SetClass("p-1"), }).SetClass("p-1")
undefined,
state.featureSwitchGeolocation
) )
const plus = new MapControlButton(Svg.plus_svg()).onClick(() => { const plus = new MapControlButton(Svg.plus_svg()).onClick(() => {

View file

@ -1,7 +1,7 @@
{ {
"contributors": [ "contributors": [
{ {
"commits": 5005, "commits": 5008,
"contributor": "Pieter Vander Vennet" "contributor": "Pieter Vander Vennet"
}, },
{ {

View file

@ -2,16 +2,19 @@
"id": "parking_ticket_machine", "id": "parking_ticket_machine",
"name": { "name": {
"en": "Parking Ticket Machines", "en": "Parking Ticket Machines",
"nl": "Parkeerkaartautomaten" "nl": "Parkeerkaartautomaten",
"de": "Parkscheinautomaten"
}, },
"description": { "description": {
"en": "Layer with parking ticket machines to pay for parking.", "en": "Layer with parking ticket machines to pay for parking.",
"nl": "Laag met parkeerkaartautomaten om voor parkeren te betalen." "nl": "Laag met parkeerkaartautomaten om voor parkeren te betalen.",
"de": "Ebene mit Parkscheinautomaten zum Bezahlen des Parkens."
}, },
"title": { "title": {
"render": { "render": {
"en": "Parking Ticket Machine", "en": "Parking Ticket Machine",
"nl": "Parkeerkaartautomaat" "nl": "Parkeerkaartautomaat",
"de": "Parkscheinautomat"
} }
}, },
"source": { "source": {
@ -31,7 +34,8 @@
], ],
"title": { "title": {
"en": "a parking ticket machine", "en": "a parking ticket machine",
"nl": "een parkeerkaartautomaat" "nl": "een parkeerkaartautomaat",
"de": "Ein Parkscheinautomat"
} }
} }
], ],
@ -44,26 +48,30 @@
"id": "ref", "id": "ref",
"question": { "question": {
"en": "What is the reference number of this parking ticket machine?", "en": "What is the reference number of this parking ticket machine?",
"nl": "Wat is het referentienummer van deze parkeerkaartautomaat?" "nl": "Wat is het referentienummer van deze parkeerkaartautomaat?",
"de": "Wie lautet die Referenznummer dieses Parkscheinautomaten?"
}, },
"freeform": { "freeform": {
"key": "ref", "key": "ref",
"type": "string", "type": "string",
"placeholder": { "placeholder": {
"en": "Reference number", "en": "Reference number",
"nl": "Referentienummer" "nl": "Referentienummer",
"de": "Referenznummer"
} }
}, },
"render": { "render": {
"en": "This parking ticket machine has the reference number {ref}", "en": "This parking ticket machine has the reference number {ref}",
"nl": "Deze parkeerkaartautomaat heeft het referentienummer {ref}" "nl": "Deze parkeerkaartautomaat heeft het referentienummer {ref}",
"de": "Dieser Parkscheinautomat hat die Referenznummer {ref}"
}, },
"mappings": [ "mappings": [
{ {
"if": "noref=yes", "if": "noref=yes",
"then": { "then": {
"en": "This parking ticket machine has no reference number", "en": "This parking ticket machine has no reference number",
"nl": "Deze parkeerkaartautomaat heeft geen referentienummer" "nl": "Deze parkeerkaartautomaat heeft geen referentienummer",
"de": "Dieser Parkscheinautomat hat keine Referenznummer"
} }
} }
] ]

View file

@ -1058,28 +1058,32 @@
"id": "access", "id": "access",
"question": { "question": {
"en": "Who can use this recycling facility?", "en": "Who can use this recycling facility?",
"nl": "Wie kan deze recyclingfaciliteit gebruiken?" "nl": "Wie kan deze recyclingfaciliteit gebruiken?",
"de": "Wer kann diese Recyclinganlage nutzen?"
}, },
"mappings": [ "mappings": [
{ {
"if": "access=yes", "if": "access=yes",
"then": { "then": {
"en": "Everyone can use this recycling facility", "en": "Everyone can use this recycling facility",
"nl": "Iedereen mag deze recyclingfaciliteit gebruiken" "nl": "Iedereen mag deze recyclingfaciliteit gebruiken",
"de": "Alle können diese Recyclinganlage nutzen"
} }
}, },
{ {
"if": "access=residents", "if": "access=residents",
"then": { "then": {
"en": "Only residents can use this recycling facility", "en": "Only residents can use this recycling facility",
"nl": "Enkel bewoners kunnen deze recyclingfaciliteit gebruiken" "nl": "Enkel bewoners kunnen deze recyclingfaciliteit gebruiken",
"de": "Nur Anwohnende können diese Recyclinganlage nutzen"
} }
}, },
{ {
"if": "access=private", "if": "access=private",
"then": { "then": {
"en": "This recycling facility is only for private use", "en": "This recycling facility is only for private use",
"nl": "Deze recyclingfaciliteit is alleen voor privégebruik" "nl": "Deze recyclingfaciliteit is alleen voor privégebruik",
"de": "Diese Recyclinganlage ist nur für den privaten Gebrauch bestimmt"
} }
} }
], ],
@ -1089,7 +1093,8 @@
}, },
"render": { "render": {
"en": "This recycling facility can be used by {access}", "en": "This recycling facility can be used by {access}",
"nl": "Deze recyclingfaciliteit kan gebruikt worden door {access}" "nl": "Deze recyclingfaciliteit kan gebruikt worden door {access}",
"de": "Diese Recyclinganlage kann von {access} genutzt werden"
} }
} }
], ],

View file

@ -69,19 +69,22 @@
"id": "type", "id": "type",
"description": "Mapping allowing to change between waste_disposal and recycling", "description": "Mapping allowing to change between waste_disposal and recycling",
"question": { "question": {
"en": "What kind of waste disposal bin is this?" "en": "What kind of waste disposal bin is this?",
"de": "Was für ein Abfalleimer ist das?"
}, },
"mappings": [ "mappings": [
{ {
"if": "amenity=waste_disposal", "if": "amenity=waste_disposal",
"then": { "then": {
"en": "This is a medium to large bin for disposal of (household) waste" "en": "This is a medium to large bin for disposal of (household) waste",
"de": "Dies ist ein mittelgroßer bis großer Behälter für die Entsorgung von (Haushalts-)Abfällen"
} }
}, },
{ {
"if": "amenity=recycling", "if": "amenity=recycling",
"then": { "then": {
"en": "This is actually a recycling container" "en": "This is actually a recycling container",
"de": "Dies ist eigentlich ein Recycling-Container"
}, },
"addExtraTags": [ "addExtraTags": [
"recycling_type=container" "recycling_type=container"

View file

@ -1234,7 +1234,8 @@
"question": { "question": {
"en": "what notes can you use to pay here?", "en": "what notes can you use to pay here?",
"nl": "Met welke bankbiljetten kan je hier betalen?", "nl": "Met welke bankbiljetten kan je hier betalen?",
"de": "Mit welchen Banknoten kann man hier bezahlen?" "de": "Mit welchen Banknoten kann man hier bezahlen?",
"es": "¿con qué billetes se puede pagar aquí?"
}, },
"multiAnswer": true, "multiAnswer": true,
"mappings": [ "mappings": [
@ -1244,7 +1245,8 @@
"then": { "then": {
"en": "5 euro notes are accepted", "en": "5 euro notes are accepted",
"nl": "Biljetten van 5 euro worden geaccepteerd", "nl": "Biljetten van 5 euro worden geaccepteerd",
"de": "5-Euro-Scheine werden angenommen" "de": "5-Euro-Scheine werden angenommen",
"es": "Se aceptan billetes de 5 euros"
} }
}, },
{ {
@ -1253,7 +1255,8 @@
"then": { "then": {
"en": "10 euro notes are accepted", "en": "10 euro notes are accepted",
"nl": "Biljetten van 10 euro worden geaccepteerd", "nl": "Biljetten van 10 euro worden geaccepteerd",
"de": "10-Euro-Scheine werden angenommen" "de": "10-Euro-Scheine werden angenommen",
"es": "Se aceptan billetes de 10 euros"
} }
}, },
{ {
@ -1262,7 +1265,8 @@
"then": { "then": {
"en": "20 euro notes are accepted", "en": "20 euro notes are accepted",
"nl": "Biljetten van 20 euro worden geaccepteerd", "nl": "Biljetten van 20 euro worden geaccepteerd",
"de": "20-Euro-Scheine werden angenommen" "de": "20-Euro-Scheine werden angenommen",
"es": "Se aceptan billetes de 20 euros"
} }
}, },
{ {
@ -1271,7 +1275,8 @@
"then": { "then": {
"en": "50 euro notes are accepted", "en": "50 euro notes are accepted",
"nl": "Biljetten van 50 euro worden geaccepteerd", "nl": "Biljetten van 50 euro worden geaccepteerd",
"de": "50-Euro-Scheine werden angenommen" "de": "50-Euro-Scheine werden angenommen",
"es": "Se aceptan billetes de 50 euros"
} }
}, },
{ {
@ -1280,7 +1285,8 @@
"then": { "then": {
"en": "100 euro notes are accepted", "en": "100 euro notes are accepted",
"nl": "Biljetten van 100 euro worden geaccepteerd", "nl": "Biljetten van 100 euro worden geaccepteerd",
"de": "100-Euro-Scheine werden angenommen" "de": "100-Euro-Scheine werden angenommen",
"es": "Se aceptan billetes de 100 euros"
} }
}, },
{ {
@ -1289,7 +1295,8 @@
"then": { "then": {
"en": "200 euro notes are accepted", "en": "200 euro notes are accepted",
"nl": "Biljetten van 200 euro worden geaccepteerd", "nl": "Biljetten van 200 euro worden geaccepteerd",
"de": "200-Euro-Scheine werden angenommen" "de": "200-Euro-Scheine werden angenommen",
"es": "Se aceptan billetes de 200 euros"
} }
}, },
{ {
@ -1298,7 +1305,8 @@
"then": { "then": {
"en": "500 euro notes are accepted", "en": "500 euro notes are accepted",
"nl": "Biljetten van 500 euro worden geaccepteerd", "nl": "Biljetten van 500 euro worden geaccepteerd",
"de": "500-Euro-Scheine werden angenommen" "de": "500-Euro-Scheine werden angenommen",
"es": "Se aceptan billetes de 500 euros"
} }
} }
] ]

View file

@ -84,6 +84,10 @@
"commits": 13, "commits": 13,
"contributor": "Joost" "contributor": "Joost"
}, },
{
"commits": 11,
"contributor": "mcliquid"
},
{ {
"commits": 11, "commits": 11,
"contributor": "Jiří Podhorecký" "contributor": "Jiří Podhorecký"
@ -104,10 +108,6 @@
"commits": 10, "commits": 10,
"contributor": "Irina" "contributor": "Irina"
}, },
{
"commits": 9,
"contributor": "mcliquid"
},
{ {
"commits": 9, "commits": 9,
"contributor": "Niels Madsen" "contributor": "Niels Madsen"
@ -240,6 +240,10 @@
"commits": 4, "commits": 4,
"contributor": "Jan Zabel" "contributor": "Jan Zabel"
}, },
{
"commits": 3,
"contributor": "gallegonovato"
},
{ {
"commits": 3, "commits": 3,
"contributor": "Ettore Atalan" "contributor": "Ettore Atalan"
@ -300,10 +304,6 @@
"commits": 2, "commits": 2,
"contributor": "multiflexi" "contributor": "multiflexi"
}, },
{
"commits": 2,
"contributor": "gallegonovato"
},
{ {
"commits": 2, "commits": 2,
"contributor": "Piotr Strebski" "contributor": "Piotr Strebski"

View file

@ -5862,6 +5862,32 @@
"render": "Stellplatz" "render": "Stellplatz"
} }
}, },
"parking_ticket_machine": {
"description": "Ebene mit Parkscheinautomaten zum Bezahlen des Parkens.",
"name": "Parkscheinautomaten",
"presets": {
"0": {
"title": "Ein Parkscheinautomat"
}
},
"tagRenderings": {
"ref": {
"freeform": {
"placeholder": "Referenznummer"
},
"mappings": {
"0": {
"then": "Dieser Parkscheinautomat hat keine Referenznummer"
}
},
"question": "Wie lautet die Referenznummer dieses Parkscheinautomaten?",
"render": "Dieser Parkscheinautomat hat die Referenznummer {ref}"
}
},
"title": {
"render": "Parkscheinautomat"
}
},
"pedestrian_path": { "pedestrian_path": {
"description": "Fußgängerwege, insbesondere für die Navigation in Gebäuden und die Aufnahme von Eingängen in diese Ebene", "description": "Fußgängerwege, insbesondere für die Navigation in Gebäuden und die Aufnahme von Eingängen in diese Ebene",
"name": "Fußgängerwege" "name": "Fußgängerwege"
@ -6520,6 +6546,21 @@
} }
}, },
"tagRenderings": { "tagRenderings": {
"access": {
"mappings": {
"0": {
"then": "Alle können diese Recyclinganlage nutzen"
},
"1": {
"then": "Nur Anwohnende können diese Recyclinganlage nutzen"
},
"2": {
"then": "Diese Recyclinganlage ist nur für den privaten Gebrauch bestimmt"
}
},
"question": "Wer kann diese Recyclinganlage nutzen?",
"render": "Diese Recyclinganlage kann von {access} genutzt werden"
},
"container-location": { "container-location": {
"mappings": { "mappings": {
"0": { "0": {
@ -8484,6 +8525,17 @@
} }
}, },
"question": "Wo befindet sich die Mülltonne?" "question": "Wo befindet sich die Mülltonne?"
},
"type": {
"mappings": {
"0": {
"then": "Dies ist ein mittelgroßer bis großer Behälter für die Entsorgung von (Haushalts-)Abfällen"
},
"1": {
"then": "Dies ist eigentlich ein Recycling-Container"
}
},
"question": "Was für ein Abfalleimer ist das?"
} }
}, },
"title": { "title": {

View file

@ -29,6 +29,32 @@
}, },
"question": "¿Qué monedas se pueden usar aquí para pagar?" "question": "¿Qué monedas se pueden usar aquí para pagar?"
}, },
"denominations-notes": {
"mappings": {
"0": {
"then": "Se aceptan billetes de 5 euros"
},
"1": {
"then": "Se aceptan billetes de 10 euros"
},
"2": {
"then": "Se aceptan billetes de 20 euros"
},
"3": {
"then": "Se aceptan billetes de 50 euros"
},
"4": {
"then": "Se aceptan billetes de 100 euros"
},
"5": {
"then": "Se aceptan billetes de 200 euros"
},
"6": {
"then": "Se aceptan billetes de 500 euros"
}
},
"question": "¿con qué billetes se puede pagar aquí?"
},
"description": { "description": {
"question": "¿Aún hay algo relevante que no ha encajado en las preguntas anteriores? Compártalo aquí.<br/><span style='font-size: small'>No repita datos ya expresados</span>" "question": "¿Aún hay algo relevante que no ha encajado en las preguntas anteriores? Compártalo aquí.<br/><span style='font-size: small'>No repita datos ya expresados</span>"
}, },