Settings
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
google.maps.Settings
クラス
Maps JavaScript API の動作全体を制御する設定。
const {Settings} = await google.maps.importLibrary("core")
を呼び出してアクセスします。Maps JavaScript API のライブラリをご覧ください。
静的メソッド |
getInstance |
getInstance()
パラメータ: なし
google.maps.Settings のシングルトン インスタンスを返します。
|
プロパティ |
experienceIds
|
Maps JS API 呼び出しを関連付ける一意のエクスペリエンス ID のコレクション。返される値は、Settings クラスのシングルトン インスタンスに保存されている内部値のコピーです。したがって、google.maps.Settings.getInstance().experienceIds に対するオペレーションは、コピーのみを変更し、内部値は変更しません。
内部値を更新するには、プロパティをシングルトン インスタンスの新しい値(例: google.maps.Settings.getInstance().experienceIds = [experienceId]; )に設定します。 |
fetchAppCheckToken |
Firebase App Check トークンの結果に解決される Promise を返します。トークンは、「X-Firebase-AppCheck」HTTP ヘッダーとして gRPC リクエストに付加されます。トークンが空の場合、ヘッダーは添付されません。 |
google.maps.MapsAppCheckTokenResult
インターフェース
Firebase App Check トークンの結果を記述します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-22 UTC。
[null,null,["最終更新日 2024-12-22 UTC。"],[],[],null,["# Settings\n\nThe documentation for has moved to a different page.\n\nThe documentation for the linked item could not be found. \n\n[Settings](#Settings)\nclass\n---------------------------\n\n\ngoogle.maps`.`Settings\nclass\n\nSettings which control the behavior of the Maps JavaScript API as a whole.\n\nAccess by calling `const {Settings} = await google.maps.importLibrary(\"core\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| ### Static Methods ||\n|--------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getInstance](#Settings.getInstance) | `getInstance()` **Parameters:** None **Return Value:** [Settings](/maps/documentation/javascript/reference/settings#Settings) Returns the singleton instance of `google.maps.Settings`. |\n\n| ### Properties ||\n|----------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [experienceIds](#Settings.experienceIds) | **Notice:** Available only in the [v=beta channel](/maps/documentation/javascript/versions#choosing-the-beta-channel). **Type:** [Iterable](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterable_protocol)`\u003cstring\u003e` A collection of unique experience IDs to which to attribute Maps JS API calls. The returned value is a copy of the internal value that is stored in the `Settings` class singleton instance. Operations on `google.maps.Settings.getInstance().experienceIds` will therefore only modify the copy and not the internal value. To update the internal value, set the property equal to the new value on the singleton instance (ex: `google.maps.Settings.getInstance().experienceIds = [experienceId];`). |\n| [fetchAppCheckToken](#Settings.fetchAppCheckToken) | **Type:** `function(): `[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)`\u003c`[MapsAppCheckTokenResult](/maps/documentation/javascript/reference/settings#MapsAppCheckTokenResult)`\u003e` Set this property to a function that returns a promise which resolves to a Firebase App Check token result. |\n\n[MapsAppCheckTokenResult](#MapsAppCheckTokenResult)\ninterface\n-------------------------------------------------------------\n\n\ngoogle.maps`.`MapsAppCheckTokenResult\ninterface\n\nDescribes a Firebase App Check token result."]]