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