From aa4fb84f96ff2cf287c18c5a10a2a0d324e07de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 22 Aug 2022 17:41:18 +0100 Subject: [PATCH] Remove 'type: overpass' - no longer necessary --- example1.yaml | 3 +-- example2.yaml | 3 +-- example3.yaml | 27 --------------------------- example4.yaml | 1 - example5.yaml | 1 - roads1.yaml | 1 - roads2.yaml | 1 - 7 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 example3.yaml diff --git a/example1.yaml b/example1.yaml index 1874fed..5d14dea 100644 --- a/example1.yaml +++ b/example1.yaml @@ -1,4 +1,3 @@ -type: overpass # From zoom level 15 on, load all nodes, ways and relations with amenity=restaurant. query: - 15: nwr[amenity=restaurant] \ No newline at end of file + 15: nwr[amenity=restaurant] diff --git a/example2.yaml b/example2.yaml index 6b8dd8c..fb675b6 100644 --- a/example2.yaml +++ b/example2.yaml @@ -1,4 +1,3 @@ -type: overpass query: 15: nwr[amenity=fountain] 17: | @@ -14,4 +13,4 @@ feature: ⛲ {% elseif tags.amenity == 'drinking_water' %} 🚰 - {% endif %} \ No newline at end of file + {% endif %} diff --git a/example3.yaml b/example3.yaml deleted file mode 100644 index 9f0a16a..0000000 --- a/example3.yaml +++ /dev/null @@ -1,27 +0,0 @@ -type: overpass -# Adding a category name (in English: "Example 3") -name: - en: Example 3 -query: - 15: nwr[amenity=fountain] - # This query uses a regular expression to match either fountain or drinking_water: - 17: nwr[amenity~"^(fountain|drinking_water)$"] -feature: - description: | - {{ tagTrans('amenity', tags.amenity) }} - # Here, the correct icon for display is read from the 'const' structure - markerSign: | - {{ const[tags.amenity].icon }} - # We can use different markers depending on the type of item - markerSymbol: | - {{ markerPointer({ fillColor: const[tags.amenity].color }) }} - # This is for the marker in the listing in the sidebar - listMarkerSymbol: | - {{ markerCircle({ fillColor: const[tags.amenity].color }) }} -const: - fountain: - icon: ⛲ - color: '#0000ff' # need to quote, because YAML would treat the color as comment - drinking_water: - icon: 🚰 - color: '#007fff' diff --git a/example4.yaml b/example4.yaml index ae0fc89..15a865e 100644 --- a/example4.yaml +++ b/example4.yaml @@ -1,4 +1,3 @@ -type: overpass name: en: Example 4 de: Beispiel 4 diff --git a/example5.yaml b/example5.yaml index 33d19a2..4aefe9c 100644 --- a/example5.yaml +++ b/example5.yaml @@ -1,4 +1,3 @@ -type: overpass name: en: Example 5 query: diff --git a/roads1.yaml b/roads1.yaml index 5e7f927..2ac98df 100644 --- a/roads1.yaml +++ b/roads1.yaml @@ -1,4 +1,3 @@ -type: overpass name: en: Roads 1 # English name of the category query: diff --git a/roads2.yaml b/roads2.yaml index 3a2666c..04443a7 100644 --- a/roads2.yaml +++ b/roads2.yaml @@ -1,4 +1,3 @@ -type: overpass name: en: Roads 2 # English name of the category query: