2020-07-07 16:00:27 +02:00
|
|
|
import {LayerDefinition} from "../LayerDefinition";
|
|
|
|
import {And, Or, Tag} from "../../Logic/TagsFilter";
|
|
|
|
import {OperatorTag} from "../Questions/OperatorTag";
|
|
|
|
import * as L from "leaflet";
|
2020-07-07 16:39:11 +02:00
|
|
|
import { PumpManual } from "../Questions/PumpManual";
|
2020-07-14 20:18:44 +02:00
|
|
|
import FixedText from "../Questions/FixedText";
|
|
|
|
import {ImageCarouselWithUploadConstructor} from "../../UI/Image/ImageCarouselWithUpload";
|
2020-07-07 16:00:27 +02:00
|
|
|
|
|
|
|
export class BikePumps extends LayerDefinition {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
this.name = "pomp";
|
|
|
|
this.icon = "./assets/bike_pump.svg";
|
|
|
|
|
2020-07-15 10:47:01 +02:00
|
|
|
this.overpassFilter =
|
2020-07-07 16:00:27 +02:00
|
|
|
new And([
|
2020-07-14 20:18:44 +02:00
|
|
|
new Tag("amenity", "bicycle_repair_station"),
|
|
|
|
new Tag("service:bicycle:pump", "yes"),
|
2020-07-15 10:47:01 +02:00
|
|
|
]);
|
2020-07-07 16:00:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
this.newElementTags = [
|
2020-07-14 20:18:44 +02:00
|
|
|
new Tag("amenity", "bicycle_repair_station"),
|
|
|
|
new Tag("service:bicycle:pump", "yes"),
|
2020-07-07 16:00:27 +02:00
|
|
|
];
|
2020-07-15 10:47:01 +02:00
|
|
|
|
2020-07-07 16:00:27 +02:00
|
|
|
this.maxAllowedOverlapPercentage = 10;
|
|
|
|
|
|
|
|
this.minzoom = 13;
|
2020-07-15 10:47:01 +02:00
|
|
|
const self = this;
|
|
|
|
this.style = (properties: any) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
color: "#00bb00",
|
|
|
|
icon: new L.icon({
|
|
|
|
iconUrl: self.icon,
|
|
|
|
iconSize: [40, 40]
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-07-14 20:18:44 +02:00
|
|
|
this.title = new FixedText("Pomp");
|
2020-07-07 16:00:27 +02:00
|
|
|
this.elementsToShow = [
|
2020-07-14 20:18:44 +02:00
|
|
|
new ImageCarouselWithUploadConstructor(),
|
2020-07-07 16:00:27 +02:00
|
|
|
// new NameQuestion(),
|
|
|
|
// new AccessTag(),
|
2020-07-07 16:39:11 +02:00
|
|
|
new OperatorTag(),
|
|
|
|
new PumpManual()
|
2020-07-07 16:00:27 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|