Get a Maps Demo Key: Try out select Maps JavaScript API and Places UI Kit features at no cost with a Maps Demo Key—no billing information required.

Settings

[フレーム]

Settings class

google.maps.Settings class
library "core"

Settings which control the behavior of the Maps JavaScript API as a whole.

const{Settings}=awaitgoogle.maps.importLibrary("core");

Static Methods

getInstance
getInstance()
Parameters: None
Return Value: Settings
Returns the singleton instance of google.maps.Settings.

Properties

BetaexperienceIds
readonly
Type: Iterable<string>
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];).
fetchAppCheckToken
Type: function(): Promise<MapsAppCheckTokenResult>
Set this property to a function that returns a promise which resolves to a Firebase App Check token result.

MapsAppCheckTokenResult interface

google.maps.MapsAppCheckTokenResult interface

Describes a Firebase App Check token result.

Properties

token
Type: string
The Firebase App Check token.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年09月01日 UTC.