From add69efc9d5eaa7544cdba5c60b54e4716a4558d Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 11 Aug 2022 11:26:51 +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 --- packages/uni-h5/src/view/components/map/maps/Callout.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/uni-h5/src/view/components/map/maps/Callout.ts b/packages/uni-h5/src/view/components/map/maps/Callout.ts index 9ac4518cf..1c81d2d07 100644 --- a/packages/uni-h5/src/view/components/map/maps/Callout.ts +++ b/packages/uni-h5/src/view/components/map/maps/Callout.ts @@ -34,9 +34,8 @@ export function createCallout(maps: QQMaps | GoogleMaps | AMap.NameSpace) { this.Text = new (maps as AMap.NameSpace).Text({ text: option.content, anchor: 'bottom-center', // 设置文本标记锚点 - offset: new (maps as AMap.NameSpace).Pixel(0, option.offsetY!), + offset: new (maps as AMap.NameSpace).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