You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hc-key format for Connecticut is different than for every other US state I've noticed. I'm guessing this was introduced in #146. This quirk makes applications that use maps for multiple states more difficult as special configuration is needed just for CT.
Connecticut:
hc-key: "us-ct-09170"
Arkansas, for example:
hc-key: "us-ar-073"
The text was updated successfully, but these errors were encountered:
Adding a special case for Connecticut for now might be beneficial in the future if other maps will also follow up on the new format.
The old key was based on something that is no longer available so instead of copying it over we have switched to using fips codes as they are more reliable.
Any hc- properties are generated based on something that makes sense but if you prefer to use properties based on some standards developed and maintained outside of Highcharts you could use fips, hasc, iso-.
I think I understand your problem and I tried to better explain why things are like they are right now, but if you have an expected behavior in mind we could continue the discussion.
Also would you mind sharing the reason why hc-keys are moving away from iso codes?
They were never strict binding between ISO 3166-2 codes and hc-key as far as I know. We follow the docs to keep the backwards compatibility and in there there's no ISO obligatory mention in relation to the hc-key property. Relation for hc-key and ISO 3166-1 for countries is maintained, but providing a more dedicated iso-3166 property is preferred so the expectation would be clearer. hc-key usage is mostly internal by design, hence the prefix hc-.
Connecticut's ISO 3166-2 is US-CT and there's no further subdivision for Connecticut with ISO 3166 codes as far as I know. New maps and updates for the Map Collection are made using OSM that is public and open for modifications, so if a code is missing or wrong it can be added or corrected at the source. We are also using older fips or hasc codes from the current Map Collection maps when OSM is not providing them.
The hc-key format for Connecticut is different than for every other US state I've noticed. I'm guessing this was introduced in #146. This quirk makes applications that use maps for multiple states more difficult as special configuration is needed just for CT.
Connecticut:
Arkansas, for example:
The text was updated successfully, but these errors were encountered: