Settings
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
google.maps.Settings
corso
Impostazioni che controllano il comportamento dell'API Maps JavaScript nel suo complesso.
Accedi chiamando const {Settings} = await google.maps.importLibrary("core")
. Consulta la sezione Librerie nell'API Maps JavaScript.
Metodi statici |
getInstance |
getInstance()
Parametri: nessuno
Restituisce l'istanza singleton di google.maps.Settings . |
Proprietà |
experienceIds
|
Una raccolta di ID esperienza univoci a cui attribuire le chiamate all'API JS di Maps. Il valore restituito è una copia del valore interno memorizzato nell'istanza singleton della classe Settings . Le operazioni su google.maps.Settings.getInstance().experienceIds modificheranno quindi solo la copia e non il valore interno.
Per aggiornare il valore interno, imposta la proprietà uguale al nuovo valore nell'istanza singleton (ad es. google.maps.Settings.getInstance().experienceIds = [experienceId]; ). |
fetchAppCheckToken |
Restituisce una promessa che si risolve in un risultato del token Firebase App Check. Il token viene allegato alle richieste gRPC come intestazione HTTP "X-Firebase-AppCheck". Se il token è vuoto, l'intestazione non è collegata. |
google.maps.MapsAppCheckTokenResult
interfaccia
Descrive il risultato di un token Firebase App Check.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-12-22 UTC.
[null,null,["Ultimo aggiornamento 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."]]