169 lines
4 KiB
JSON
169 lines
4 KiB
JSON
{
|
|
"id": "osm_community_index",
|
|
"name": {
|
|
"en": "OSM Community Index",
|
|
"de": "OSM-Community-Index",
|
|
"ca": "Índex de comunitats d'OSM",
|
|
"fr": "Index des communautés OSM",
|
|
"pl": "Indeks społeczności OSM"
|
|
},
|
|
"title": {
|
|
"render": {
|
|
"en": "OSM Community Index",
|
|
"de": "OSM-Community-Index",
|
|
"ca": "Índex de comunitats d'OSM",
|
|
"fr": "Index des communautés OSM",
|
|
"pl": "Indeks społeczności OSM"
|
|
}
|
|
},
|
|
"source": {
|
|
"geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/community_index/tile_{z}_{x}_{y}.geojson",
|
|
"geoJsonZoomLevel": 6,
|
|
"osmTags": "resources~*",
|
|
"isOsmCache": false
|
|
},
|
|
"calculatedTags": [
|
|
"_community_links=Object.values(JSON.parse(feat.properties.resources || '{}')).map(value =>{return value.resolved.nameHTML + '<br> ' + value.resolved.descriptionHTML}).join('<br>')"
|
|
],
|
|
"tagRenderings": [
|
|
{
|
|
"id": "country_name",
|
|
"condition": "level=country",
|
|
"render": "{nameEn} {emojiFlag}",
|
|
"description": "The name of the country"
|
|
},
|
|
{
|
|
"id": "community_links",
|
|
"render": "{_community_links}",
|
|
"condition": "_community_links~*",
|
|
"description": "Community Links (Discord, meetups, Slack groups, IRC channels, mailing lists etc...)"
|
|
}
|
|
],
|
|
"mapRendering": [
|
|
{
|
|
"icon": "pin:#6BC4F7;./assets/layers/osm_community_index/osm.svg",
|
|
"iconSize": "40,40",
|
|
"location": [
|
|
"point"
|
|
],
|
|
"anchor": "bottom"
|
|
},
|
|
{
|
|
"color": "#444444",
|
|
"width": "1"
|
|
}
|
|
],
|
|
"filter": [
|
|
{
|
|
"id": "country",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Country",
|
|
"de": "Land",
|
|
"nl": "Land",
|
|
"ca": "País",
|
|
"fr": "Pays",
|
|
"pl": "Kraj"
|
|
},
|
|
"osmTags": "level=country"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sub_country",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Sub Country Group",
|
|
"de": "Regionale Gruppe",
|
|
"ca": "Subgrup de països"
|
|
},
|
|
"osmTags": "level=subcountryGroup"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "region",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Region",
|
|
"de": "Region",
|
|
"nl": "Regio",
|
|
"ca": "Regió",
|
|
"fr": "Région",
|
|
"pl": "Region"
|
|
},
|
|
"osmTags": "level=region"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "intermediate_region",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Intermediate Region",
|
|
"de": "Mittlere Region",
|
|
"ca": "Regió intermèdia"
|
|
},
|
|
"osmTags": "level=intermediateRegion"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "territory",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Territory",
|
|
"de": "Gebiet",
|
|
"ca": "Territori",
|
|
"fr": "Territoire",
|
|
"pl": "Terytorium"
|
|
},
|
|
"osmTags": "level=territory"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "world",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "World",
|
|
"de": "Welt",
|
|
"nl": "Wereld",
|
|
"ca": "Món",
|
|
"fr": "Monde",
|
|
"pl": "Świat"
|
|
},
|
|
"osmTags": "level=world"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "other",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Other Communities",
|
|
"de": "Andere Communities",
|
|
"ca": "Altres Comunitats",
|
|
"fr": "Autres communautés",
|
|
"pl": "Inne społeczności"
|
|
},
|
|
"osmTags": "level="
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"description": {
|
|
"en": "A layer showing the OpenStreetMap Communities",
|
|
"de": "Eine Ebene aller OpenStreetMap-Communities",
|
|
"ca": "Una capa que mostra les comunitats d'OpenStreetMap",
|
|
"fr": "Une couche affichant les communautés OpenStreetMap",
|
|
"pl": "Warstwa pokazująca społeczności OpenStreetMap"
|
|
}
|
|
}
|