Skip to content

Size the info bubble by the icon's real extent - #3

Merged
wf9a5m75 merged 1 commit into
developfrom
feature/marker-label-position
Oct 23, 2026
Merged

wf9a5m75 merged 1 commit into
developfrom
feature/marker-label-position

Conversation

@wf9a5m75

Copy link
Copy Markdown
Contributor

概要

吹き出しの位置計算を、アイコンの実寸(markerIconExtentPx)で行うようにしました。

既定アイコンにラベルを横や上に置くと(labelPosition)、ビットマップはピン本体より広がります。anchor / infoAnchor はそのビットマップに対する割合なので、一辺 iconSize の正方形として計算すると、吹き出しがずれていました。

マーカーの判定そのものは、地図 SDK が描かれた要素で行うので、変更していません。

依存

確認(develop 上)

  • develop の js-sdk-core にこの変更を当てた版に対して、npm run build が通りました。

@wf9a5m75
wf9a5m75 merged commit e5370e6 into develop Oct 23, 2026
1 check passed
@wf9a5m75
wf9a5m75 deleted the feature/marker-label-position branch October 23, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant