Browse Source

Sort properties always by the same order

master
parent
commit
fcfa931758
  1. 4
      car_maxspeed.json
  2. 4
      children.json
  3. 4
      communication.json
  4. 10
      cycle_amenities.json
  5. 9
      cycle_routes.json
  6. 4
      education.json
  7. 4
      gastro.json
  8. 37
      index.json
  9. 2
      places.json
  10. 2
      places_geo.json
  11. 8
      power.json
  12. 4
      pt_routes.json
  13. 4
      public.json
  14. 63
      railway-electrification.json
  15. 100
      railway-infrastructure.json
  16. 4
      religion.json
  17. 4
      sport.json
  18. 2
      walk_amenities.json
  19. 5
      works.json

4
car_maxspeed.json

@ -46,9 +46,9 @@
"{{ trans('unknown') }}", "{{ trans('unknown') }}",
"{% endif %}" "{% endif %}"
], ],
"markerSign": null,
"style": { "style": {
"color": "{{ color }}" "color": "{{ color }}"
},
"markerSign": null
}
} }
} }

4
children.json

@ -8,7 +8,7 @@
"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];);" "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];);"
}, },
"feature": { "feature": {
"markerSign": "{% if tags.leisure=='playground' %}&#9977;{% elseif tags.leisure=='summer_camp'%}&#127957;{% elseif tags.leisure=='indoor_play' or tags.kids_area %}&#127968;{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}<i class=\"fa fa-shopping-cart\"></i>{% elseif tags.amenity=='toilets' and tags.diaper %}&#128701;&#128700;{% endif %}",
"description": "{% if tags.leisure=='playground' %}{{ tagTrans('leisure', 'playground') }}{% elseif tags.leisure=='summer_camp'%}{{ tagTrans('leisure', 'summer_camp') }}{% elseif tags.leisure=='indoor_play' %}{{ tagTrans('leisure', 'indoor_play') }}{% elseif tags.kids_area %}{{ keyTrans('kids_area') }}{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}{{ keyTrans('shop') }}: {{ tagTrans('shop', tags.shop) }}{% elseif tags.amenity=='toilets' and tags.diaper %}{{ tagTrans('amenity', 'toilets') }} with diaper changing table{% endif %}"
"description": "{% if tags.leisure=='playground' %}{{ tagTrans('leisure', 'playground') }}{% elseif tags.leisure=='summer_camp'%}{{ tagTrans('leisure', 'summer_camp') }}{% elseif tags.leisure=='indoor_play' %}{{ tagTrans('leisure', 'indoor_play') }}{% elseif tags.kids_area %}{{ keyTrans('kids_area') }}{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}{{ keyTrans('shop') }}: {{ tagTrans('shop', tags.shop) }}{% elseif tags.amenity=='toilets' and tags.diaper %}{{ tagTrans('amenity', 'toilets') }} with diaper changing table{% endif %}",
"markerSign": "{% if tags.leisure=='playground' %}&#9977;{% elseif tags.leisure=='summer_camp'%}&#127957;{% elseif tags.leisure=='indoor_play' or tags.kids_area %}&#127968;{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}<i class=\"fa fa-shopping-cart\"></i>{% elseif tags.amenity=='toilets' and tags.diaper %}&#128701;&#128700;{% endif %}"
} }
} }

4
communication.json

@ -23,8 +23,8 @@
}, },
"feature": { "feature": {
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTrans('amenity', tags.amenity)) }}", "title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTrans('amenity', tags.amenity)) }}",
"markerSign": "{% if tags.amenity=='post_office' %}&#127972;{% elseif tags.amenity=='post_box'%}&#128238;{% elseif tags.amenity=='internet_cafe' %}&#128187;{% elseif tags.amenity=='telephone' %}&#9990;{% endif %}",
"description": "{{ tagTrans('amenity', tags.amenity) }}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}", "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}",
"description": "{{ tagTrans('amenity', tags.amenity) }}"
"markerSign": "{% if tags.amenity=='post_office' %}&#127972;{% elseif tags.amenity=='post_box'%}&#128238;{% elseif tags.amenity=='internet_cafe' %}&#128187;{% elseif tags.amenity=='telephone' %}&#9990;{% endif %}"
} }
} }

10
cycle_amenities.json

