153 lines
3.5 KiB
JSON
153 lines
3.5 KiB
JSON
{
|
|
"id": "osm_community_index",
|
|
"name": {
|
|
"en": "OSM Community Index",
|
|
"de": "OSM-Community-Index",
|
|
"ca": "Índex de comunitats d'OSM"
|
|
},
|
|
"title": {
|
|
"render": {
|
|
"en": "OSM Community Index",
|
|
"de": "OSM-Community-Index",
|
|
"ca": "Índex de comunitats d'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"
|
|
},
|
|
"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ó"
|
|
},
|
|
"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"
|
|
},
|
|
"osmTags": "level=territory"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "world",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "World",
|
|
"de": "Welt",
|
|
"nl": "Wereld",
|
|
"ca": "Món"
|
|
},
|
|
"osmTags": "level=world"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "other",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Other Communities",
|
|
"de": "Andere Communities",
|
|
"ca": "Altres Comunitats"
|
|
},
|
|
"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"
|
|
}
|
|
}
|