Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e07218c

Browse filesBrowse files
author
Alfred Lau
committed
more typedef updates
1 parent af2df81 commit e07218c
Copy full SHA for e07218c

File tree

Expand file treeCollapse file tree

1 file changed

+15
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-2
lines changed

‎index.d.ts

Copy file name to clipboardExpand all lines: index.d.ts
+15-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.