show: true,
symbol: 'roundRect',
period: 1.5,
delay: 100,
trailLength: 0.6,
symbolSize: 6,
},
lineStyle: {
normal: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0,
color: '#ed1941'
}, {
offset: 1,
color: '#ffce7b'
}],
globalCoord: false
},
width: 1,
opacity: 0.8,
//type: 'dotted',
curveness: 0.2,
}
},
data: [{
coords: [ //jm-阳江
[112.70, 22.31],
[111.90, 21.95],
]
}, {
coords: [ //yj-茂名
[111.90, 21.95],
[110.99, 21.68],
]
}, {
coords: [ //mm-湛江
[110.99, 21.68],
[110.24, 21.25],
]
}]
}, {
name: '到江门',
type: 'lines',
coordinateSystem: 'geo',
//polyline:true,
symbol: ['none', 'triangle'],
zlevel: 2,
effect: {
show: true,
symbol: 'roundRect',
period: 1.5,
delay: 100,
trailLength: 0.6,
symbolSize: 6,
},
lineStyle: {
normal: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0,
color: '#ed1941'
}, {
offset: 1,
color: '#cbb0e3'
}],
globalCoord: false
},
width: 1,
opacity: 0.8,
//type: 'dotted',
curveness: 0.2,
}
},
data: [{
coords: [ //阳江-江门
[111.90, 21.95],
[112.70, 22.31],
]
}, {
coords: [ //茂名-阳江
[110.99, 21.68],
[111.90, 21.95],
]
}, {
coords: [ //湛江-茂名
[110.24, 21.25],
[110.99, 21.68],
]
}]
}, {
name: '到深圳',
type: 'lines',
coordinateSystem: 'geo',
//polyline:true,
symbol: ['none', 'triangle'],
zlevel: 2,
effect: {
show: true,
symbol: 'roundRect',
period: 2,
delay: 100,
trailLength: 0.6,
symbolSize: 6,
},
lineStyle: {
normal: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0,
color: '#ed1941'
}, {
offset: 1,
color: '#cbb0e3'
}],
globalCoord: false
},
width: 1,
opacity: 0.8,
//type: 'dotted',
curveness: 0.2,
}
},
data: [{
coords: [ //东莞-深圳
[113.85, 23.01],
[114.07, 22.62],
]
}, {
coords: [ //广州-东莞
[113.43, 23.26],
[113.85, 23.01],
]
}, {
coords: [ //中山-深圳
[113.38, 22.52],
[114.07, 22.62],
]
}, {
coords: [ //佛山-广州
[112.98, 23.01],
[113.43, 23.26],
]
}, {
coords: [ //江门-佛山
[112.70, 22.31],
[112.98, 23.01],
]
},{
coords: [ //江门-中山
[112.70, 22.31],
[113.38, 22.52],
]
}, {
coords: [ //阳江-江门
[111.90, 21.95],
[112.70, 22.31],
]
}, {
coords: [ //茂名-阳江
[110.99, 21.68],
[111.90, 21.95],
]
}, {
coords: [ //湛江-茂名
[110.24, 21.25],
[110.99, 21.68],
]
}]
}, {
type: 'effectScatter',
coordinateSystem: 'geo',
showEffectOn: 'render',
zlevel: 3,
symbol: 'circle',
symbolSize: 5,
rippleEffect: {
brushType: 'stroke',
period: 5,
scale: 7
},
label: {
normal: {
formatter: '{b}',
position: 'right',
offset: [1, 6],
show: true,
textStyle: {
color: "yellow"
}
}
},
itemStyle: {
normal: {
show: true,
color: 'yellow'
}
},
data: this.geodata
}, {
type: 'effectScatter',
coordinateSystem: 'geo',
showEffectOn: 'render',
zlevel: 3,
symbol: 'circle',
symbolSize: 7,
rippleEffect: {
brushType: 'stroke',
period: 2,
scale: 10
},
label: {
normal: {
formatter: '{b}',
position: 'right',
//offset: [1, -3],
show: true,
textStyle: {
color: "yellow"
}
}
},
itemStyle: {
normal: {
show: true,
color: 'yellow'
}
},
data: this.geodata1
},
{
name: '中转',
type: 'scatter',
coordinateSystem: 'geo',
symbol: 'pin',
symbolSize: 20,
symbolOffset: [0, -10],
//symbolRotate:30,
label: {
normal: {
show: true,
//rotate: 30,
position: 'top',
//distance: 3,
backgroundColor: 'rgb(224,255,255)',
borderColor: '#aaa',
fontWeight: 100,
borderWidth: 1,
borderRadius: 4,
formatter: [
'{a|中转}'
].join('\n'),
rich: {
a: {
align: 'center',
color: '#00E5EE',
fontSize: 10,
textShadowBlur: 1,
//textShadowColor: '#7A67EE',
textBorderColor: '#E8E8E8',
textBorderWidth: 1
},
}
},
emphasis: {
show: true,
//rotate: 30,
backgroundColor: 'rgb(224,255,255)',
borderColor: '#aaa',
fontWeight: 200,
borderWidth: 1,
borderRadius: 4,
formatter: [
'{a|中转站}'
].join('\n'),
rich: {
a: {
align: 'center',
color: '#00CED1',
fontSize: 20,
textShadowBlur: 1,
//textShadowColor: '#7A67EE',
textBorderColor: '#E8E8E8',
textBorderWidth: 1
}
}
}
},
zlevel: 5,
itemStyle: {
normal: {
//color: '#f58f98',
color: '#EE00EE',
borderWidth: 1,
borderColor: '#EE00EE'
}
},
data: [{
name: '江门市',
value: [112.70, 22.31]
}]
}
]
};
var myChart = echarts.init(document.getElementById('main'));
echarts.registerMap('guangdong', guangdong);
myChart.setOption(option);
}
},
created(){
},
mounted(){
this.$nextTick(()=>{
this.initMap()
})
}
}
最后为了方便大家的沟通与交流请加QQ群: [625787746](https://bbs.csdn.net/topics/618166371)
### React
* 介绍一下react
* React单项数据流
* react生命周期函数和react组件的生命周期
* react和Vue的原理,区别,亮点,作用
* reactJs的组件交流
* 有了解过react的虚拟DOM吗,虚拟DOM是怎么对比的呢
* 项目里用到了react,为什么要选择react,react有哪些好处
* 怎么获取真正的dom
* 选择react的原因
* react的生命周期函数
* setState之后的流程
* react高阶组件知道吗?
* React的jsx,函数式编程
* react的组件是通过什么去判断是否刷新的
* 如何配置React-Router
* 路由的动态加载模块
* Redux中间件是什么东西,接受几个参数
* redux请求中间件如何处理并发
**[开源分享:【大厂前端面试题解析+核心总结学习笔记+真实项目实战+最新讲解视频】](https://bbs.csdn.net/topics/618166371)**
![](https://img-blog.csdnimg.cn/img_convert/9749ea39072fc4b7b27af6f3a4db5ab1.png)