Skip to content

Commit

Permalink
fix: mapIds can be a string[] as well
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink committed Jan 3, 2025
1 parent a16176c commit 9b0911d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/2.0/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type APIOptions = {
language?: string;
region?: string;
authReferrerPolicy?: string;
mapIds?: string;
mapIds?: string | string[];
channel?: string;
solutionChannel?: string;
};
Expand Down Expand Up @@ -53,7 +53,7 @@ export function bootstrapLoader(options: APIOptions) {
for (const [name, value] of Object.entries(options)) {
urlParameters.set(
name.replace(/[A-Z]/g, (t) => "_" + t[0].toLowerCase()),
value
value as string
);
}
urlParameters.set("callback", `google.maps.__ib__`);
Expand Down

0 comments on commit 9b0911d

Please sign in to comment.