Skip to content

Pass labelPosition through the React Native bridge - #3

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

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

Conversation

@wf9a5m75

Copy link
Copy Markdown
Contributor

概要

React Native のブリッジで、既定アイコンの labelPosition をネイティブへ渡すようにしました。

  • JS: markerIconToNative が labelPosition を送ります。ReactNativeImageDefaultIcon にもこのオプションを追加しました。
  • バグ修正: colorDefault の infoAnchor が、ビットマップ基準に変換済みの値のまま送られていました。ネイティブ側でもう一度変換されるので、二重変換になっていました。指定された元の値(requestedInfoAnchor)を送るよう直しています。
  • ネイティブ: Android の NativeMarkerCodec.kt と iOS の NativeMapCodec.swift で、labelPosition を読むようにしました。
  • 吹き出し: InfoBubbleLayer.native の位置計算を、アイコンの実寸(markerIconExtentPx)で行うようにしました。

依存

確認

  • 手元のワークスペースで、JS のビルドと全 RN パッケージのビルドが通りました。
  • RN サンプルで、Android 側(:mapconductor_js-sdk-react)のコンパイルと、iOS 側(MapConductorReactNativeCore)のビルドが通りました。
  • 補足: このリポジトリの main は develop の js-sdk-core に無い MapViewStyle を使っていて、develop のコアに対してはビルドできません(既存の状態です)。

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