Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / dist / components / atoms / Map / GoogleMap.d.ts
Size: Mime:
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: undefined;
    };
    loadGoogleAsync(): Promise<void>;
    readonly googleMapOptions: {
        zoom: number;
        center: {
            lat: string | number | undefined;
            lng: string | number | undefined;
        };
    };
    /**
     * @NOTE remember that all functions called with `setTimeout` or by `window` bound functions
     * like JSONP are going to call the functions with window binding
     * and lose scope of our function
     * so we bind it with an arrow fn
     */
    setAttributeForIframeElement(): void;
    /**
     * 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;