Skip to content

Commit

Permalink
Merge pull request #9 from vatger/remove-edyy-sector-filtering
Browse files Browse the repository at this point in the history
Filter EDYY sectors not belonging to vACC Germany
  • Loading branch information
LeoKle authored Jul 2, 2023
2 parents 7decb83 + d65872f commit e41cb8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ export default function LoaViewerMap() {
for (const airspace of airspaces) {
if (airspace.group === selectedFir) {
const owner = airspace.owner[0];
if (!owner.includes('_')) {
// filter approach stations not belonging to vACC Germany - all approach sectors are not using Vatsim callsigns i.e. no _ in their name
const isNonGermanApproachStation = owner.includes('_');
// filter Maastricht Sectors belonging to vACC Germany - sectors belonging to vACC Germany have 3 or more characters
const isGermanMaastrichtSector = owner.length > 2;
if (!isNonGermanApproachStation && isGermanMaastrichtSector) {
stationsSet.add(owner);
}
}
Expand Down

0 comments on commit e41cb8d

Please sign in to comment.