angular / angular/components

fr(google-maps): add forRoot() for global initializing

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

説明

#### Feature Description

like many modules already use it, it would be nice if you could initialize the Google Map with the method `forRoot()` in `app.module.ts` with given parameters.

#### Use Case

initialize with parameters like:

- apiKey (link apiKey from environment.ts)
- language
- region
- styles (set global styles for map and marker)

These are the first ones I thought of. I'm sure there are many [more](https://angular-maps.com/api-docs/agm-core/interfaces/lazymapsapiloaderconfigliteral#info).

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

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

調査の方向性

まず、app.module.ts での既存の Google Maps モジュールの使用方法と、environment.ts の設定ソースを確認します。要求されている apiKey、language、region、styles オプションを、リンク先の AGM API ドキュメントと比較します。forRoot() の初期化パスで必要なグローバルパラメーターを受け入れ、説明されているユースケースをサポートできれば完了です。

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

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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