DefinitelyTyped/types/google-map-react/google-map-react-tests.tsx
cwmoo740 624cf76cb2 google-map-react update BootstrapURLKeys
add support for client identifier and version instead of api key
2017-06-22 11:20:42 -04:00

10 lines
368 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import GoogleMapReact, { BootstrapURLKeys } from 'google-map-react';
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' };
<GoogleMapReact center={center} zoom={3} bootstrapURLKeys={client}/>;