|
|
@@ -127,7 +127,7 @@ function addPointMarker(BMapGL, point) {
|
|
|
if (props.showMarkerName && name) {
|
|
|
const label = new BMapGL.Label(`<div class="gis-marker-label-text">${escapeHtml(name)}</div>`, {
|
|
|
position,
|
|
|
- offset: new BMapGL.Size(-28, -props.markerSize - 24)
|
|
|
+ offset: new BMapGL.Size(-28, -props.markerSize - 18)
|
|
|
})
|
|
|
label.setStyle({ border: 'none', background: 'transparent', padding: '0' })
|
|
|
label.addEventListener('click', (event) => {
|
|
|
@@ -178,7 +178,7 @@ function addLine(BMapGL, line) {
|
|
|
if (!props.showMarkerName) return
|
|
|
const label = new BMapGL.Label(`<div class="gis-marker-label-text">${escapeHtml(name)}</div>`, {
|
|
|
position,
|
|
|
- offset: new BMapGL.Size(-28, -props.markerSize - 24)
|
|
|
+ offset: new BMapGL.Size(-28, -props.markerSize - 18)
|
|
|
})
|
|
|
label.setStyle({ border: 'none', background: 'transparent', padding: '0' })
|
|
|
label.addEventListener('click', (event) => {
|