echarts地图省市坐标

echarts地图省市坐标

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/huang369509940/article/details/84944178

用的是省会的坐标

  1.  
    const geoCoordMap = {
  2.  
    '北京': ['116.46', '39.92'],
  3.  
    '上海': ['121.48', '31.22'],
  4.  
    '天津': ['117.2', '39.13'],
  5.  
    '重庆': ['106.54', '29.59'],
  6.  
    '河北': ['114.48', '38.03'],
  7.  
    '山西': ['112.53', '37.87'],
  8.  
    '辽宁': ['123.38', '41.8'],
  9.  
    '吉林': ['125.35', '43.88'],
  10.  
    '黑龙江': ['126.63', '45.75'],
  11.  
    '浙江': ['120.19', '30.26'],
  12.  
    '福建': ['119.3', '26.08'],
  13.  
    '山东': ['106.54', '29.59'],
  14.  
    '河南': ['113.65', '34.76'],
  15.  
    '湖北': ['114.31', '30.52'],
  16.  
    '湖南': ['113', '28.21'],
  17.  
    '广东': ['113.23', '23.16'],
  18.  
    '海南': ['110.35', '20.02'],
  19.  
    '四川': ['104.06', '30.67'],
  20.  
    '贵州': ['106.71', '26.57'],
  21.  
    '云南': ['102.73', '25.04'],
  22.  
    '江西': ['115.89', '28.68'],
  23.  
    '陕西': ['108.95', '34.27'],
  24.  
    '青海': ['101.74', '36.56'],
  25.  
    '甘肃': ['103.73', '36.03'],
  26.  
    '广西': ['106.54', '29.59'],
  27.  
    '新疆': ['87.68', '43.77'],
  28.  
    '内蒙古': ['111.65', '40.82'],
  29.  
    '西藏': ['91.11', '29.97'],
  30.  
    '宁夏': ['106.27', '38.47'],
  31.  
    '台湾': ['121.5', '25.14'],
  32.  
    '香港': ['114.1', '22.2'],
  33.  
    '澳门': ['113.33', '22.13'],
  34.  
    '安徽': ['117.27', '31.86'],
  35.  
    '江苏': ['118.78', '32.04']
  36.  

https://blog.csdn.net/piano9425/article/details/88312471

posted on 2019-11-19 13:44  曹明  阅读(2850)  评论(1编辑  收藏  举报