@slorber/react-google-maps
Version:
React.js Google Maps API integration
30 lines (29 loc) • 1.12 kB
TypeScript
/// <reference types="googlemaps" />
import * as React from "react";
interface GroundOverlayState {
groundOverlay: google.maps.GroundOverlay | null;
}
export interface GroundOverlayProps {
options?: google.maps.GroundOverlayOptions;
opacity?: number;
onDblClick?: (e: google.maps.MouseEvent) => void;
onClick?: (e: google.maps.MouseEvent) => void;
url: string;
bounds: google.maps.LatLngBounds;
onLoad?: (groundOverlay: google.maps.GroundOverlay) => void;
onUnmount?: (groundOverlay: google.maps.GroundOverlay) => void;
}
export declare class GroundOverlay extends React.PureComponent<GroundOverlayProps, GroundOverlayState> {
static defaultProps: {
onLoad: () => void;
};
static contextType: React.Context<google.maps.Map | null>;
registeredEvents: google.maps.MapsEventListener[];
state: GroundOverlayState;
setGroundOverlayCallback: () => void;
componentDidMount(): void;
componentDidUpdate(prevProps: GroundOverlayProps): void;
componentWillUnmount(): void;
render(): null;
}
export default GroundOverlay;