随着开发 数据大屏 项目越来越多,对地图的需求也各不相同,除了百度地图和高德地图外还会遇到echarts和threejs的需要,对地图的效果以及城市也各不相同,今天为大家整理绵阳市梓潼县echarts地图和threejs地图效果实例供大家参考。地图基于geoJson数据绘制。
echarts绵阳市梓潼县geoJson地图水滴状气泡图
echarts地图渲染时,会通过一个水滴状小气泡来将数值渲染到地图上,我们可以可以通过scatter来实现我们想要的效果.
echarts绵阳市梓潼县geoJson地图根据经纬度显示自定义html弹窗
echarts地图我们可以通过像素坐标来将我们自定义的html弹窗定位到echarts地图指定位置,如果是固定的宽高的话,这没什么问题直接定位就可以了,如果是自适应宽高的地图我们可能没办法控制精度,我们可以使用经纬度来控制,当echarts地图渲染完成以后,我们可以通过convertToPixel将经纬度转为像素坐标,然后再渲染自定义弹窗,这样精度就比较准确了,而且也不会因为窗体宽高变化而导致弹窗出现偏移.
echarts绵阳市梓潼县geoJson地图3d地图实例旋转动画
使用的是echarts-gl结合echarts实现的3d地图效果实例
threejs绵阳市梓潼县geoJson地图3d地图
通过threejs绘制的3d地图实例 vue3 threejs 在vue3项目中绘制3d地图效果实例,如果想系统的学习threejs的话,可以观看threejs视频课程 WebGL/Three.js前端高薪3D可视化
threejs绵阳市梓潼县geoJson地图3d地图自定义贴图加CSS2D标签
通过threejs绘制3d地图并添加CSS2D标签和自定义贴图
threejs绵阳市梓潼县geoJson地图3d地图CSS3D标签
通过threejs绘制的3d地图CSS3D标签实例,CSS3D不面向摄像机,跟随场景缩放,可以通过rotateY调整角度,通过scale调整大小 Vue3 threejs 在3d地图中绘制css3d标签标注省份
绵阳市梓潼县 下辖有 自强镇,豢龙乡,双板乡,马迎乡,定远乡,宝石乡,小垭乡,文昌镇,白云镇,石台乡,建兴乡,三泉乡,东石乡,二洞乡,交泰乡,仙鹅乡,文兴乡,长卿镇,卧龙镇,双峰乡,仁和镇,仙峰乡,大新乡,宏仁乡,演武乡,玛瑙镇,石牛镇,观义镇,许州镇,马鸣乡,金龙场乡,黎雅镇
绵阳市梓潼县下辖区域坐标
{"自强镇":[105.26981664530796,31.60038723620673],"豢龙乡":[105.16618456405277,31.72693904118399],"双板乡":[105.07569547163658,31.83390890694901],"马迎乡":[105.3087546985906,31.65206390879645],"定远乡":[105.25983703527402,31.51217872414488],"宝石乡":[105.27783245729881,31.5392056727445],"小垭乡":[105.18718502776531,31.86741402315635],"文昌镇":[105.19537710142768,31.64951634338412],"白云镇":[105.06155984362536,31.71333550360335],"石台乡":[105.10327472549906,31.75071006089825],"建兴乡":[105.25557971962948,31.75460333913927],"三泉乡":[105.09660962470292,31.65455377449818],"东石乡":[105.1614542163492,31.57169953887548],"二洞乡":[105.32390104644136,31.59654974391162],"交泰乡":[105.1786801054402,31.47028663098155],"仙鹅乡":[105.04744512569073,31.77304360083542],"文兴乡":[105.36808368454112,31.56959807300326],"长卿镇":[105.12267333174557,31.62655321984714],"卧龙镇":[105.04055485141956,31.65758351498537],"双峰乡":[105.08042244056337,31.48620369013162],"仁和镇":[105.34254721563687,31.49712375420739],"仙峰乡":[105.12404903556785,31.87369008506851],"大新乡":[105.41914567457192,31.49379032142134],"宏仁乡":[105.13519013964603,31.68719176054101],"演武乡":[105.21842026229368,31.79604718347289],"玛瑙镇":[105.18963816768394,31.53497928768648],"石牛镇":[105.07087503769253,31.57515385395095],"观义镇":[105.12700637766054,31.51093212835065],"许州镇":[105.1475619827707,31.7982284499217],"马鸣乡":[105.25289293896404,31.68444007670868],"金龙场乡":[105.00682295095557,31.80605260042802],"黎雅镇":[105.002865083676,31.74121634443528]}
绵阳市梓潼县行政划分代码
[{"name":"自强镇","code":"510725109000"},{"name":"豢龙乡","code":""},{"name":"双板乡","code":""},{"name":"马迎乡","code":""},{"name":"定远乡","code":""},{"name":"宝石乡","code":"510725217000"},{"name":"小垭乡","code":""},{"name":"文昌镇","code":"510725100000"},{"name":"白云镇","code":""},{"name":"石台乡","code":""},{"name":"建兴乡","code":""},{"name":"三泉乡","code":""},{"name":"东石乡","code":""},{"name":"二洞乡","code":""},{"name":"交泰乡","code":""},{"name":"仙鹅乡","code":""},{"name":"文兴乡","code":""},{"name":"长卿镇","code":"510725101000"},{"name":"卧龙镇","code":"510725105000"},{"name":"双峰乡","code":""},{"name":"仁和镇","code":"510725110000"},{"name":"仙峰乡","code":""},{"name":"大新乡","code":""},{"name":"宏仁乡","code":""},{"name":"演武乡","code":""},{"name":"玛瑙镇","code":"510725107000"},{"name":"石牛镇","code":"510725108000"},{"name":"观义镇","code":"510725106000"},{"name":"许州镇","code":"510725102000"},{"name":"马鸣乡","code":""},{"name":"金龙场乡","code":""},{"name":"黎雅镇","code":"510725103000"}]
说明
1、根据《地图审核管理规定》、《互联网地图服务专业标准》等法规,本地图不作为境界线勘界等用处。使用中请查阅《中华人民共和国地图编制出版管理条例》、各地地图编制出版管理办法等地图规定按程序应用。
2、本数据是目前市面上较齐全、精度较高的数据,属性齐全,各大高校科研均在用此数据。
3、本数据仅用于echarts threejs地图效果展示。
4、当前除了包含有关键地区的geoJson地图信息外还包含有28个echarts地图效果,以及13个threejs地图实例效果,限于篇幅不一一展示,可以通过更多echarts和threejs地图效果实例查看