中国地图使用心得
注册地图是注册在echarts对象上而非 自己构建的echarts dom上、。
请求本地json文件
vue项目的public打包时不会动,所以线上和本地地址直接指向了public同级目录,请求时直接相对路径
绘制中国地图时,如何在各个省会地方出现小圆点,和控制小圆点文字显示
https://segmentfault.com/q/1010000021110815
中国省会坐标保存
'北京': ['116.3979471', '39.9081726'],'上海': ['121.4692688', '31.2381763'],'天津': ['117.2523808', '39.1038561'],'重庆': ['106.548425', '29.5549144'],'河北': ['114.4897766', '38.0451279'],'山西': ['112.5223053', '37.8357424'],'辽宁': ['123.4116821', '41.7966156'],'吉林': ['125.3154297', '43.8925629'],'黑龙江': ['126.6433411', '45.7414932'],'浙江': ['120.1592484', '30.265995'],'福建': ['119.2978134', '26.0785904'],'山东': ['117.0056', '36.6670723'],'河南': ['113.6500473', '34.7570343'],'湖北': ['114.2919388', '30.5675144'],'湖南': ['112.9812698', '28.2008247'],'广东': ['113.2614288', '23.1189117'],'海南': ['110.3465118', '20.0317936'],'四川': ['104.0817566', '30.6610565'],'贵州': ['106.7113724', '26.5768738'],'云南': ['102.704567', '25.0438442'],'江西': ['115.8999176', '28.6759911'],'陕西': ['108.949028', '34.2616844'],'青海': ['101.7874527', '36.6094475'],'甘肃': ['103.7500534', '36.0680389'],'广西': ['108.3117676', '22.8065434'],'新疆': ['87.6061172', '43.7909393'],'内蒙古': ['111.6632996', '40.8209419'],'西藏': ['91.1320496', '29.657589'],'宁夏': ['106.2719421', '38.4680099'],'台湾': ['120.9581316', '23.8516062'],'香港': ['114.139452', '22.391577'],'澳门': ['113.5678411', '22.167654'],'安徽': ['117.2757034', '31.8632545'],'江苏': ['118.7727814', '32.0476151']
visualMap 使用左下角的热力条
https://www.csdn.net/tags/NtzaUg3sOTQ5MTAtYmxvZwO0O0OO0O0O.html
https://www.jianshu.com/p/9de6527a50d7
关于echars 滑动鼠标浏览器一直报错
https://blog.csdn.net/qq_39548550/article/details/125147909