[google-map-react]: add libraries and region parameters to BootstrapURLKeys (#38797)

* [google-map-react]: add `libraries` parameter to `BootstrapURLKeys`

* Update types/google-map-react/index.d.ts

Co-Authored-By: Andros Rosa Llop <andros.rosa@gmail.com>

* Update types/google-map-react/google-map-react-tests.tsx

Co-Authored-By: Andros Rosa Llop <andros.rosa@gmail.com>
This commit is contained in:
NicoleEtLui
2019-11-06 00:47:00 +01:00
committed by Nathan Shively-Sanders
parent d460416ac9
commit 2f36fd1758
2 changed files with 3 additions and 3 deletions

View File

@@ -3,8 +3,8 @@ import * as React from 'react';
const center = { lat: 0, lng: 0 };
const key: BootstrapURLKeys = { key: 'my-google-maps-key' };
const client: BootstrapURLKeys = { client: 'my-client-identifier', v: '3.28' , language: 'en' };
const key: BootstrapURLKeys = { key: 'my-google-maps-key', libraries: "places" };
const client: BootstrapURLKeys = { client: 'my-client-identifier', v: '3.28' , language: 'en', libraries: "places", region: "PR" };
const options: MapOptions = {
zoomControl: false,
gestureHandling: 'cooperative',

View File

@@ -6,7 +6,7 @@
import * as React from 'react';
export type BootstrapURLKeys = ({ key: string; } | { client: string; v: string; }) & { language?: string };
export type BootstrapURLKeys = ({ key: string; } | { client: string; v: string; }) & { language?: string; region?: string; libraries?: string[] | string; };
export interface MapTypeStyle {
elementType?: string;