Merge pull request #17396 from cwmoo740/master

google-map-react update BootstrapURLKeys
This commit is contained in:
Paul van Brenk 2017-06-26 12:28:33 -07:00 committed by GitHub
commit 5cefdd13d9
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,9 @@
import GoogleMapReact from 'google-map-react';
import GoogleMapReact, { BootstrapURLKeys } from 'google-map-react';
import * as React from 'react';
const center = { lat: 0, lng: 0 };
<GoogleMapReact center={center} zoom={3}/>;
const key: BootstrapURLKeys = { key: 'my-google-maps-key' };
const client: BootstrapURLKeys = { client: 'my-client-identifier', v: '3.28' , language: 'en' };
<GoogleMapReact center={center} zoom={3} bootstrapURLKeys={client}/>;

View File

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