Repository URL to install this package:
Version:
0.9.6 ▾
|
import React from 'react';
import { GoogleMapProps } from './typings';
declare class GoogleMap extends React.PureComponent<GoogleMapProps> {
static defaultProps: {
className: string;
qa: string;
id: string;
latitude: number;
longitude: number;
typeOptions: {
name: string;
};
markerPosition: {
lat: number;
lng: number;
}[];
styleOptions: ReadonlyArray<any>;
};
/**
* only add global script callback in the browser
* @todo abstract
*
* @note the reason this stopped loading is this triggers on a callback from google
* but when we already load google for autosuggest, the callback is never needed
*/
componentDidMount(): void;
references: {
googleMapDomDiv: React.RefObject<{}>;
googleMap: any;
};
loadGoogleAsync: () => Promise<void>;
readonly googleMapOptions: {
zoom: number;
center: {
lat: React.ReactText;
lng: React.ReactText;
};
};
/**
* google essentially wants you to give it a dom element
* then it will force render itself onto it
*/
handleGoogleApisLoad(): void;
render(): JSX.Element;
}
export { GoogleMap };
export default GoogleMap;