Closed ZeLonewolf closed 1 month ago
All of the overrideByRef
, overrideByName
and refsByName
cases are at the end of the file. Either we should keep all of them together, or get rid of this section and put all of the special cases inline.
Ah, I see. It wasn't obvious to me that's what was going on here. At the least, we ought to group all parts of a shield definition together. For example, in the Nova Scotia section we find:
shields["CA:NS:S"] = {
notext: true,
};
Totally unclear that there's additional definition at the end of the file. I think the original notion was that we wanted to tightly limit the number of special cases and that's why we segregated them. :thinking:
I could see the number of "special cases" growing to the point where they're not so special. I think it makes more sense just to organize everything consistently.
Superceded by #1081
This is a minor refactor to put all the GLCT (Great Lakes Circle Tour) shield definition code together in the same place in shield_defs.json. They were thousands of lines apart which made it confusing to understand what was going on.