重庆大屏地图

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) { setMapOption(name) {
var option = { var option = {
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
series: [ series: [
{ {
name: 'MAP', name: 'MAP',
@ -87,24 +88,23 @@
zlevel: -10, zlevel: -10,
boxWidth: 150, boxWidth: 150,
boxHeight:60, boxHeight:60,
boxDepth: 110,// boxDepth: 90,//
regionHeight: 5,// regionHeight: 5,//
label: { label: {
show: true,// show: true,//
textStyle: { textStyle: {
color: "#fff",// color: "#fff",//
fontSize: 10,// fontSize: 14,//
fontFamily: '微软雅黑', // fontFamily: '',
backgroundColor: "rgba(0,0,0,0)",//0 backgroundColor: "rgba(0,0,0,0)",//0
}, },
}, },
// //
itemStyle: { itemStyle: {
opacity:0.5, opacity:1,
color: '#2C59C7',// color: 'rgba(35, 72, 174,0.5)',//
areaColor: '#3978C8',
borderWidth: 1.5, borderWidth: 1.5,
borderColor: '#7BE7FC' borderColor: 'rgb(125, 239, 250)'
}, },
// hover // hover
emphasis: { emphasis: {
@ -122,13 +122,29 @@
borderWidth:3, 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: { light: {
main: { // shading 'color'
intensity:1, main: {
shadow: true, // globe
shadowQuality: 'ultra', 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: { groundplane: {
show: false show: false
@ -152,7 +168,7 @@
maxAlpha:80, maxAlpha:80,
minBeta:-25, minBeta:-25,
maxBeta:45, maxBeta:45,
center:[0,0,10], center:[0,0,0],
animation: true, animation: true,
animationDurationUpdate: 1000, animationDurationUpdate: 1000,
animationEasingUpdate: 'cubicInOut' animationEasingUpdate: 'cubicInOut'