{
  "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",
    "cs": "OSM Community Index",
    "es": "Índice de la comunidad OSM"
  },
  "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",
    "cs": "Vrstva zobrazující komunity OpenStreetMap",
    "es": "Una capa que muestra las comunidades de OpenStreetMap"
  },
  "source": {
    "geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/community_index/tile_{z}_{x}_{y}.geojson",
    "geoJsonZoomLevel": 6,
    "osmTags": "resources~*"
  },
  "calculatedTags": [
    "_community_links=Object.values(JSON.parse(feat.properties.resources || '{}')).map(value =>{return value.resolved.nameHTML + '<br>&emsp;' + value.resolved.descriptionHTML}).join('<br>')"
  ],
  "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",
      "cs": "OSM Community Index",
      "es": "Índice de la comunidad OSM"
    }
  },
  "pointRendering": [
    {
      "iconSize": "40,40",
      "location": [
        "point"
      ],
      "anchor": "bottom",
      "marker": [
        {
          "icon": "pin",
          "color": "#6BC4F7"
        },
        {
          "icon": "./assets/layers/osm_community_index/osm.svg"
        }
      ]
    }
  ],
  "lineRendering": [
    {
      "color": "#444444",
      "width": "1"
    }
  ],
  "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...)"
    }
  ],
  "filter": [
    {
      "id": "country",
      "options": [
        {
          "question": {
            "en": "Country",
            "de": "Land",
            "nl": "Land",
            "ca": "País",
            "fr": "Pays",
            "pl": "Kraj",
            "cs": "Země",
            "es": "País"
          },
          "osmTags": "level=country"
        }
      ]
    },
    {
      "id": "sub_country",
      "options": [
        {
          "question": {
            "en": "Sub Country Group",
            "de": "Regionale Gruppe",
            "ca": "Subgrup de països",
            "cs": "Skupina dílčích zemí",
            "es": "Grupo de subpaíses"
          },
          "osmTags": "level=subcountryGroup"
        }
      ]
    },
    {
      "id": "region",
      "options": [
        {
          "question": {
            "en": "Region",
            "de": "Region",
            "nl": "Regio",
            "ca": "Regió",
            "fr": "Région",
            "pl": "Region",
            "cs": "Region",
            "es": "Región"
          },
          "osmTags": "level=region"
        }
      ]
    },
    {
      "id": "intermediate_region",
      "options": [
        {
          "question": {
            "en": "Intermediate Region",
            "de": "Mittlere Region",
            "ca": "Regió intermèdia",
            "cs": "Střední region",
            "es": "Región intermedia"
          },
          "osmTags": "level=intermediateRegion"
        }
      ]
    },
    {
      "id": "territory",
      "options": [
        {
          "question": {
            "en": "Territory",
            "de": "Gebiet",
            "ca": "Territori",
            "fr": "Territoire",
            "pl": "Terytorium",
            "cs": "Území",
            "es": "Territorio"
          },
          "osmTags": "level=territory"
        }
      ]
    },
    {
      "id": "world",
      "options": [
        {
          "question": {
            "en": "World",
            "de": "Welt",
            "nl": "Wereld",
            "ca": "Món",
            "fr": "Monde",
            "pl": "Świat",
            "cs": "Svět",
            "es": "Mundo"
          },
          "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",
            "cs": "Ostatní komunity",
            "es": "Otras comunidades"
          },
          "osmTags": "level="
        }
      ]
    }
  ],
  "allowMove": false
}
