From 0d20301140a353534af732994961f73ca2d7c288 Mon Sep 17 00:00:00 2001 From: Hufkratzer Date: Wed, 15 Jan 2025 21:44:33 +0100 Subject: [PATCH] Make data filters work and add presets for skateboard and equestrian in sport_pitch.json --- assets/layers/sport_pitch/sport_pitch.json | 34 ++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/assets/layers/sport_pitch/sport_pitch.json b/assets/layers/sport_pitch/sport_pitch.json index 241a5372e3..57f56b65c7 100644 --- a/assets/layers/sport_pitch/sport_pitch.json +++ b/assets/layers/sport_pitch/sport_pitch.json @@ -166,6 +166,28 @@ "leisure=pitch", "fixme=Geometry to be drawn, added by MapComplete" ] + }, + { + "title": { + "en": "a skatepark", + "de": "einen Skatepark", + "es": "un skatepark" + }, + "tags": [ + "leisure=pitch", + "sport=skateboard" + ] + }, + { + "title": { + "en": "a horse riding arena", + "de": "einen Reitplatz", + "es": "una pista ecuestre" + }, + "tags": [ + "leisure=pitch", + "sport=equestrian" + ] } ], "tagRenderings": [ @@ -306,7 +328,11 @@ "hideInAnswer": true }, { - "if": "sport=skateboard", + "if": { + "and": [ + "sport=skateboard" + ] + }, "then": { "en": "This is a skatepark", "nl": "Dit is een skatepark", @@ -317,7 +343,11 @@ } }, { - "if": "sport=equestrian", + "if": { + "and": [ + "sport=equestrian" + ] + }, "then": { "en": "This is a horse riding arena", "de": "Dies ist ein Reitplatz",