angular / angular/components

docs(maps): Describe how to get map instance from within component.ts to input to MapMarker, InfoWindow

オープン
#24,042 コメント 1 件 リアクション 4 件 担当者 0 名 GitHub で見る
area: google-maps docs P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### Documentation Feedback

Currently the example docs rely on a single use case where the user interacts with the map and a (mapClick) event grabs the map instance and passes it back to a component.ts function. If a developer wishes to decorate a map with a marker or an info window before a user interacts with it, there is no map reference to use.

It appears that standard @ViewChild methods for obtaining a dom reference do not work with the angular google-maps component. We could use a good example of how to get the map reference.

### Affected documentation page

https://github.com/angular/components/tree/master/src/google-maps/map-marker

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

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

調査の方向性

src/google-maps/map-marker から始め、mapClick イベントを通じてマップを取得する既存のドキュメント例を確認します。ユーザーの操作前に component.ts からマップ参照を取得し、MapMarker または InfoWindow に渡す方法を調査します。対象のドキュメントに、操作前にマップを装飾する動作する例が含まれていれば完了です。

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

評価

技術スタック
angular, typescript
領域
documentation, frontend
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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