@ -51,6 +51,11 @@
"", "",
"{% set constIndex = (key ~ \"=\" ~ value) %}" "{% set constIndex = (key ~ \"=\" ~ value) %}"
], ],
"title": [
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}",
"",
"{% if tags.capacity %}({{ tags.capacity }}){% endif %}"
],
"description": "{{ tagTrans(key, value) }}", "description": "{{ tagTrans(key, value) }}",
"body": [ "body": [
"{% if tags.capacity %}", "{% if tags.capacity %}",
@ -58,11 +63,6 @@
"{% endif %}" "{% endif %}"
], ],
"markerSign": "{{ const[constIndex]['sign'] }}", "markerSign": "{{ const[constIndex]['sign'] }}",
"title": [
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}",
"",
"{% if tags.capacity %}({{ tags.capacity }}){% endif %}"
],
"priority": [ "priority": [
"{% if const[constIndex] and const[constIndex]['priority']['capacity'] %}", "{% if const[constIndex] and const[constIndex]['priority']['capacity'] %}",
" {% set max=const[constIndex]['priority']['default'] %}", " {% set max=const[constIndex]['priority']['default'] %}",

9
cycle_routes.json

@ -1,22 +1,21 @@
{ {
"type": "overpass",
"name": { "name": {
"de": "Radrouten", "de": "Radrouten",
"en": "Cycle Routes" "en": "Cycle Routes"
}, },
"type": "overpass",
"query": { "query": {
"6": "relation[type=route][route=bicycle][network~'^(icn)$']", "6": "relation[type=route][route=bicycle][network~'^(icn)$']",
"9": "relation[type=route][route=bicycle][network~'^(icn|ncn)$']", "9": "relation[type=route][route=bicycle][network~'^(icn|ncn)$']",
"12": "relation[type=route][route=bicycle][network~'^(icn|ncn|rcn)$']", "12": "relation[type=route][route=bicycle][network~'^(icn|ncn|rcn)$']",
"15": "relation[type=route][route=bicycle]" "15": "relation[type=route][route=bicycle]"
}, },
"minZoom": 6,
"feature": { "feature": {
"priority": "{% if tags.network=='icn' %}0{% elseif tags.network=='ncn' %}1{% elseif tags.network=='rcn' %}2{% else %}3{% endif %}",
"style": { "style": {
"color": "{% if tags.network=='icn' %}#ff0000{% elseif tags.network=='ncn' %}#ff007f{% elseif tags.network=='rcn' %}#7f00ff{% else %}#0000ff{% endif %}",
"weight": 4, "weight": 4,
"color": "{% if tags.network=='icn' %}#ff0000{% elseif tags.network=='ncn' %}#ff007f{% elseif tags.network=='rcn' %}#7f00ff{% else %}#0000ff{% endif %}",
"opacity": 1 "opacity": 1
},
"priority": "{% if tags.network=='icn' %}0{% elseif tags.network=='ncn' %}1{% elseif tags.network=='rcn' %}2{% else %}3{% endif %}"
}
} }
} }

4
education.json

@ -22,9 +22,9 @@
"16": "(node[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];way[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];relation[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];)" "16": "(node[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];way[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];relation[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];)"
}, },
"feature": { "feature": {
"markerSign": "{% if tags.amenity == 'university' or tags.amenity == 'college' %}🎓{% elseif tags.amenity == 'library' %}🕮{% elseif tags.amenity == 'school' or tags.amenity == 'language_school' %}🏫{% elseif tags.amenity == 'kindergarten' %}⛹{% elseif tags.amenity == 'public_bookcase' %}📚{% endif %}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
"description": "{{ tagTrans('amenity', tags.amenity) }}", "description": "{{ tagTrans('amenity', tags.amenity) }}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
"markerSign": "{% if tags.amenity == 'university' or tags.amenity == 'college' %}🎓{% elseif tags.amenity == 'library' %}🕮{% elseif tags.amenity == 'school' or tags.amenity == 'language_school' %}🏫{% elseif tags.amenity == 'kindergarten' %}⛹{% elseif tags.amenity == 'public_bookcase' %}📚{% endif %}",
"priority": "{% if tags.amenity == 'university' %}0{% elseif tags.amenity == 'college' %}1{% elseif tags.amenity == 'library' %}2{% elseif tags.amenity == 'school' or tags.amenity == 'language_school' %}3{% elseif tags.amenity == 'kindergarten' %}4{% elseif tags.amenity == 'public_bookcase' %}5{% endif %}" "priority": "{% if tags.amenity == 'university' %}0{% elseif tags.amenity == 'college' %}1{% elseif tags.amenity == 'library' %}2{% elseif tags.amenity == 'school' or tags.amenity == 'language_school' %}3{% elseif tags.amenity == 'kindergarten' %}4{% elseif tags.amenity == 'public_bookcase' %}5{% endif %}"
} }
} }

4
gastro.json

@ -20,7 +20,7 @@
"16": "(node[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];way[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];relation[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];);" "16": "(node[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];way[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];relation[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];);"
}, },
"feature": { "feature": {
"markerSign": "{% if tags.amenity=='bar' %}&#127864;{% elseif tags.amenity=='biergarten'%}&#127867;{% elseif tags.amenity=='cafe' %}&#9749;{% elseif tags.amenity=='fast_food' %}&#127828;{% elseif tags.amenity=='ice_cream' %}&#127848;{% elseif tags.amenity=='pub' %}&#127866;{% else %}&#127860;{% endif %}",
"description": "{{ tagTrans('amenity', tags.amenity) }}",
"body": [ "body": [
"<ul>", "<ul>",
" <li class='hasSymbol'>", " <li class='hasSymbol'>",
@ -30,6 +30,6 @@
" </li>", " </li>",
"</ul>" "</ul>"
], ],
"description": "{{ tagTrans('amenity', tags.amenity) }}"
"markerSign": "{% if tags.amenity=='bar' %}&#127864;{% elseif tags.amenity=='biergarten'%}&#127867;{% elseif tags.amenity=='cafe' %}&#9749;{% elseif tags.amenity=='fast_food' %}&#127828;{% elseif tags.amenity=='ice_cream' %}&#127848;{% elseif tags.amenity=='pub' %}&#127866;{% else %}&#127860;{% endif %}"
} }
} }

37
index.json

@ -2,6 +2,8 @@
"type": "index", "type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "leisure_sport_shopping",
"type": "index",
"name": { "name": {
"ast": "Recréu, deportes y compres", "ast": "Recréu, deportes y compres",
"ca": "Oci, esport i compres", "ca": "Oci, esport i compres",
@ -21,8 +23,6 @@
"ru": "Досуг", "ru": "Досуг",
"uk": "Дозвілля" "uk": "Дозвілля"
}, },
"id": "leisure_sport_shopping",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "gastro" "id": "gastro"
@ -42,6 +42,8 @@
] ]
}, },
{ {
"id": "services",
"type": "index",
"name": { "name": {
"ast": "Servicios", "ast": "Servicios",
"ca": "Serveis", "ca": "Serveis",
@ -61,8 +63,6 @@
"ru": "Услуги", "ru": "Услуги",
"uk": "Послуги" "uk": "Послуги"
}, },
"id": "services",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "emergency" "id": "emergency"
@ -91,6 +91,8 @@
"id": "culture_religion" "id": "culture_religion"
}, },
{ {
"id": "transport",
"type": "index",
"name": { "name": {
"ast": "Tresporte", "ast": "Tresporte",
"cs": "Doprava", "cs": "Doprava",
@ -106,19 +108,16 @@
"pl": "Transport", "pl": "Transport",
"ro": "Transport", "ro": "Transport",
"ru": "Транспорт", "ru": "Транспорт",
"tr": "Toplu Taşıma",
"uk": "Транспорт" "uk": "Транспорт"
}, },
"id": "transport",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "transport_walk",
"type": "index",
"name": { "name": {
"de": "Zu Fuß gehen", "de": "Zu Fuß gehen",
"en": "Walking" "en": "Walking"
}, },
"id": "transport_walk",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "walk_amenities" "id": "walk_amenities"
@ -129,12 +128,12 @@
] ]
}, },
{ {
"id": "transport_cycle",
"type": "index",
"name": { "name": {
"de": "Radfahren", "de": "Radfahren",
"en": "Cycling" "en": "Cycling"
}, },
"id": "transport_cycle",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "cycle_amenities" "id": "cycle_amenities"
@ -145,6 +144,8 @@
] ]
}, },
{ {
"id": "transport_pt",
"type": "index",
"name": { "name": {
"ast": "Tresporte Públicu", "ast": "Tresporte Públicu",
"cs": "Veřejná doprava", "cs": "Veřejná doprava",
@ -162,8 +163,6 @@
"ru": "Общественный транспорт", "ru": "Общественный транспорт",
"uk": "Громадський транспорт" "uk": "Громадський транспорт"
}, },
"id": "transport_pt",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "pt_amenities" "id": "pt_amenities"
@ -177,6 +176,8 @@
] ]
}, },
{ {
"id": "transport_car",
"type": "index",
"name": { "name": {
"ast": "Tráficu individual", "ast": "Tráficu individual",
"cs": "Individuální doprava", "cs": "Individuální doprava",
@ -191,8 +192,6 @@
"ru": "Частный транспорт", "ru": "Частный транспорт",
"uk": "Приватний транспорт" "uk": "Приватний транспорт"
}, },
"id": "transport_car",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "car_amenities" "id": "car_amenities"
@ -205,6 +204,8 @@
] ]
}, },
{ {
"id": "agriculture_industry",
"type": "index",
"name": { "name": {
"ast": "Agricultura ya industria", "ast": "Agricultura ya industria",
"cs": "Průmysl a zemědělství", "cs": "Průmysl a zemědělství",
@ -222,8 +223,6 @@
"ru": "Сельское хозяйство и промышленность", "ru": "Сельское хозяйство и промышленность",
"uk": "Сільське господартво та промисловість" "uk": "Сільське господартво та промисловість"
}, },
"id": "agriculture_industry",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "agriculture" "id": "agriculture"
@ -277,12 +276,12 @@
"id": "places_geo" "id": "places_geo"
}, },
{ {
"id": "special",
"type": "index",
"name": { "name": {
"en": "Special", "en": "Special",
"de": "Spezial" "de": "Spezial"
}, },
"id": "special",
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "wikipedia" "id": "wikipedia"

2
places.json

@ -29,11 +29,11 @@
}, },
"feature": { "feature": {
"title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}", "title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}",
"description": "{{ tagTrans('place', tags.place) }}",
"body": [ "body": [
"{% if tags.population %}{{ keyTrans('population') }}: {{ tags.population }}{% endif %} ", "{% if tags.population %}{{ keyTrans('population') }}: {{ tags.population }}{% endif %} ",
"" ""
], ],
"description": "{{ tagTrans('place', tags.place) }}",
"priority": "{% set priorities = { 'continent': 0, 'country': 1, 'state': 2, 'region': 3, 'city': 4, 'town': 5, 'village': 6, 'suburb': 7, 'hamlet': 8, 'quarter': 9, neighbourhood: 10, 'isolated_dwelling': 11, 'farm': 12 } %}{{ priorities[tags.place] }}" "priority": "{% set priorities = { 'continent': 0, 'country': 1, 'state': 2, 'region': 3, 'city': 4, 'town': 5, 'village': 6, 'suburb': 7, 'hamlet': 8, 'quarter': 9, neighbourhood: 10, 'isolated_dwelling': 11, 'farm': 12 } %}{{ priorities[tags.place] }}"
} }
} }

