Skip to content

Commit 6955d01

Browse files
christianscotttomchentw
authored andcommitted
fix(types): fix OverlayView type definition
- Added missing prop types to OverlayViewProps - Added type definitions for OverlayView static properties
1 parent 7d0680b commit 6955d01

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

types/index.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,20 @@ declare module 'react-google-maps/lib/components/OverlayView' {
428428
import { Component, ReactNode } from 'react'
429429

430430
export interface OverlayViewProps {
431-
mapPaneName?: string
431+
bounds?: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral
432432
children?: ReactNode
433+
getPixelPositionOffset?: (width: number, height: number) => { x?: number, y?: number }
434+
mapPaneName?: string
435+
position?: google.maps.LatLng | google.maps.LatLngLiteral
433436
}
434437

435438
export default class OverlayView extends Component<OverlayViewProps> {
439+
static FLOAT_PANE: string
440+
static MAP_PANE: string
441+
static MARKER_LAYER: string
442+
static OVERLAY_LAYER: string
443+
static OVERLAY_MOUSE_TARGET: string
444+
436445
getPanes(): google.maps.MapPanes
437446
getProjection(): google.maps.MapCanvasProjection
438447
}

0 commit comments

Comments
 (0)