@react-google-maps/api
Version:
React.js Google Maps API integration
27 lines (26 loc) • 1.36 kB
TypeScript
type fnPixelPositionOffset = (offsetWidth: number, offsetHeight: number) => {
x: number;
y: number;
};
export declare function createOverlay(container: HTMLElement, pane: keyof google.maps.MapPanes, position?: google.maps.LatLng | google.maps.LatLngLiteral | undefined, bounds?: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral | undefined, getPixelPositionOffset?: fnPixelPositionOffset | undefined): {
container: HTMLElement;
pane: keyof google.maps.MapPanes;
position: google.maps.LatLng | google.maps.LatLngLiteral | undefined;
bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral | undefined;
onAdd(): void;
draw(): void;
onRemove(): void;
getMap(): google.maps.Map | null | google.maps.StreetViewPanorama;
getPanes(): google.maps.MapPanes | null;
getProjection(): google.maps.MapCanvasProjection;
setMap(map: google.maps.Map | null | google.maps.StreetViewPanorama): void;
addListener(eventName: string, handler: Function): google.maps.MapsEventListener;
bindTo(key: string, target: google.maps.MVCObject, targetKey?: string | null, noNotify?: boolean): void;
get(key: string): any;
notify(key: string): void;
set(key: string, value: unknown): void;
setValues(values?: object | null): void;
unbind(key: string): void;
unbindAll(): void;
};
export {};