Fix detection of brokenness
This commit is contained in:
parent
66e5808e4e
commit
b01622780b
2 changed files with 2 additions and 4 deletions
|
@ -17,7 +17,7 @@ import PumpValves from "../Questions/bike/PumpValves";
|
|||
export default class BikeStations extends LayerDefinition {
|
||||
private readonly pump = new Tag("service:bicycle:pump", "yes");
|
||||
private readonly pumpOperationalAny = new Tag("service:bicycle:pump:operational_status", "yes");
|
||||
private readonly pumpOperationalOk = new Or([new Tag("service:bicycle:pump:operational_status", "yes"), new Tag("service:bicycle:pump:operational_status", "operational"), new Tag("service:bicycle:pump:operational_status", "ok")]);
|
||||
private readonly pumpOperationalOk = new Or([new Tag("service:bicycle:pump:operational_status", "yes"), new Tag("service:bicycle:pump:operational_status", "operational"), new Tag("service:bicycle:pump:operational_status", "ok"), new Tag("service:bicycle:pump:operational_status", "")]);
|
||||
private readonly tools = new Tag("service:bicycle:tools", "yes");
|
||||
|
||||
constructor() {
|
||||
|
@ -31,7 +31,6 @@ export default class BikeStations extends LayerDefinition {
|
|||
|
||||
this.newElementTags = [
|
||||
new Tag("amenity", "bicycle_repair_station")
|
||||
// new Tag("fixme", "Toegevoegd met MapComplete, geometry nog uit te tekenen")
|
||||
];
|
||||
this.maxAllowedOverlapPercentage = 10;
|
||||
|
||||
|
@ -60,7 +59,7 @@ export default class BikeStations extends LayerDefinition {
|
|||
const self = this;
|
||||
return function (properties: any) {
|
||||
const hasPump = self.pump.matchesProperties(properties)
|
||||
const isOperational = !self.pumpOperationalAny.matchesProperties(properties) || self.pumpOperationalOk.matchesProperties(properties)
|
||||
const isOperational = self.pumpOperationalOk.matchesProperties(properties)
|
||||
const hasTools = self.tools.matchesProperties(properties)
|
||||
let iconName = ""
|
||||
if (hasPump) {
|
||||
|
|
|
@ -2,7 +2,6 @@ import { Layout } from "../Layout";
|
|||
import { DrinkingWaterLayer } from "../Layers/DrinkingWater";
|
||||
import { NatureReserves } from "../Layers/NatureReserves";
|
||||
import { Park } from "../Layers/Park";
|
||||
import { BikeParkings } from "../Layers/BikeParkings";
|
||||
|
||||
export class WalkByBrussels extends Layout {
|
||||
constructor() {
|
||||
|
|
Loading…
Reference in a new issue