feat: Add additional country coordinates for improved geographic mapping

This commit is contained in:
Max Kowalski
2025-06-26 19:32:53 +02:00
parent 8c43a35632
commit ab2c75b736

View File

@ -25,6 +25,30 @@ const getCountryCoordinates = (): Record<string, [number, number]> => {
US: [37.0902, -95.7129], US: [37.0902, -95.7129],
GB: [55.3781, -3.436], GB: [55.3781, -3.436],
BA: [43.9159, 17.6791], BA: [43.9159, 17.6791],
NL: [52.1326, 5.2913],
DE: [51.1657, 10.4515],
FR: [46.6034, 1.8883],
IT: [41.8719, 12.5674],
ES: [40.4637, -3.7492],
CA: [56.1304, -106.3468],
PL: [51.9194, 19.1451],
SE: [60.1282, 18.6435],
NO: [60.472, 8.4689],
FI: [61.9241, 25.7482],
CH: [46.8182, 8.2275],
AT: [47.5162, 14.5501],
BE: [50.8503, 4.3517],
DK: [56.2639, 9.5018],
CZ: [49.8175, 15.473],
HU: [47.1625, 19.5033],
PT: [39.3999, -8.2245],
GR: [39.0742, 21.8243],
RO: [45.9432, 24.9668],
IE: [53.4129, -8.2439],
BG: [42.7339, 25.4858],
HR: [45.1, 15.2],
SK: [48.669, 19.699],
SI: [46.1512, 14.9955]
}; };
// This function now primarily returns fallbacks. // This function now primarily returns fallbacks.
// The actual fetching using @rapideditor/country-coder will be in the component's useEffect. // The actual fetching using @rapideditor/country-coder will be in the component's useEffect.