Skip to content

Navigation Menu

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 d1a7cf5

Browse filesBrowse files
authored
Merge branch 'master' into patch-1
2 parents bebf1a2 + 5f51f22 commit d1a7cf5
Copy full SHA for d1a7cf5

File tree

5 files changed

+16559
-5174
lines changed
Filter options

5 files changed

+16559
-5174
lines changed

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ npm-debug.log
88
node_modules
99
.env
1010
public/
11-
dist

‎index.d.ts

Copy file name to clipboardExpand all lines: index.d.ts
+30-7
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export interface IProvidedProps {
2424
loaded?: boolean
2525
}
2626

27-
type mapEventHandler = (mapProps?: IMapProps, map?: google.maps.Map, event?) => any
27+
type mapEventHandler = (mapProps?: IMapProps, map?: google.maps.Map, event?: any) => any
2828

29-
type Style = Object<string, string | number | boolean>
29+
type Style = Object
3030

3131
export interface IMapProps extends google.maps.MapOptions {
3232
google: GoogleAPI
@@ -39,6 +39,15 @@ export interface IMapProps extends google.maps.MapOptions {
3939
centerAroundCurrentLocation?: boolean
4040
initialCenter?: google.maps.LatLngLiteral
4141
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
4251

4352
visible?: boolean
4453

@@ -64,14 +73,24 @@ export interface IMapProps extends google.maps.MapOptions {
6473
onZoomChanged?: mapEventHandler
6574
}
6675

67-
type markerEventHandler = (props?: IMarkerProps, marker?: google.maps.Marker, event?) => any
76+
type markerEventHandler = (props?: IMarkerProps, marker?: google.maps.Marker, event?: any) => any
6877

6978
export interface IMarkerProps extends Partial<google.maps.MarkerOptions> {
7079
mapCenter?: google.maps.LatLng | google.maps.LatLngLiteral
80+
position?: google.maps.LatLngLiteral
81+
label?: string
82+
title?: string
83+
name?: string
7184

7285
onClick?: markerEventHandler
86+
onDblclick?: markerEventHandler
87+
onDragend?: markerEventHandler
88+
onMousedown?: markerEventHandler
89+
onMouseout?: markerEventHandler
7390
onMouseover?: markerEventHandler
7491
onDragend?: markerEventHandler
92+
onMouseup?: markerEventHandler
93+
onRecenter?: markerEventHandler
7594
}
7695

7796
export class Map extends React.Component<IMapProps, any> {
@@ -95,13 +114,17 @@ export class Circle extends React.Component<any, any> {
95114
}
96115

97116
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
101120

102-
mapCenter?: google.maps.LatLng | google.maps.LatLngLiteral
121+
position?: google.maps.LatLng | google.maps.LatLngLiteral
103122
visible?: boolean
104123

124+
children: React.ReactNode
125+
onClose?(): void
126+
onOpen?(): void
127+
105128
}
106129

107130
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.