export async function getSimulateData() { const response = await fetch("/json/仿真方案.json", { mode: "cors", cache: "no-cache", headers: { "Content-Type": "application/json", }, }) return await response.json() } export async function getDuanMainData() { const response = await fetch("/json/孙胡沟仿真标注地物.json", { mode: "cors", cache: "no-cache", headers: { "Content-Type": "application/json", }, }) return await response.json() } export async function getDistrictListData() { const response = await fetch("/json/隐患点信息.json", { mode: "cors", cache: "no-cache", headers: { "Content-Type": "application/json", }, }) return await response.json() } export async function getDistrictCount() { const response = await fetch("/json/北京市隐患点按区统计.json", { mode: "cors", cache: "no-cache", headers: { "Content-Type": "application/json", }, }) return await response.json() } // export async function getDistrictCount() { // const response = await fetch("/json/response.json", { // mode: "cors", // cache: "no-cache", // headers: { // "Content-Type": "application/json", // }, // }) // return await response.json() // } export async function getDistrictCountByCity() { const response = await fetch("/json/CountByCounty.json", { mode: "cors", cache: "no-cache", headers: { "Content-Type": "application/json", }, }) return await response.json() } export async function getRainfall() { const response = await fetch("/json/rainfall.json", { mode: "cors", cache: "no-cache", headers: { "Content-Type": "application/json", }, }) return await response.json() } export async function getMaxInfluenceArea() { const response = await fetch("/json/listMaxInfluenceArea_wgs84_output.json", { mode: "cors", cache: "no-cache", headers: { "Content-Type": "application/json", }, }) return await response.json() }