mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: better geo-json
This commit is contained in:
parent
e49a4b5b2a
commit
5eddce9624
@ -39,7 +39,7 @@ export async function Global({ countries = [] }: GlobalProps) {
|
||||
const geoJson = JSON.parse(geoJsonString);
|
||||
|
||||
countries_alpha3.forEach((countryCode) => {
|
||||
const feature = geoJson.features.find((f: any) => f.id === countryCode);
|
||||
const feature = geoJson.features.find((f: any) => f.properties.iso_a3 === countryCode);
|
||||
|
||||
if (feature) {
|
||||
// 获取国家的边界框
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user