2
places_geo.json

@ -1,4 +1,5 @@
{ {
"type": "index",
"name": { "name": {
"ast": "Llugares", "ast": "Llugares",
"cs": "Sídla", "cs": "Sídla",
@ -16,7 +17,6 @@
"ru": "Места", "ru": "Места",
"uk": "Місцевість" "uk": "Місцевість"
}, },
"type": "index",
"subCategories": [ "subCategories": [
{ {
"id": "places" "id": "places"

8
power.json

@ -21,14 +21,14 @@
"16": "(node[power];way[power];relation[power];)" "16": "(node[power];way[power];relation[power];)"
}, },
"feature": { "feature": {
"markerSign": null,
"description": "{{ tagTrans('power', tags.power) }}{% set x='generator:source' %}{% if tags[x] %}, {{ tagTransList('generator:source', tags[x]) }}{% endif %}",
"popupDescription": "{{ tagTrans('power', tags.power) }}",
"body": [ "body": [
"{% set x='generator:source' %}{% if tags[x] %}<br/>{{ keyTrans('generator:source') }}: {{ tagTransList('generator:source', tags[x]) }}{% endif %}", "{% set x='generator:source' %}{% if tags[x] %}<br/>{{ keyTrans('generator:source') }}: {{ tagTransList('generator:source', tags[x]) }}{% endif %}",
"{% set x='generator:method' %}{% if tags[x] %}<br/>{{ keyTrans('generator:method') }}: {{ tagTransList('generator:method', tags[x]) }}{% endif %}", "{% set x='generator:method' %}{% if tags[x] %}<br/>{{ keyTrans('generator:method') }}: {{ tagTransList('generator:method', tags[x]) }}{% endif %}",
"{% set x='generator:type' %}{% if tags[x] %}<br/>{{ tagTransList('generator:type') }}: {{ tagTrans('generator:type', tags[x]) }}{% endif %}" "{% set x='generator:type' %}{% if tags[x] %}<br/>{{ tagTransList('generator:type') }}: {{ tagTrans('generator:type', tags[x]) }}{% endif %}"
], ],
"description": "{{ tagTrans('power', tags.power) }}{% set x='generator:source' %}{% if tags[x] %}, {{ tagTransList('generator:source', tags[x]) }}{% endif %}",
"priority": "{% if tags.power == 'plant' %}0{% elseif tags.power == 'generator' or tags.power == 'line' %}1{% elseif tags.power == 'substation' %}2{% else %}3{% endif %}",
"popupDescription": "{{ tagTrans('power', tags.power) }}"
"markerSign": null,
"priority": "{% if tags.power == 'plant' %}0{% elseif tags.power == 'generator' or tags.power == 'line' %}1{% elseif tags.power == 'substation' %}2{% else %}3{% endif %}"
} }
} }

4
pt_routes.json

@ -8,11 +8,11 @@
"13": "relation[type=route][route~\"^(bus|trolleybus|ferry|train|tram)$\"];" "13": "relation[type=route][route~\"^(bus|trolleybus|ferry|train|tram)$\"];"
}, },
"feature": { "feature": {
"description": "{{ tagTrans('route', tags.route) }}",
"title": [ "title": [
"{% if tags.ref %}{{ tags.ref }} - {% endif %}", "{% if tags.ref %}{{ tags.ref }} - {% endif %}",
"", "",
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}" "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
]
],
"description": "{{ tagTrans('route', tags.route) }}"
} }
} }

