Add possibility to use a cutom overpass script, add 'grassfields in parks'-layer

This commit is contained in:
Pieter Vander Vennet 2021-03-20 23:45:52 +01:00
parent 0d51015cc8
commit f659bc1141
40 changed files with 499 additions and 222 deletions

View file

@ -6,7 +6,9 @@
"fr": "Bancs"
},
"minzoom": 14,
"overpassTags": "amenity=bench",
"source": {
"osmTags": "amenity=bench"
},
"title": {
"render": {
"en": "Bench",

View file

@ -6,11 +6,13 @@
"fr": "Bancs des arrêts de transport en commun"
},
"minzoom": 14,
"overpassTags": {
"or": [
"bench=yes",
"bench=stand_up_bench"
]
"source": {
"osmTags": {
"or": [
"bench=yes",
"bench=stand_up_bench"
]
}
},
"title": {
"render": {

View file

@ -5,7 +5,9 @@
"nl": "Picnictafels"
},
"minzoom": 12,
"overpassTags": "leisure=picnic_table",
"source": {
"osmTags": "leisure=picnic_table"
},
"title": {
"render": {
"en": "Picnic table",

View file

@ -5,7 +5,8 @@
"nl": "Fietsbibliotheek"
},
"minzoom": 8 ,
"overpassTags": "amenity=bicycle_library",
"source": {
"osmTags": "amenity=bicycle_library"},
"title": {
"render": {
"en": "Bicycle library",

View file

@ -37,11 +37,13 @@
}
],
"iconSize": "50,50,bottom",
"overpassTags": {
"and": [
"amenity=vending_machine",
"vending~.*bicycle_tube.*"
]
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending~.*bicycle_tube.*"
]
}
},
"minzoom": 13,
"wayHandling": 2,
@ -104,7 +106,7 @@
"mappings": [
{
"if": "payment:coins=yes",
"ifnot": "payment:coins=no",
"ifnot": "payment:coins=no",
"then": "Payment with coins is possible"
},
{

View file

@ -8,18 +8,20 @@
"de": "Fahrrad-Café"
},
"minzoom": 13,
"overpassTags": {
"and": [
"amenity~pub|bar|cafe|restaurant",
{
"#": "Note the double tilde in 'service:bicycle' which interprets the key as regex too",
"or": [
"pub~cycling|bicycle",
"theme~cycling|bicycle",
"service:bicycle:.*~~*"
]
}
]
"source": {
"osmTags": {
"and": [
"amenity~pub|bar|cafe|restaurant",
{
"#": "Note the double tilde in 'service:bicycle' which interprets the key as regex too",
"or": [
"pub~cycling|bicycle",
"theme~cycling|bicycle",
"service:bicycle:.*~~*"
]
}
]
}
},
"title": {
"render": {

View file

@ -23,12 +23,14 @@
"render": "./assets/layers/bike_cleaning/bike_cleaning.svg"
},
"iconSize": "50,50,bottom",
"overpassTags": {
"or": [
"service:bicycle:cleaning=yes",
"service:bicycle:cleaning=diy",
"amenity=bicycle_wash"
]
"source": {
"osmTags": {
"or": [
"service:bicycle:cleaning=yes",
"service:bicycle:cleaning=diy",
"amenity=bicycle_wash"
]
}
},
"minzoom": 13,
"wayHandling": 1,

View file

@ -1,14 +1,16 @@
{
{
"id": "bike_monitoring_station",
"name": {
"en": "Monitoring stations"
},
"minzoom": 12,
"overpassTags": {
"and": [
"man_made=monitoring_station",
"monitoring:bicycle=yes"
]
"source": {
"osmTags": {
"and": [
"man_made=monitoring_station",
"monitoring:bicycle=yes"
]
}
},
"title": {
"render": {
@ -32,12 +34,15 @@
}
]
},
"tagRenderings": [ "images",
"tagRenderings": [
"images",
{
"render": "<b>{live({url},{url:format},hour)}</b> cyclists last hour<br/><b>{live({url},{url:format},day)}</b> cyclists today<br/><b>{live({url},{url:format},year)}</b> cyclists this year<br/>",
"condition": {
"and": ["url~*","url:format~*"]
"and": [
"url~*",
"url:format~*"
]
}
}
],

View file

@ -8,10 +8,12 @@
"de": "Fahrrad-Parkplätze"
},
"minzoom": 17,
"overpassTags": {
"and": [
"amenity=bicycle_parking"
]
"source": {
"osmTags": {
"and": [
"amenity=bicycle_parking"
]
}
},
"icon": {
"render": {

View file

@ -8,10 +8,12 @@
"de": "Fahrradstationen (Reparatur, Pumpe oder beides)"
},
"minzoom": 13,
"overpassTags": {
"and": [
"amenity=bicycle_repair_station"
]
"source": {
"osmTags": {
"and": [
"amenity=bicycle_repair_station"
]
}
},
"title": {
"render": {
@ -71,7 +73,8 @@
"gl": "Bomba de ar estragada",
"de": "Kaputte Pumpe"
}
},{
},
{
"if": {
"and": [
"service:bicycle:pump=yes",
@ -107,7 +110,7 @@
"titleIcons": [
{
"render": "<a href='https://fietsambassade.gent.be/' target='_blank'><img src='./assets/themes/cyclofix/fietsambassade_gent_logo_small.svg'/></a>",
"condition": "operator=De Fietsambassade Gent",
"condition": "operator=De Fietsambassade Gent",
"roaming": true
},
"defaults"

View file

@ -8,41 +8,43 @@
"de": "Fahrradwerkstatt/geschäft"
},
"minzoom": 13,
"overpassTags": {
"#": "We select all bicycle shops, sport shops (but we try to weed out non-bicycle related shops), and any shop with a bicycle related tag",
"or": [
"shop=bicycle",
{
"#": "A bicycle rental with a network is something such as villo, bluebike, ... We don't want them",
"and": [
"amenity=bicycle_rental",
"network="
]
},
{
"#": "if sport is defined and is not bicycle, it is retrackted; if bicycle retail/repair is marked as 'no', it is retracted too.",
"##": "There will be a few false-positives with this. They will get filtered out by people marking both 'not selling bikes' and 'not repairing bikes'. Furthermore, the OSMers will add a sports-subcategory on it",
"and": [
"shop=sports",
"service:bicycle:retail!=no",
"service:bicycle:repair!=no",
{
"or": [
"sport=bicycle",
"sport=cycling",
"sport="
]
}
]
},
{
"#": "Any shop with any bicycle service",
"and": [
"shop~*",
"service:bicycle:.*~~.*"
]
}
]
"source": {
"osmTags": {
"#": "We select all bicycle shops, sport shops (but we try to weed out non-bicycle related shops), and any shop with a bicycle related tag",
"or": [
"shop=bicycle",
{
"#": "A bicycle rental with a network is something such as villo, bluebike, ... We don't want them",
"and": [
"amenity=bicycle_rental",
"network="
]
},
{
"#": "if sport is defined and is not bicycle, it is retrackted; if bicycle retail/repair is marked as 'no', it is retracted too.",
"##": "There will be a few false-positives with this. They will get filtered out by people marking both 'not selling bikes' and 'not repairing bikes'. Furthermore, the OSMers will add a sports-subcategory on it",
"and": [
"shop=sports",
"service:bicycle:retail!=no",
"service:bicycle:repair!=no",
{
"or": [
"sport=bicycle",
"sport=cycling",
"sport="
]
}
]
},
{
"#": "Any shop with any bicycle service",
"and": [
"shop~*",
"service:bicycle:.*~~.*"
]
}
]
}
},
"title": {
"render": {
@ -575,7 +577,7 @@
"badge": true
},
{
"if": "service:bicycle:pump=yes",
"if": "service:bicycle:pump=yes",
"then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg",
"badge": true
}

View file

@ -4,10 +4,12 @@
"nl": "Vogelkijkhutten"
},
"minzoom": 14,
"overpassTags": {
"and": [
"leisure=bird_hide"
]
"source": {
"osmTags": {
"and": [
"leisure=bird_hide"
]
}
},
"title": {
"render": {

View file

@ -7,14 +7,16 @@
"de": "Mit Fahrrad zusammenhängendes Objekt"
},
"minzoom": 13,
"overpassTags": {
"or": [
"theme~cycling|bicycle",
"sport=cycling",
"association~cycling|bicycle",
"ngo~cycling|bicycle",
"club~bicycle|cycling"
]
"source": {
"osmTags": {
"or": [
"theme~cycling|bicycle",
"sport=cycling",
"association~cycling|bicycle",
"ngo~cycling|bicycle",
"club~bicycle|cycling"
]
}
},
"title": {
"render": {

View file

@ -4,11 +4,13 @@
"en": "Direction visualization"
},
"minzoom": 16,
"overpassTags": {
"or": [
"camera:direction~*",
"direction~*"
]
"source": {
"osmTags": {
"or": [
"camera:direction~*",
"direction~*"
]
}
},
"doNotDownload": true,
"passAllFeatures": true,

View file

@ -31,14 +31,15 @@
"badge": true
}
],
"iconSize": "40,40,bottom",
"overpassTags": {
"and": [
"amenity=drinking_water",
"access!=permissive",
"access!=private"
]
"source": {
"osmTags": {
"and": [
"amenity=drinking_water",
"access!=permissive",
"access!=private"
]
}
},
"minzoom": 13,
"wayHandling": 1,

View file

@ -5,7 +5,9 @@
"nl": "Witte Fietsen",
"de": "Geisterrad"
},
"overpassTags": "memorial=ghost_bike",
"source": {
"osmTags": "memorial=ghost_bike"
},
"minzoom": 0,
"title": {
"render": {
@ -43,7 +45,7 @@
}
],
"tagRenderings": [
{
{
"render": {
"en": "A <b>ghost bike</b> is a memorial for a cyclist who died in a traffic accident, in the form of a white bicycle placed permanently near the accident location.",
"nl": "Een Witte Fiets (of Spookfiets) is een aandenken aan een fietser die bij een verkeersongeval om het leven kwam. Het gaat over een witgeschilderde fiets die geplaatst werd in de buurt van het ongeval.",

View file

@ -5,10 +5,12 @@
"en": "Information boards"
},
"minzoom": 12,
"overpassTags": {
"and": [
"information=board"
]
"source": {
"osmTags": {
"and": [
"information=board"
]
}
},
"title": {
"render": {
@ -16,7 +18,9 @@
"en": "Information board"
}
},
"tagRenderings": [ "images"],
"tagRenderings": [
"images"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/layers/information_board/board.svg"

View file

@ -5,11 +5,13 @@
"nl": "Kaarten"
},
"minzoom": 12,
"overpassTags": {
"or": [
"tourism=map",
"information=map"
]
"source": {
"osmTags": {
"or": [
"tourism=map",
"information=map"
]
}
},
"title": {
"render": {

View file

@ -4,11 +4,13 @@
"nl": "Natuurgebied"
},
"minzoom": 12,
"overpassTags": {
"or": [
"leisure=nature_reserve",
"boundary=protected_area"
]
"source": {
"osmTags": {
"or": [
"leisure=nature_reserve",
"boundary=protected_area"
]
}
},
"title": {
"render": {
@ -330,7 +332,8 @@
"key": "description:0"
}
},
{"#": "Surface are",
{
"#": "Surface are",
"render": {
"en": "Surface area: {_surface:ha}Ha",
"mappings": {

View file

@ -4,10 +4,12 @@
"nl": "Speelbossen"
},
"minzoom": 13,
"overpassTags": {
"and": [
"playground=forest"
]
"source": {
"osmTags": {
"and": [
"playground=forest"
]
}
},
"title": {
"render": {

View file

@ -5,11 +5,13 @@
"en": "Playgrounds"
},
"minzoom": 13,
"overpassTags": {
"and": [
"leisure=playground",
"playground!=forest"
]
"source": {
"osmTags": {
"and": [
"leisure=playground",
"playground!=forest"
]
}
},
"description": {
"nl": "Speeltuinen",
@ -299,7 +301,7 @@
"render": "https://upload.wikimedia.org/wikipedia/commons/0/00/Map_icons_by_Scott_de_Jonge_-_playground.svg"
},
"width": {
"render": "3"
"render": "1"
},
"iconSize": {
"render": "40,40,center"

View file

@ -12,7 +12,9 @@
"de": "Ein Bücherschrank am Straßenrand mit Büchern, für jedermann zugänglich",
"fr": "Une armoire ou une boite contenant des livres en libre accès"
},
"overpassTags": "amenity=public_bookcase",
"source": {
"osmTags": "amenity=public_bookcase"
},
"minzoom": 12,
"wayHandling": 2,
"title": {
@ -256,9 +258,12 @@
"de": "Teil des Netzwerks 'Little Free Library'",
"fr": "Fait partie du réseau 'Little Free Library'"
},
"if":{
"and": ["brand=Little Free Library","nobrand="]
}
"if": {
"and": [
"brand=Little Free Library",
"nobrand="
]
}
},
{
"if": {

View file

@ -4,16 +4,18 @@
"nl": "Trage wegen"
},
"minzoom": 14,
"overpassTags": {
"or": [
"highway=pedestrian",
"highway=cycleway",
"highway=footway",
"highway=path",
"highway=bridleway",
"highway=living_street",
"highway=track"
]
"source": {
"osmTags": {
"or": [
"highway=pedestrian",
"highway=cycleway",
"highway=footway",
"highway=path",
"highway=bridleway",
"highway=living_street",
"highway=track"
]
}
},
"title": {
"render": {

View file

@ -5,10 +5,11 @@
},
"wayHandling": 2,
"minzoom": 12,
"overpassTags": {
"source": {
"osmTags": {
"and": [
"leisure=pitch"
]
]}
},
"title": {
"render": {
@ -211,13 +212,13 @@
"render": "./assets/layers/sport_pitch/tabletennis.svg"
},
"width": {
"render": "8"
"render": "1"
},
"iconSize": {
"render": "40,40,center"
},
"color": {
"render": "#00f"
"render": "#009"
},
"presets": [
{

View file

@ -5,17 +5,19 @@
"nl": "Bewakingscamera's"
},
"minzoom": 12,
"overpassTags": {
"and": [
"man_made=surveillance",
{
"or": [
"surveillance:type=camera",
"surveillance:type=ALPR",
"surveillance:type=ANPR"
]
}
]
"source": {
"osmTags": {
"and": [
"man_made=surveillance",
{
"or": [
"surveillance:type=camera",
"surveillance:type=ALPR",
"surveillance:type=ANPR"
]
}
]
}
},
"title": {
"render": {

View file

@ -5,7 +5,9 @@
"de": "Toiletten",
"fr": "Toilettes"
},
"overpassTags": "amenity=toilets",
"source": {
"osmTags": "amenity=toilets"
},
"title": {
"render": {
"en": "Toilet",

View file

@ -5,8 +5,12 @@
"en": "Tree"
},
"minzoom": 14,
"overpassTags": {
"and": ["natural=tree"]
"source": {
"osmTags": {
"and": [
"natural=tree"
]
}
},
"title": {
"render": {
@ -38,7 +42,9 @@
"mappings": [
{
"if": {
"and": ["height~^[0-9.]+$"]
"and": [
"height~^[0-9.]+$"
]
},
"then": {
"nl": "Hoogte: {height}&nbsp;m",
@ -55,7 +61,9 @@
"mappings": [
{
"if": {
"and": ["leaf_type=broadleaved"]
"and": [
"leaf_type=broadleaved"
]
},
"then": {
"nl": "<img src=\"./assets/themes/trees/broadleaved.svg\" style=\"width:1.5em;height:1.5em\" alt=\"\"/> Loofboom",
@ -64,7 +72,9 @@
},
{
"if": {
"and": ["leaf_type=needleleaved"]
"and": [
"leaf_type=needleleaved"
]
},
"then": {
"nl": "<img src=\"./assets/themes/trees/needleleaved.svg\" style=\"width:1.5em;height:1.5em\" alt=\"\"/> Naaldboom",
@ -73,7 +83,9 @@
},
{
"if": {
"and": ["leaf_type=leafless"]
"and": [
"leaf_type=leafless"
]
},
"then": {
"nl": "<img src=\"./assets/themes/trees/leafless.svg\" style=\"width:1.5em;height:1.5em\" alt=\"\"/> Permanent bladloos",
@ -91,7 +103,9 @@
"mappings": [
{
"if": {
"and": ["denotation=landmark"]
"and": [
"denotation=landmark"
]
},
"then": {
"nl": "De boom valt op door zijn grootte of prominente locatie. Hij is nuttig voor navigatie.",
@ -100,7 +114,9 @@
},
{
"if": {
"and": ["denotation=natural_monument"]
"and": [
"denotation=natural_monument"
]
},
"then": {
"nl": "De boom is een natuurlijk monument, bijvoorbeeld doordat hij bijzonder oud of van een waardevolle soort is.",
@ -109,7 +125,9 @@
},
{
"if": {
"and": ["denotation=agricultural"]
"and": [
"denotation=agricultural"
]
},
"then": {
"nl": "De boom wordt voor landbouwdoeleinden gebruikt, bijvoorbeeld in een boomgaard.",
@ -118,7 +136,9 @@
},
{
"if": {
"and": ["denotation=park"]
"and": [
"denotation=park"
]
},
"then": {
"nl": "De boom staat in een park of dergelijke (begraafplaats, schoolterrein, …).",
@ -127,7 +147,9 @@
},
{
"if": {
"and": ["denotation=garden"]
"and": [
"denotation=garden"
]
},
"then": {
"nl": "De boom staat in de tuin bij een woning/flatgebouw.",
@ -136,7 +158,9 @@
},
{
"if": {
"and": ["denotation=avenue"]
"and": [
"denotation=avenue"
]
},
"then": {
"nl": "Dit is een laanboom.",
@ -145,7 +169,9 @@
},
{
"if": {
"and": ["denotation=urban"]
"and": [
"denotation=urban"
]
},
"then": {
"nl": "De boom staat in een woonkern.",
@ -154,7 +180,9 @@
},
{
"if": {
"and": ["denotation=none"]
"and": [
"denotation=none"
]
},
"then": {
"nl": "De boom staat buiten een woonkern.",
@ -171,7 +199,9 @@
"mappings": [
{
"if": {
"and": ["leaf_cycle=deciduous"]
"and": [
"leaf_cycle=deciduous"
]
},
"then": {
"nl": "Bladverliezend: de boom is een periode van het jaar kaal.",
@ -180,7 +210,9 @@
},
{
"if": {
"and": ["leaf_cycle=evergreen"]
"and": [
"leaf_cycle=evergreen"
]
},
"then": {
"nl": "Groenblijvend.",
@ -189,7 +221,9 @@
}
],
"condition": {
"and": ["leaf_type!~^leafless$"]
"and": [
"leaf_type!~^leafless$"
]
}
},
{
@ -351,13 +385,17 @@
"mappings": [
{
"if": {
"and": ["leaf_type=broadleaved"]
"and": [
"leaf_type=broadleaved"
]
},
"then": "circle:#ffffff;./assets/themes/trees/broadleaved.svg"
},
{
"if": {
"and": ["leaf_type=needleleaved"]
"and": [
"leaf_type=needleleaved"
]
},
"then": "circle:#ffffff;./assets/themes/trees/needleleaved.svg"
}

View file

@ -10,7 +10,9 @@
"nl": "Een mooi uitzicht - ideaal om een foto toe te voegen wanneer iets niet in een andere categorie past",
"de": "Ein schöner Aussichtspunkt oder eine schöne Aussicht. Ideal zum Hinzufügen eines Bildes, wenn keine andere Kategorie passt"
},
"overpassTags": "tourism=viewpoint",
"source": {
"osmTags": "tourism=viewpoint"
},
"minzoom": 14,
"icon": "./assets/layers/viewpoint/viewpoint.svg",
"iconSize": "20,20,center",

View file

@ -0,0 +1,48 @@
{
"id": "grass_in_parks",
"name": {
"nl": "Toegankelijke grasvelden in parken"
},
"source": {
"osmTags": {
"and": [
"landuse=grass",
{
"or": [
"access=public",
"access=yes"
]
}
]
},
"overpassScript": "way[\"leisure\"=\"park\"];node(w);is_in;area._[\"leisure\"=\"park\"];(way(area)[\"landuse\"=\"grass\"]; node(w); );"
},
"minzoom": 0,
"title": {
"render": {
"nl": "Speelweide in een park"
},
"mappings": [
{
"if": "name~*",
"then": {
"nl": "{name}"
}
}
]
},
"icon": "./assets/themes/playgrounds/playground.svg",
"iconSize": "40,40,bottom",
"width": "1",
"color": "#0f0",
"wayHandling": 2,
"tagRenderings": [
"images",
{
"render": "Op dit grasveld in het park mag je spelen, picnicken, zitten, ..."
},
{
"render": "{reviews(name, landuse=grass )}"
}
]
}

View file

@ -0,0 +1,37 @@
{
"id": "village_green",
"name": {
"nl": "Speelweide"
},
"source": {
"osmTags": "landuse=village_green"
},
"minzoom": 0,
"title": {
"render": {
"nl": "Speelweide"
},
"mappings": [
{
"if": "name~*",
"then": {
"nl": "{name}"
}
}
]
},
"icon": "./assets/themes/playgrounds/playground.svg",
"iconSize": "40,40,bottom",
"width": "1",
"color": "#0f0",
"wayHandling": 2,
"tagRenderings": [
"images",
{
"render": "Dit is een klein stukje openbaar groen waar je mag spelen, picnicken, zitten, ..."
},
{
"render": "{reviews(name, landuse=village_green )}"
}
]
}

View file

@ -27,7 +27,9 @@
"play_forest",
"playground",
"sport_pitch",
"slow_roads"
"slow_roads",
"grass_in_parks",
"village_green"
],
"roamingRenderings": []
}