johanohly/AirTrail

Kosovo not clickable in Visited Countries View

Closed this issue · 0 comments

The bug

When using the visited countries view, Kosovo's geometry is drawn, but the region itself is not clickable.

The reason for this appears to be that in src/lib/data/countries-geo.ts, Kosovo lacks the id field (line 1497):

{
  type: 'Polygon',
  arcs: [[-493, -594, -591, -589]],
  properties: {
    name: 'Kosovo',
  },
},

The id field in this file corresponds to the ISO 3166-1 numeric-3 code and also appears in scripts/other/Country Data Codes.csv (line 139). However, Kosovo has not been assigned an ISO 3166-1 numeric-3 identifier, though it does have ISO 3166-1 alpha-2 and alpha-3 codes, which are XK and XKS respectively.

As the interface logic seems to depend on the ISO 3166-1 numeric-3 code to be present to populate the id field, it appears that this makes Kosovo unclickable in the map.

One potential fix is to manually assign Kosovo a non ISO 3166-1 compliant code for the purposes of facilitating UI interactions, such as a four-digit identifier.

Operating System that is running AirTrail

Ubuntu

AirTrail Version

latest

Your docker-compose.yml content

No response

Your .env content

No response

Reproduction steps

  1. Open airtrail
  2. Go to visited countries mode
  3. click Kosovo

Relevant log output

No response

Additional information

No response