| | |
| | | import { loadBMap } from "@/static/map.js"; |
| | | import L from "leaflet"; |
| | | import "leaflet.chinatmsproviders"; |
| | | |
| | | import * as echarts from "echarts"; |
| | | import "echarts/extension/bmap/bmap"; |
| | | import { getRetrieval, getDynasty, getPreCount } from "@/api/index.js"; |
| | |
| | | dynasty: this.dynasty1Color, |
| | | }).then(async (res) => { |
| | | const totalCount = res.object; |
| | | console.log(totalCount, "totalCount"); |
| | | if (totalCount % 200 == 0) { |
| | | times = totalCount / 200 - 1; |
| | | } else { |
| | | times = Math.floor(totalCount / 200); |
| | | } |
| | | console.log(times, "times"); |
| | | if (times == 0 || times < 0) times = 1; |
| | | let markerList = []; |
| | | for (let i = 1; i <= times; i++) { |
| | | const curData = await this.getDataPageInfo(i); |