欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

echarts地图省市坐标

程序员文章站 2022-06-14 15:00:36
...

用的是省会的坐标

const geoCoordMap = {
  '北京': ['116.46', '39.92'],
  '上海': ['121.48', '31.22'],
  '天津': ['117.2', '39.13'],
  '重庆': ['106.54', '29.59'],
  '河北': ['114.48', '38.03'],
  '山西': ['112.53', '37.87'],
  '辽宁': ['123.38', '41.8'],
  '吉林': ['125.35', '43.88'],
  '黑龙江': ['126.63', '45.75'],
  '浙江': ['120.19', '30.26'],
  '福建': ['119.3', '26.08'],
  '山东': ['106.54', '29.59'],
  '河南': ['113.65', '34.76'],
  '湖北': ['114.31', '30.52'],
  '湖南': ['113', '28.21'],
  '广东': ['113.23', '23.16'],
  '海南': ['110.35', '20.02'],
  '四川': ['104.06', '30.67'],
  '贵州': ['106.71', '26.57'],
  '云南': ['102.73', '25.04'],
  '江西': ['115.89', '28.68'],
  '陕西': ['108.95', '34.27'],
  '青海': ['101.74', '36.56'],
  '甘肃': ['103.73', '36.03'],
  '广西': ['106.54', '29.59'],
  '*': ['87.68', '43.77'],
  '内蒙古': ['111.65', '40.82'],
  '*': ['91.11', '29.97'],
  '宁夏': ['106.27', '38.47'],
  '*': ['121.5', '25.14'],
  '香港': ['114.1', '22.2'],
  '澳门': ['113.33', '22.13'],
  '安徽': ['117.27', '31.86'],
  '江苏': ['118.78', '32.04']
}