Skip to content
This repository was archived by the owner on Nov 19, 2019. It is now read-only.

Commit 1bc1420

Browse files
author
Dylan Pinn
committed
feat(GoogleMap): add setZoom method
1 parent 1c60be7 commit 1bc1420

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/macros/GoogleMap.jsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,44 @@ export class Map extends React.PureComponent {
5050

5151
/**
5252
* @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
53-
* @public
53+
* @public
5454
*/
5555
fitBounds(...args) {
5656
return this.context[MAP].fitBounds(...args)
5757
}
5858

5959
/**
6060
* @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
61-
* @public
61+
* @public
6262
*/
6363
panBy(...args) {
6464
return this.context[MAP].panBy(...args)
6565
}
6666

6767
/**
6868
* @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
69-
* @public
69+
* @public
7070
*/
7171
panTo(...args) {
7272
return this.context[MAP].panTo(...args)
7373
}
7474

7575
/**
7676
* @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
77-
* @public
77+
* @public
7878
*/
7979
panToBounds(...args) {
8080
return this.context[MAP].panToBounds(...args)
8181
}
8282

83+
/**
84+
* @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
85+
* @public
86+
*/
87+
setZoom(...args) {
88+
return this.context[MAP].setZoom(...args)
89+
}
90+
8391
/*
8492
* @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
8593
*/

0 commit comments

Comments
 (0)