随着开发 可视化数据大屏 项目越来越多,对地图的需求也各不相同,除了百度地图和高德地图外还会遇到echarts和threejs的需要,对地图的效果以及城市也各不相同,今天为大家整理衡阳市衡南县echarts地图和threejs地图效果实例供大家参考。地图基于geoJson数据绘制。
echarts衡阳市衡南县geoJson地图根据经纬度显示自定义html弹窗
echarts地图我们可以通过像素坐标来将我们自定义的html弹窗定位到echarts地图指定位置,如果是固定的宽高的话,这没什么问题直接定位就可以了,如果是自适应宽高的地图我们可能没办法控制精度,我们可以使用经纬度来控制,当echarts地图渲染完成以后,我们可以通过convertToPixel将经纬度转为像素坐标,然后再渲染自定义弹窗,这样精度就比较准确了,而且也不会因为窗体宽高变化而导致弹窗出现偏移.
echarts衡阳市衡南县geoJson地图添加柱状图
echarts地图渲染时,为了让地图上的数据有一个对比的效果,会在地图上标注柱状图,以便于更直观的看出各个区域的数值.
echarts衡阳市衡南县geoJson地图水滴状气泡图
echarts地图渲染时,会通过一个水滴状小气泡来将数值渲染到地图上,我们可以可以通过scatter来实现我们想要的效果.
threejs衡阳市衡南县geoJson地图3d地图添加描边效果
通过threejs绘制3d地图使用outlinePass 实现发光描边效果,如果想系统的学习threejs的话,可以观看threejs视频教程 Three.js前端3D可视化
threejs衡阳市衡南县geoJson地图3d地图
通过threejs绘制的3d地图实例 vue3 threejs 在vue3项目中绘制3d地图效果实例
threejs衡阳市衡南县geoJson地图3d地图自定义贴图加CSS3D标签
通过threejs绘制3d地图并添加CSS3D标签和自定义贴图
衡阳市衡南县 下辖有 松江镇,柞市镇,栗江镇,鸡笼镇,宝盖镇,花桥镇,近尾洲镇,铁丝塘镇,衡南县原种场,咸塘镇,廖田镇,三塘镇,泉溪镇,洪山镇,相市乡,硫市镇,衡州监狱,衡南县岐山街道,江口镇,泉湖镇,茅市镇,茶市镇,云集镇,冠市镇,谭子山镇
衡阳市衡南县下辖区域坐标
{"松江镇":[112.57573636344327,26.65918169885461],"柞市镇":[112.28057998316262,26.72785482106318],"栗江镇":[112.49022104153792,26.6278761902259],"鸡笼镇":[112.2016301308218,26.859215156469],"宝盖镇":[113.04452787605055,26.75855375463194],"花桥镇":[112.98627742770987,26.85945600528306],"近尾洲镇":[112.39101493166487,26.60009536830602],"铁丝塘镇":[112.91229172946254,26.8885997737767],"衡南县原种场":[112.75193190371877,26.73735319355165],"咸塘镇":[112.74060727386072,26.94293665482281],"廖田镇":[112.72265633041977,26.64159232500165],"三塘镇":[112.43490712868504,26.84024817904422],"泉溪镇":[112.74340395204035,26.86364514090313],"洪山镇":[112.83489977083542,26.84670289592262],"相市乡":[112.80451246140024,26.73807319441619],"硫市镇":[112.45020849295551,26.71835277113897],"衡州监狱":[112.64942592732498,26.73549625482857],"衡南县岐山街道":[112.13922704805839,26.8641835813253],"江口镇":[112.90263973083657,26.66466147349946],"泉湖镇":[112.28180978756126,26.82534352065687],"茅市镇":[112.32935702311431,26.68423312047175],"茶市镇":[112.77390886322053,26.78052576323831],"云集镇":[112.6028052132441,26.71036239102429],"冠市镇":[112.90336355310733,26.73872279773231],"谭子山镇":[112.35762002549683,26.82299837864809]}
衡阳市衡南县行政划分代码
[{"name":"松江镇","code":"430422122000"},{"name":"柞市镇","code":"430422115000"},{"name":"栗江镇","code":"430422118000"},{"name":"鸡笼镇","code":""},{"name":"宝盖镇","code":"430422106000"},{"name":"花桥镇","code":"430422107000"},{"name":"近尾洲镇","code":"430422119000"},{"name":"铁丝塘镇","code":"430422108000"},{"name":"衡南县原种场","code":""},{"name":"咸塘镇","code":"430422121000"},{"name":"廖田镇","code":""},{"name":"三塘镇","code":"430422111000"},{"name":"泉溪镇","code":"430422109000"},{"name":"洪山镇","code":"430422110000"},{"name":"相市乡","code":"430422200000"},{"name":"硫市镇","code":"430422117000"},{"name":"衡州监狱","code":"430422407000"},{"name":"衡南县岐山街道","code":""},{"name":"江口镇","code":"430422105000"},{"name":"泉湖镇","code":"430422114000"},{"name":"茅市镇","code":"430422116000"},{"name":"茶市镇","code":"430422103000"},{"name":"云集镇","code":""},{"name":"冠市镇","code":"430422104000"},{"name":"谭子山镇","code":"430422112000"}]
说明
1、根据《地图审核管理规定》、《互联网地图服务专业标准》等法规,本地图不作为境界线勘界等用处。使用中请查阅《中华人民共和国地图编制出版管理条例》、各地地图编制出版管理办法等地图规定按程序应用。
2、本数据是目前市面上较齐全、精度较高的数据,属性齐全,各大高校科研均在用此数据。
3、本数据仅用于echarts threejs地图效果展示。
4、当前除了包含有关键地区的geoJson地图信息外还包含有28个echarts地图效果,以及13个threejs地图实例效果,限于篇幅不一一展示,可以通过更多echarts和threejs地图效果实例查看