From cc623a38baaf2ae1a2a71bb14a874723d41a2cce Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 11 Aug 2022 11:30:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(map):=20=E4=BF=AE=E5=A4=8D=E9=AB=98?= =?UTF-8?q?=E5=BE=B7=E5=9C=B0=E5=9B=BEcallout=E5=81=8F=E7=A7=BB=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/h5/view/components/map/maps/callout.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platforms/h5/view/components/map/maps/callout.js b/src/platforms/h5/view/components/map/maps/callout.js index f0e893f49..98a37586e 100644 --- a/src/platforms/h5/view/components/map/maps/callout.js +++ b/src/platforms/h5/view/components/map/maps/callout.js @@ -18,9 +18,8 @@ export function createCallout (maps) { this.Text = new maps.Text({ text: option.content, anchor: 'bottom-center', // 设置文本标记锚点 - offset: new maps.Pixel(0, option.offsetY), + offset: new maps.Pixel(0, option.offsetY - 16), style: { - 'margin-bottom': '1rem', padding: (option.padding || 8) + 'px', 'line-height': (option.fontSize || 14) + 'px', 'border-radius': (option.borderRadius || 0) + 'px', -- GitLab