换行加一个 " \n " 就可以了
markers[{
...
label: {
content: '象鼻镇岷江村第一网格\n201号',
fontSize: 13.33,
borderRadius: 6.67,
bgColor: '#2A98FF',
padding: 17,
textAlign: 'center',
color: '#FFFFFF'
}
}
换行加一个 " \n " 就可以了
markers[{
...
label: {
content: '象鼻镇岷江村第一网格\n201号',
fontSize: 13.33,
borderRadius: 6.67,
bgColor: '#2A98FF',
padding: 17,
textAlign: 'center',
color: '#FFFFFF'
}
}