{
  "id": "aed_brugge",
  "title": {
    "nl": "Open AED-kaart - Brugge edition"
  },
  "maintainer": "MapComplete",
  "icon": "./assets/themes/aed/logo.svg",
  "description": {
    "nl": "Op deze kaart kan je informatie over AEDs vinden en verbeteren + een export van de brugse defibrillatoren"
  },
  "version": "2021-05-16",
  "startLat": 51.25634,
  "startLon": 3.195682,
  "startZoom": 12,
  "layers": [
    "defibrillator",
    {
      "id": "brugge",
      "name": "Brugse dataset",
      "source": {
        "osmTags": "Brugs volgnummer~*",
        "geoJson": "https://raw.githubusercontent.com/pietervdvn/pietervdvn.github.io/master/aeds_brugge.json"
      },
      "calculatedTags": [
        "_closest_osm_aed=feat.closest('defibrillator')?.properties?.id",
        "_closest_osm_aed_distance=feat.distanceTo(feat.properties._closest_osm_aed)",
        "_has_closeby_feature=Number(feat.properties._closest_osm_aed_distance) < 25 ? 'yes' : 'no'"
      ],
      "title": "AED in Brugse dataset",
      "tagRenderings": [
        {
          "id": "status",
          "mappings": [
            {
              "if": "status=oud",
              "then": "<div class='alert'>Dit datapunt is verouderd</div>"
            }
          ]
        },
        {
          "id": "has closeby",
          "render": "<div class='thanks'>Er is al een AED gekend in de buurt</div>",
          "condition": "_has_closeby_feature=yes"
        },
        {
          "id": "openbaar",
          "render": "Bevindt zich in een openbaar gebouw: <b>{Openbare AED Gebouw}</b> (geen lokaal bekend)",
          "condition": "Openbare AED Gebouw~*",
          "mappings": [
            {
              "if": "Lokaal AED~*",
              "then": "Bevindt zich in een openbaar gebouw: <b>{Openbare AED Gebouw}</b> in lokaal <b>{Lokaal AED}</b>"
            }
          ]
        },
        {
          "id": "addr",
          "#": "Yes, 'nummer' writes with three 'm's",
          "render": "Het adres is {Straat} {Nummmer} {Bus}"
        },
        {
          "id": "oh",
          "render": "De openingsuren zijn <b>{OPENINGSUREN}</b>",
          "condition": "OPENINGSUREN~*"
        }
      ],
      "mapRendering": [
        {
          "icon": {
            "render": "circle:red",
            "mappings": [
              {
                "if": "_has_closeby_feature=yes",
                "then": "circle:#008000aa"
              }
            ]
          },
          "iconSize": "20,20,center",
          "location": [
            "point",
            "centroid"
          ]
        }
      ]
    }
  ],
  "hideFromOverview": true,
  "defaultBackgroundId": "HDM_HOT",
  "clustering": {
    "maxZoom": 0
  }
}