@@ -24,9 +24,9 @@ export interface IProvidedProps {
24
24
loaded ?: boolean
25
25
}
26
26
27
- type mapEventHandler = ( mapProps ?: IMapProps , map ?: google . maps . Map , event ?) => any
27
+ type mapEventHandler = ( mapProps ?: IMapProps , map ?: google . maps . Map , event ?: any ) => any
28
28
29
- type Style = Object < string , string | number | boolean >
29
+ type Style = Object
30
30
31
31
export interface IMapProps extends google . maps . MapOptions {
32
32
google : GoogleAPI
@@ -39,6 +39,15 @@ export interface IMapProps extends google.maps.MapOptions {
39
39
centerAroundCurrentLocation ?: boolean
40
40
initialCenter ?: google . maps . LatLngLiteral
41
41
center ?: google . maps . LatLngLiteral
42
+ zoom ?: number
43
+
44
+ zoomControl ?: boolean
45
+ mapTypeControl ?: boolean
46
+ scaleControl ?: boolean
47
+ streetViewControl ?: boolean
48
+ panControl ?: boolean
49
+ rotateControl ?: boolean
50
+ fullscreenControl ?: boolean
42
51
43
52
visible ?: boolean
44
53
@@ -64,13 +73,23 @@ export interface IMapProps extends google.maps.MapOptions {
64
73
onZoomChanged ?: mapEventHandler
65
74
}
66
75
67
- type markerEventHandler = ( props ?: IMarkerProps , marker ?: google . maps . Marker , event ?) => any
76
+ type markerEventHandler = ( props ?: IMarkerProps , marker ?: google . maps . Marker , event ?: any ) => any
68
77
69
78
export interface IMarkerProps extends Partial < google . maps . MarkerOptions > {
70
79
mapCenter ?: google . maps . LatLng | google . maps . LatLngLiteral
80
+ position ?: google . maps . LatLngLiteral
81
+ label ?: string
82
+ title ?: string
83
+ name ?: string
71
84
72
85
onClick ?: markerEventHandler
86
+ onDblclick ?: markerEventHandler
87
+ onDragend ?: markerEventHandler
88
+ onMousedown ?: markerEventHandler
89
+ onMouseout ?: markerEventHandler
73
90
onMouseover ?: markerEventHandler
91
+ onMouseup ?: markerEventHandler
92
+ onRecenter ?: markerEventHandler
74
93
}
75
94
76
95
export class Map extends React . Component < IMapProps , any > {
@@ -94,13 +113,17 @@ export class Circle extends React.Component<any, any> {
94
113
}
95
114
96
115
export interface IInfoWindowProps extends Partial < google . maps . InfoWindowOptions > {
97
- google : typeof google
98
- map : google . maps . Map
99
- marker : google . maps . Marker
116
+ google ? : typeof google
117
+ map ? : google . maps . Map
118
+ marker ? : google . maps . Marker
100
119
101
- mapCenter ?: google . maps . LatLng | google . maps . LatLngLiteral
120
+ position ?: google . maps . LatLng | google . maps . LatLngLiteral
102
121
visible ?: boolean
103
122
123
+ children : React . ReactNode
124
+ onClose ?( ) : void
125
+ onOpen ?( ) : void
126
+
104
127
}
105
128
106
129
export class InfoWindow extends React . Component < IInfoWindowProps , any > {
0 commit comments