This commit is contained in:
eric
2026-06-06 04:29:46 -05:00
parent 88aa96a2a1
commit 41493c35ca
50 changed files with 4666 additions and 416 deletions

View File

@@ -3,6 +3,7 @@
import { useEffect, useRef, useState } from "react";
import * as echarts from "echarts";
import type { MapCity } from "./types";
import { apiUrl } from "@/app/lib/api-client";
const CHINA_MAP_URL = "/api/geo/china";
@@ -30,7 +31,7 @@ export function MembersMap({
const init = async () => {
try {
const res = await fetch(CHINA_MAP_URL);
const res = await fetch(apiUrl(CHINA_MAP_URL));
const geoJson = await res.json();
echarts.registerMap("china", geoJson);
} catch {