{ "type": "overpass", "name": { "de": "Einrichtungen für Kinder", "en": "Children amenities", "fr": "Équipements pour enfants", "pt-br": "Equipamentos Infantis" }, "query": { "15": [ "(", "node[leisure~'^(playground|summer_camp|indoor_play)$'];", "way[leisure~'^(playground|summer_camp|indoor_play)$'];", "relation[leisure~'^(playground|summer_camp|indoor_play)$'];", "node[shop~'^(baby_goods|toys)$'];", "way[shop~'^(baby_goods|toys)$'];", "relation[shop~'^(baby_goods|toys)$'];", "node[amenity=toilets][diaper];", "way[amenity=toilets][diaper];relation[amenity=toilets][diaper];", "node[kids_area];", "way[kids_area];", "relation[kids_area];", ");" ], "17": [ "(", "node[leisure~'^(playground|summer_camp|indoor_play)$'];", "way[leisure~'^(playground|summer_camp|indoor_play)$'];", "relation[leisure~'^(playground|summer_camp|indoor_play)$'];", "node[shop~'^(baby_goods|toys)$'];", "way[shop~'^(baby_goods|toys)$'];", "relation[shop~'^(baby_goods|toys)$'];", "node[amenity=toilets][diaper];", "way[amenity=toilets][diaper];relation[amenity=toilets][diaper];", "node[kids_area];", "way[kids_area];", "relation[kids_area];", "node[playground];", "way[playground];", "relation[playground];", ");" ] }, "feature": { "pre": [ "{% if tags.leisure %}", " {% set key = 'leisure' %}", " {% set value = tags.leisure %}", "{% elseif tags.kids_area %}", " {% set key = 'kids_area' %}", " {% set value = tags.kids_area %}", "{% elseif tags.shop %}", " {% set key = 'shop' %}", " {% set value = tags.shop %}", "{% elseif tags.playground %}", " {% set key = 'playground' %}", " {% set value = tags.playground %}", "{% else %}", " {% set key = 'amenity' %}", " {% set value = tags.amenity %}", "{% endif %}", "", "{% set type_data = const[key ~ '=' ~ value] |default(const['default=yes']) %}" ], "title": "{{ keyTrans(key) }}: {{localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}", "description": "{{ type_data }}", "markerSign": "{{ type_data.sign|raw }}", "priority": "{{ type_data.priority }}", "style": { "fillColor": "{% if tags.playground!='' %}#3388ff{% else %}#1dc140{% endif %}" } }, "info": [ "", "{% for value, data in const %}", " ", " ", " ", " ", "{% endfor %}", "
{{ markerCircle({})|raw }}
{{ data.sign|raw }}
{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}
" ], "const": { "leisure=playground": { "priority": 10, "sign": "⛹" }, "leisure=summer_camp": { "priority": 10, "sign": "🏕" }, "leisure=indoor_play": { "priority": 8, "sign": "🏠" }, "shop=baby_goods": { "priority": 8, "sign": "" }, "shop=toys": { "priority": 8, "sign": "" }, "amenity=toilets": { "priority": 6, "sign": "🚽🚼" }, "playground=swing": { "priority": 4, "sign": "" }, "default=yes": { "priority": 0, "sign": "X" } } }