重庆大屏地图

This commit is contained in:
zhouzy062 2024-04-02 15:24:06 +08:00
parent 8f6a9c6bc0
commit 413e74e482
1 changed files with 30 additions and 14 deletions

View File

@ -79,6 +79,7 @@
setMapOption(name) {
var option = {
backgroundColor: 'rgba(0,0,0,0)',
series: [
{
name: 'MAP',
@ -87,24 +88,23 @@
zlevel: -10,
boxWidth: 150,
boxHeight:60,
boxDepth: 110,//
boxDepth: 90,//
regionHeight: 5,//
label: {
show: true,//
textStyle: {
color: "#fff",//
fontSize: 10,//
fontFamily: '微软雅黑',
fontSize: 14,//
// fontFamily: '',
backgroundColor: "rgba(0,0,0,0)",//0
},
},
//
itemStyle: {
opacity:0.5,
color: '#2C59C7',//
areaColor: '#3978C8',
opacity:1,
color: 'rgba(35, 72, 174,0.5)',//
borderWidth: 1.5,
borderColor: '#7BE7FC'
borderColor: 'rgb(125, 239, 250)'
},
// hover
emphasis: {
@ -122,13 +122,29 @@
borderWidth:3,
}
},
shading: 'lambert', // echarts-gl :
// 'color'
// 'lambert' lambert
// 'realistic' light.ambientCubemap postEffect 使ECharts GL 使PBR
// realisticMaterial: {} // shading 'realistic'
// lambertMaterial: {} // lambert shading 'lambert'
// colorMaterial: {} // color shading 'color'
light: {
main: {
intensity:1,
shadow: true,
shadowQuality: 'ultra',
},
// shading 'color'
main: {
// globe
color: '#fff', // [ default: #fff ]
intensity: 1.2, // [ default: 1 ]
shadow: false, //
// shadowQuality: 'high', // 'low', 'medium', 'high', 'ultra' [ default: 'medium' ]
alpha: 55, // x beta [ default: 40 ]
beta: 10 // y [ default: 40 ]
},
ambient: {
//
color: '#fff', // [ default: #fff ]
intensity: 0.5 // [ default: 0.2 ]
}
},
groundplane: {
show: false
@ -152,7 +168,7 @@
maxAlpha:80,
minBeta:-25,
maxBeta:45,
center:[0,0,10],
center:[0,0,0],
animation: true,
animationDurationUpdate: 1000,
animationEasingUpdate: 'cubicInOut'