NativeScript / NativeScript/plugins

[@nativescript/google-maps] Marker info window not working on IOS

オープン
#368 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
TypeScript
スター
206
フォーク
123
平均マージ
2日 1時間
マージ済み PR(30日)
1

説明

Hi, I tried to use custom marker info window.
First of all, Could you let me know proper way to implement this, since there is not clear instruction from documentation.
Anyway, I implemented like this, at least works on Android.

mapView.on('markerInfoWindow', (e: MarkerInfoEvent) => {
if (e.marker.userData.id === item.id) {
let infoTemplate: GridLayout = new GridLayout();
/* create a view that I want to customize manually */
...

e.view = infoTemplate;

});

marker.showInfoWindow();

At least works on Android but not on IOS.
Title & snippet from MarkerOptions, then IOS show the info on the marker.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、iOS 上の @nativescript/google-maps でカスタム markerInfoWindow フローを再現し、説明されている Android の動作と比較します。marker.showInfoWindow() が呼び出されたときに e.view がどのように扱われるかを確認します。iOS でカスタム情報ウィンドウが表示され、既存の title と snippet の動作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, typescript
領域
mobile-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。