This commit is contained in:
BianLzhaoMin 2025-08-01 18:12:55 +08:00
parent 3b9f4454cd
commit 6c2436be1d
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export default {
// label
const label = new BMapGL.Label(item.proName, {
position: point,
offset: new BMapGL.Size(-60, 10), // 使marker
offset: new BMapGL.Size(0, 0), // 使marker
})
// label
label.setStyle({
@ -71,6 +71,7 @@ export default {
padding: '5px',
whiteSpace: 'nowrap', //
fontSize: '18px',
transform: 'translateX(-45%)',
})
this.map.addOverlay(label)