4
public.json

@ -21,8 +21,8 @@
}, },
"feature": { "feature": {
"title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', tags.amenity)) }}", "title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', tags.amenity)) }}",
"markerSign": "{% if tags.amenity=='post_office' %}&#127972;{% elseif tags.amenity=='post_box'%}&#128238;{% elseif tags.amenity=='internet_cafe' %}&#128187;{% elseif tags.amenity=='telephone' %}&#9990;{% endif %}",
"description": "{{ tagTrans('amenity', tags.amenity) }}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}", "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
"description": "{{ tagTrans('amenity', tags.amenity) }}"
"markerSign": "{% if tags.amenity=='post_office' %}&#127972;{% elseif tags.amenity=='post_box'%}&#128238;{% elseif tags.amenity=='internet_cafe' %}&#128187;{% elseif tags.amenity=='telephone' %}&#9990;{% endif %}"
} }
} }

63
railway-electrification.json

@ -34,36 +34,7 @@
" {% endif %}", " {% endif %}",
"{% endif %}" "{% endif %}"
], ],
"style:casing": {
"color": "white",
"weight": "{{ weight }}",
"fill": null,
"opacity": "1"
},
"style": {
"color": "{{ color }}",
"weight": "{{ weight }}",
"dashArray": [
"{% if not tags.electrified or tags.electrified == 'no' %}",
"{% elseif tags.frequency == 0 %}",
"{% else %}",
"5,2",
"{% endif %}"
],
"opacity": "1",
"lineCap": "butt"
},
"styles": "casing,default",
"markerSign": null,
"body": [
"{{ tagTrans('railway', tags.railway) }}<br/>",
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}",
"{% if tags.usage %}{{ keyTrans('usage') }}: {{ tagTrans('usage', tags.usage)|default(trans('unknown')) }}<br/>{% endif %}",
"{% if tags.service %}{{ keyTrans('service') }}: {{ tagTrans('service', tags.service ) }}<br/>{% endif %}",
"{{ keyTrans('gauge') }}: {{ tags.gauge|default(trans('unknown')) }}<br/>",
"{% if tags.electrified == 'no' %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', 'no') }}{% elseif tags.electrified %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', tags.electrified) }}, {{ keyTrans('voltage') }}: {{ tags.voltage|default(trans('unknown')) }}, {{ keyTrans('frequency') }}: {{ tags.frequency|default(trans('unknown')) }}<br/>{% endif %}",
""
],
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"description": [ "description": [
"{{ tagTrans('railway', tags.railway) }} -", "{{ tagTrans('railway', tags.railway) }} -",
"", "",
@ -73,9 +44,37 @@
" {{ tags.voltage|default(trans('unknown')) }}V, {{ tags.frequency|default(trans('unknown')) }}Hz", " {{ tags.voltage|default(trans('unknown')) }}V, {{ tags.frequency|default(trans('unknown')) }}Hz",
"{% endif %}" "{% endif %}"
], ],
"body": [
"{{ tagTrans('railway', tags.railway) }}<br/>",
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}",
"{% if tags.usage %}{{ keyTrans('usage') }}: {{ tagTrans('usage', tags.usage)|default(trans('unknown')) }}<br/>{% endif %}",
"{% if tags.service %}{{ keyTrans('service') }}: {{ tagTrans('service', tags.service ) }}<br/>{% endif %}",
"{{ keyTrans('gauge') }}: {{ tags.gauge|default(trans('unknown')) }}<br/>",
"{% if tags.electrified == 'no' %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', 'no') }}{% elseif tags.electrified %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', tags.electrified) }}, {{ keyTrans('voltage') }}: {{ tags.voltage|default(trans('unknown')) }}, {{ keyTrans('frequency') }}: {{ tags.frequency|default(trans('unknown')) }}<br/>{% endif %}"
],
"markerSign": null,
"listMarkerSymbol": "line",
"priority": "{% if tags.railway == 'station' %}0{% elseif tags.railway in [ 'halt', 'tram_stop' ] %}1{% else %}5{% endif %}", "priority": "{% if tags.railway == 'station' %}0{% elseif tags.railway in [ 'halt', 'tram_stop' ] %}1{% else %}5{% endif %}",
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"listMarkerSymbol": "line"
"styles": "casing,default",
"style": {
"weight": "{{ weight }}",
"color": "{{ color }}",
"opacity": "1",
"lineCap": "butt",
"dashArray": [
"{% if not tags.electrified or tags.electrified == 'no' %}",
"{% elseif tags.frequency == 0 %}",
"{% else %}",
"5,2",
"{% endif %}"
]
},
"style:casing": {
"weight": "{{ weight }}",
"color": "white",
"opacity": "1",
"fill": null
}
}, },
"info": [ "info": [
"<table>", "<table>",

100
railway-infrastructure.json

@ -10,23 +10,46 @@
"17": "(node[railway];way[railway];)" "17": "(node[railway];way[railway];)"
}, },
"feature": { "feature": {
"style:casing": {
"weight": "{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}5{% else %}{% if tags.railway == 'rail' %}{% if tags.usage == 'main' or tags.usage == 'branch' %}7{% else %}6{% endif %}{% elseif tags.railway == 'platform' %}5{% else %}6{% endif %}{% endif %}",
"color": "{% if tags.railway == 'rail' or tags.railway == 'narrow_gauge' or tags.railway == 'disused' %}{% if tags.usage == 'main' %}#ff8100{% elseif tags.usage == 'branch' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == 'subway' %}#0000ff{% elseif tags.railway == 'tram' %}#ff00ff{% elseif tags.railway == 'light_rail' %}#00BD14{% elseif tags.railway == 'platform' %}#3f3f3f{% else %}#000000{% endif %}",
"dashArray": "2,4",
"lineCap": "butt"
},
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"description": "{{ tagTrans('railway', tags.railway) }}",
"body": [
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}",
"{% if tags.usage %}{{ keyTrans('usage') }}: {{ tagTrans('usage', tags.usage)|default(trans('unknown')) }}<br/>{% endif %}",
"{% if tags.service %}{{ keyTrans('service') }}: {{ tagTrans('service', tags.service ) }}<br/>{% endif %}",
"{{ keyTrans('gauge') }}: {{ tags.gauge|default(trans('unknown')) }}<br/>",
"{% if tags.electrified == 'no' %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', 'no') }}{% elseif tags.electrified %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', tags.electrified) }}, {{ keyTrans('voltage') }}: {{ tags.voltage|default(trans('unknown')) }}, {{ keyTrans('frequency') }}: {{ tags.frequency|default(trans('unknown')) }}<br/>{% endif %}",
""
],
"markerSign": "{% if tags.railway in [ 'halt', 'tram_stop', 'station', 'stop', 'subway_entrance' ] %}X{% endif %}",
"markerSymbol": [
"{% if tags.railway == 'signal' %}",
"<svg width='10' height='10'>",
" <circle cx='4.5' cy='4.5' r='3' style='stroke-width: 3; stroke: #000000; fill: #ffffff'>",
"</svg>",
"{% else %}",
"{{ markerPointer({})|raw }}",
"{% endif %}"
],
"listMarkerSymbol": [
"{% if tags.railway in [ 'station', 'halt', 'tram_stop', 'stop', 'subway_entrance', 'signal' ] %}",
"{% else %}",
"line",
"{% endif %}"
],
"priority": [
"{% if tags.railway == 'station' %}0",
"{% elseif tags.railway in [ 'halt' ] %}1",
"{% elseif tags.railway in [ 'tram_stop', 'stop' ] %}2",
"{% elseif tags.railway in [ 'subway_entrance' ] %}3",
"{% else %}5",
"{% endif %}"
],
"styles": "{% if tags.railway == 'narrow_gauge' %}default,casing{% else %}default{% endif %}",
"style": { "style": {
"color": "{% if tags.railway == 'rail' or tags.railway == 'narrow_gauge' or tags.railway == 'disused' %}{% if tags.usage == 'main' %}#ff8100{% elseif tags.usage == 'branch' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == 'subway' %}#0000ff{% elseif tags.railway == 'tram' %}#ff00ff{% elseif tags.railway == 'light_rail' %}#00BD14{% elseif tags.railway == 'platform' %}#3f3f3f{% else %}#000000{% endif %}",
"weight": "{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}1{% else %}{% if tags.railway == 'rail' %}{% if tags.usage == 'main' or tags.usage == 'branch' %}3{% else %}2{% endif %}{% elseif tags.railway == 'platform' %}1{% else %}2{% endif %}{% endif %}", "weight": "{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}1{% else %}{% if tags.railway == 'rail' %}{% if tags.usage == 'main' or tags.usage == 'branch' %}3{% else %}2{% endif %}{% elseif tags.railway == 'platform' %}1{% else %}2{% endif %}{% endif %}",
"color": "{% if tags.railway == 'rail' or tags.railway == 'narrow_gauge' or tags.railway == 'disused' %}{% if tags.usage == 'main' %}#ff8100{% elseif tags.usage == 'branch' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == 'subway' %}#0000ff{% elseif tags.railway == 'tram' %}#ff00ff{% elseif tags.railway == 'light_rail' %}#00BD14{% elseif tags.railway == 'platform' %}#3f3f3f{% else %}#000000{% endif %}",
"opacity": "1",
"dashArray": "{% if tags.railway == 'rail' %}{% elseif tags.railway == 'disused' %}1,5{% elseif tags.railway == 'abandoned' %}1,7{% endif %}", "dashArray": "{% if tags.railway == 'rail' %}{% elseif tags.railway == 'disused' %}1,5{% elseif tags.railway == 'abandoned' %}1,7{% endif %}",
"fillColor": [
"{% if tags.railway == 'platform' %}",
"#3f3f3f",
"{% elseif type == 'node' %}",
"#ffffff",
"{% endif %}"
],
"fill": [ "fill": [
"{% if tags.railway == 'platform' %}", "{% if tags.railway == 'platform' %}",
"1", "1",
@ -35,7 +58,13 @@
"{% else %}", "{% else %}",
"{% endif %}" "{% endif %}"
], ],
"opacity": "1",
"fillColor": [
"{% if tags.railway == 'platform' %}",
"#3f3f3f",
"{% elseif type == 'node' %}",
"#ffffff",
"{% endif %}"
],
"fillOpacity": [ "fillOpacity": [
"{% if tags.railway == 'platform' %}", "{% if tags.railway == 'platform' %}",
"0.2", "0.2",
@ -44,41 +73,12 @@
"{% endif %}" "{% endif %}"
] ]
}, },
"styles": "{% if tags.railway == 'narrow_gauge' %}default,casing{% else %}default{% endif %}",
"markerSign": "{% if tags.railway in [ 'halt', 'tram_stop', 'station', 'stop', 'subway_entrance' ] %}X{% endif %}",
"body": [
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}",
"{% if tags.usage %}{{ keyTrans('usage') }}: {{ tagTrans('usage', tags.usage)|default(trans('unknown')) }}<br/>{% endif %}",
"{% if tags.service %}{{ keyTrans('service') }}: {{ tagTrans('service', tags.service ) }}<br/>{% endif %}",
"{{ keyTrans('gauge') }}: {{ tags.gauge|default(trans('unknown')) }}<br/>",
"{% if tags.electrified == 'no' %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', 'no') }}{% elseif tags.electrified %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', tags.electrified) }}, {{ keyTrans('voltage') }}: {{ tags.voltage|default(trans('unknown')) }}, {{ keyTrans('frequency') }}: {{ tags.frequency|default(trans('unknown')) }}<br/>{% endif %}",
""
],
"description": "{{ tagTrans('railway', tags.railway) }}",
"priority": [
"{% if tags.railway == 'station' %}0",
"{% elseif tags.railway in [ 'halt' ] %}1",
"{% elseif tags.railway in [ 'tram_stop', 'stop' ] %}2",
"{% elseif tags.railway in [ 'subway_entrance' ] %}3",
"{% else %}5",
"{% endif %}"
],
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"listMarkerSymbol": [
"{% if tags.railway in [ 'station', 'halt', 'tram_stop', 'stop', 'subway_entrance', 'signal' ] %}",
"{% else %}",
"line",
"{% endif %}"
],
"markerSymbol": [
"{% if tags.railway == 'signal' %}",
"<svg width='10' height='10'>",
" <circle cx='4.5' cy='4.5' r='3' style='stroke-width: 3; stroke: #000000; fill: #ffffff'>",
"</svg>",
"{% else %}",
"{{ markerPointer({})|raw }}",
"{% endif %}"
]
"style:casing": {
"weight": "{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}5{% else %}{% if tags.railway == 'rail' %}{% if tags.usage == 'main' or tags.usage == 'branch' %}7{% else %}6{% endif %}{% elseif tags.railway == 'platform' %}5{% else %}6{% endif %}{% endif %}",
"color": "{% if tags.railway == 'rail' or tags.railway == 'narrow_gauge' or tags.railway == 'disused' %}{% if tags.usage == 'main' %}#ff8100{% elseif tags.usage == 'branch' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == 'subway' %}#0000ff{% elseif tags.railway == 'tram' %}#ff00ff{% elseif tags.railway == 'light_rail' %}#00BD14{% elseif tags.railway == 'platform' %}#3f3f3f{% else %}#000000{% endif %}",
"lineCap": "butt",
"dashArray": "2,4"
}
}, },
"info": [ "info": [
"<table>", "<table>",

4
religion.json

@ -38,6 +38,7 @@
"{% endif %}" "{% endif %}"
], ],
"description": "{{ tagTrans(key, value) }}{% if tags.religion %}: {{ tagTransList('religion', tags.religion) }}{% endif %}", "description": "{{ tagTrans(key, value) }}{% if tags.religion %}: {{ tagTransList('religion', tags.religion) }}{% endif %}",
"popupDescription": "{{ tagTrans(key, value) }}",
"body": [ "body": [
"{% if tags.religion %}", "{% if tags.religion %}",
" {{ keyTrans('religion') }}: {{ tagTransList('religion', tags.religion) }}", " {{ keyTrans('religion') }}: {{ tagTransList('religion', tags.religion) }}",
@ -55,7 +56,6 @@
"{% elseif tags.religion == 'jewish' %}✡", "{% elseif tags.religion == 'jewish' %}✡",
"{% elseif tags.religion == 'pagan' %}☆", "{% elseif tags.religion == 'pagan' %}☆",
"{% endif %}" "{% endif %}"
],
"popupDescription": "{{ tagTrans(key, value) }}"
]
} }
} }

4
sport.json

@ -18,12 +18,12 @@
"14": "(node[sport];way[sport];relation[sport])" "14": "(node[sport];way[sport];relation[sport])"
}, },
"feature": { "feature": {
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTransList('sport', tags.sport)) }}",
"description": "{{ tagTransList('sport', tags.sport) }}", "description": "{{ tagTransList('sport', tags.sport) }}",
"markerSign": [ "markerSign": [
"{% set firstSport = tags.sport|split(';')[0] %}", "{% set firstSport = tags.sport|split(';')[0] %}",
"{{ const[firstSport] }}" "{{ const[firstSport] }}"
],
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTransList('sport', tags.sport)) }}"
]
}, },
"const": { "const": {
"9pin": "🎳", "9pin": "🎳",

2
walk_amenities.json

@ -49,8 +49,8 @@
"", "",
"{% set type_data = const[value] %}" "{% set type_data = const[value] %}"
], ],
"description": "{{ tagTrans(key, value) }}",
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}", "title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}",
"description": "{{ tagTrans(key, value) }}",
"markerSign": "{{ type_data.sign|raw }}", "markerSign": "{{ type_data.sign|raw }}",
"priority": "{{ type_data.priority }}" "priority": "{{ type_data.priority }}"
}, },

5
works.json

@ -1,4 +1,5 @@
{ {
"type": "overpass",
"name": { "name": {
"ast": "Fábriques", "ast": "Fábriques",
"cs": "Továrny", "cs": "Továrny",
@ -10,12 +11,10 @@
"nl": "Fabrieken", "nl": "Fabrieken",
"ru": "Промышленность" "ru": "Промышленность"
}, },
"type": "overpass",
"query": { "query": {
"12": "(node[landuse~'^(industrial)$'];way[landuse~'^(industrial)$'];relation[landuse~'^(industrial)$'];)" "12": "(node[landuse~'^(industrial)$'];way[landuse~'^(industrial)$'];relation[landuse~'^(industrial)$'];)"
}, },
"minZoom": 12,
"feature": { "feature": {
"markerSign": ""
"markerSign": null
} }
} }
Loading…
Cancel
Save