Skip to content

Commit e07218c

Browse files
author
Alfred Lau
committed
more typedef updates
1 parent af2df81 commit e07218c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

index.d.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,18 @@ type markerEventHandler = (props?: IMarkerProps, marker?: google.maps.Marker, ev
7777

7878
export interface IMarkerProps extends Partial<google.maps.MarkerOptions> {
7979
mapCenter?: google.maps.LatLng | google.maps.LatLngLiteral
80+
position?: google.maps.LatLng | google.maps.LatLngLiteral
81+
title?: string
82+
name?: string
8083

8184
onClick?: markerEventHandler
85+
onDblclick?: markerEventHandler
86+
onDragend?: markerEventHandler
87+
onMousedown?: markerEventHandler
88+
onMouseout?: markerEventHandler
8289
onMouseover?: markerEventHandler
90+
onMouseup?: markerEventHandler
91+
onRecenter?: markerEventHandler
8392
}
8493

8594
export class Map extends React.Component<IMapProps, any> {
@@ -105,11 +114,15 @@ export class Circle extends React.Component<any, any> {
105114
export interface IInfoWindowProps extends Partial<google.maps.InfoWindowOptions> {
106115
google: typeof google
107116
map: google.maps.Map
108-
marker: google.maps.Marker
117+
marker?: google.maps.Marker
109118

110-
mapCenter?: google.maps.LatLng | google.maps.LatLngLiteral
119+
position?: google.maps.LatLng | google.maps.LatLngLiteral
111120
visible?: boolean
112121

122+
children: React.ReactNode
123+
onClose(): void
124+
onOpen(): void
125+
113126
}
114127

115128
export class InfoWindow extends React.Component<IInfoWindowProps, any> {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy