Settings class
google.maps.Settings
class
Settings which control the behavior of the Maps JavaScript API as a whole.
Access by calling const {Settings} = await google.maps.importLibrary("core")
. See Libraries in the Maps JavaScript API.
Static Methods | |
---|---|
getInstance |
getInstance() Parameters: None
Return Value:
Settings Returns the singleton instance of google.maps.Settings . |
Properties | |
---|---|
experienceIds |
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> Returns a promise that resolves to a Firebase App Check token result. The token is attached to gRPC requests as a "X-Firebase-AppCheck" HTTP header. If the token is empty, the header is not attached. |
MapsAppCheckTokenResult interface
google.maps.MapsAppCheckTokenResult
interface
Describes a Firebase App Check token result.