@@ -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,14 +73,24 @@ 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
74
91
onDragend ?: markerEventHandler
92
+ onMouseup ?: markerEventHandler
93
+ onRecenter ?: markerEventHandler
75
94
}
76
95
77
96
export class Map extends React . Component < IMapProps , any > {
@@ -95,13 +114,17 @@ export class Circle extends React.Component<any, any> {
95
114
}
96
115
97
116
export interface IInfoWindowProps extends Partial < google . maps . InfoWindowOptions > {
98
- google : typeof google
99
- map : google . maps . Map
100
- marker : google . maps . Marker
117
+ google ? : typeof google
118
+ map ? : google . maps . Map
119
+ marker ? : google . maps . Marker
101
120
102
- mapCenter ?: google . maps . LatLng | google . maps . LatLngLiteral
121
+ position ?: google . maps . LatLng | google . maps . LatLngLiteral
103
122
visible ?: boolean
104
123
124
+ children : React . ReactNode
125
+ onClose ?( ) : void
126
+ onOpen ?( ) : void
127
+
105
128
}
106
129
107
130
export class InfoWindow extends React . Component < IInfoWindowProps , any > {
0 commit comments