(options: APIOptions)
| 75 | * @param options The options to set. |
| 76 | */ |
| 77 | export function setOptions(options: APIOptions) { |
| 78 | if (setOptionsWasCalled_) { |
| 79 | logDevWarning(MSG_REPEATED_SET_OPTIONS(options)); |
| 80 | |
| 81 | return; |
| 82 | } |
| 83 | |
| 84 | if ((options as Record<string, unknown>).apiKey) { |
| 85 | logDevWarning(MSG_API_KEY_USED); |
| 86 | |
| 87 | if (!options.key) { |
| 88 | options.key = (options as Record<string, unknown>).apiKey as string; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | installImportLibrary_(options); |
| 93 | setOptionsWasCalled_ = true; |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Imports the specified library from the Maps JavaScript API. |
no test coverage detected
searching dependent graphs…