換行加一個 " \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'
}
}