diff --git a/Customizations/Layers/BikePumps.ts b/Customizations/Layers/BikePumps.ts
index d53f6d87a..cae021b8a 100644
--- a/Customizations/Layers/BikePumps.ts
+++ b/Customizations/Layers/BikePumps.ts
@@ -1,10 +1,9 @@
import {LayerDefinition} from "../LayerDefinition";
import {And, Or, Tag} from "../../Logic/TagsFilter";
-import {OperatorTag} from "../Questions/OperatorTag";
import * as L from "leaflet";
-import { PumpManual } from "../Questions/PumpManual";
import FixedText from "../Questions/FixedText";
import {ImageCarouselWithUploadConstructor} from "../../UI/Image/ImageCarouselWithUpload";
+import {TagRenderingOptions} from "../TagRendering";
export class BikePumps extends LayerDefinition {
@@ -14,12 +13,21 @@ export class BikePumps extends LayerDefinition {
this.icon = "./assets/bike_pump.svg";
this.overpassFilter =
- new And([
- new Tag("amenity", "bicycle_repair_station"),
- new Tag("service:bicycle:pump", "yes"),
+ new Or([
+ new And([
+ new Tag("amenity", "compressed_air"),
+ new Tag("bicycle", "yes")
+ ]),
+ new And([
+ new Tag("amenity", "bicycle_repair_station"),
+ new Tag("service:bicycle:pump", "yes"),
+ /* new Or([
+ new Tag("service:bicycle:tools", ""),
+ new Tag("service:bicycle:tools", "no"),
+ ])*/
+ ]),
]);
-
this.newElementTags = [
new Tag("amenity", "bicycle_repair_station"),
new Tag("service:bicycle:pump", "yes"),
@@ -44,10 +52,51 @@ export class BikePumps extends LayerDefinition {
this.title = new FixedText("Pomp");
this.elementsToShow = [
new ImageCarouselWithUploadConstructor(),
- // new NameQuestion(),
- // new AccessTag(),
- new OperatorTag(),
- new PumpManual()
+
+ new TagRenderingOptions({
+ question: "What valves are supported?",
+ mappings: [
+ {
+ k: new Tag("valves", " sclaverand;schrader;dunlop"),
+ txt: "There is a default head, so Presta, Dunlop and Auto"
+ },
+ {k: new Tag("valves", "dunlop"), txt: "Only dunlop"},
+ {k: new Tag("valves", "sclaverand"), txt: "Only Sclaverand (also known as Dunlop)"},
+ {k: new Tag("valves", "auto"), txt: "Only auto"},
+ ],
+ freeform: {
+ key: "valves",
+ template: "Supported valves are $$$",
+ renderTemplate: "Supported valves are {valves}"
+ }
+ }),
+
+ new TagRenderingOptions({
+ question: "Who maintains this bicycle pump?",
+ freeform: {
+ key: "operator",
+ template: "Maintained by $$$",
+ renderTemplate: "Maintained by {operator}",
+ placeholder: "operator"
+ }
+ }),
+
+ new TagRenderingOptions({
+ question: "Does the pump have a pressure indicator or manometer?",
+ mappings: [
+ {k: new Tag("manometer", "yes"), txt: "Yes, there is a manometer"},
+ {k: new Tag("manometer", "yes"), txt: "No"}
+ ]
+
+ }),
+
+ /* new TagRenderingOptions({
+ question: "Is dit een manuele pomp?",
+ mappings: [
+ {k: new Tag("manual", "yes"), txt: "Manuele pomp"},
+ {k: new Tag("manual", "no"), txt: "Automatische pomp"}
+ ]
+ }) */
];
}
diff --git a/Customizations/Layers/GhostBike.ts b/Customizations/Layers/GhostBike.ts
index f88d2748d..83a44559c 100644
--- a/Customizations/Layers/GhostBike.ts
+++ b/Customizations/Layers/GhostBike.ts
@@ -18,6 +18,39 @@ export class GhostBike extends LayerDefinition {
" in the form of a white bicycle placed permanently near the accident location."),
new ImageCarouselWithUploadConstructor(),
+ new TagRenderingOptions({
+ question: "Whom is remembered by this ghost bike?" +
+ "" +
+ "
" +
+ "Please respect privacy - only fill out the name if it is widely published or marked on the cycle." +
+ "",
+ mappings: [{k: new Tag("noname", "yes"), txt: "There is no name marked on the bike"},],
+ freeform: {
+ key: "name",
+ extraTags: new Tag("noname", ""),
+ template: "$$$",
+ renderTemplate: "In the remembrance of {name}",
+ }
+ }),
+ new TagRenderingOptions({
+ question: "When was the ghost bike installed?",
+ freeform: {
+ key: "start_date",
+ template: "The ghost bike was placed on $$$", // TODO create a date picker
+ renderTemplate: "The ghost bike was placed on {start_date}",
+ }
+ }),
+ new TagRenderingOptions({
+ question: "On what URL can more information be found?" +
+ "If available, add a link to a news report about the accident or about the placing of the ghost bike",
+ freeform: {
+ key: "source",
+ template: "More information available on $$$",
+ renderTemplate: "More information",
+ }
+ }),
+
+
];
diff --git a/Customizations/Questions/PumpManual.ts b/Customizations/Questions/PumpManual.ts
deleted file mode 100644
index cfb835618..000000000
--- a/Customizations/Questions/PumpManual.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import {TagRenderingOptions} from "../TagRendering";
-import {UIEventSource} from "../../UI/UIEventSource";
-import {Changes} from "../../Logic/Changes";
-import {Tag} from "../../Logic/TagsFilter";
-
-
-export class PumpManual extends TagRenderingOptions {
-
-
- private static options = {
- priority: 5,
- question: "Is dit een manuele pomp?",
- mappings: [
- {k: new Tag("manual", "yes"), txt: "Manuele pomp"},
- {k: new Tag("manual", "no"), txt: "Automatische pomp"}
- ]
- }
-
- constructor() {
- super(PumpManual.options);
- }
-
-}
\ No newline at end of file
diff --git a/index.html b/index.html
index a6fdedd21..16c538705 100644
--- a/index.html
+++ b/index.html
@@ -23,10 +23,10 @@