3d地图

描述:当前是关于Echarts图表中的 3D地图 示例。
 
            let mapURL = `/asset/get/areas_v3/city/411300_full.json`
$.get(mapURL, (json) => {
   initEchart(json);
})
option = {};
const initEchart = (geoJson) => {
   echarts.registerMap('nanyang', geoJson);
   let option = {
      geo3D: {
         map: 'nanyang',
         show: true,
         viewControl: {
            // autoRotate: true,
            distance: 150,
            center: [-2, -5, 0]
         },
         itemStyle: {
            color: '#539efe',
            borderWidth: 1,
            borderColor: '#4fdcf7'
         },
         label: {
            show: true,
            fontSize: 16,
            color: '#f9fcff',
            fontWeight: 600
         },
         emphasis: {
            label: {
               show: true,
               fontSize: 16,
               color: '#f9fcff',
               fontWeight: 600
            },
            itemStyle: {
               color: '#539efe',
               borderWidth: 1,
               borderColor: '#4fdcf7'
            }
         }
      },
   }
   myChart.setOption(option)
}