Skip to content

Commit

Permalink
fix(googlemaps): moveCamera and animateCamera now return a Promise
Browse files Browse the repository at this point in the history
closes #511
  • Loading branch information
ihadeed committed Sep 7, 2016
1 parent 7910493 commit d03d70f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/plugins/googlemaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,11 @@ export class GoogleMap {
setTilt(tiltLevel: number): void {
}

@CordovaInstance({ sync: true })
animateCamera(animateCameraOptions: AnimateCameraOptions): void {
}
@CordovaInstance()
animateCamera(animateCameraOptions: AnimateCameraOptions): Promise<any> { return; }

@CordovaInstance({ sync: true })
moveCamera(cameraPosition: CameraPosition): void {
}
@CordovaInstance()
moveCamera(cameraPosition: CameraPosition): Promise<any> { return; }

@CordovaInstance({ sync: true })
setMyLocationEnabled(enabled: boolean): void {
Expand Down

0 comments on commit d03d70f

Please sign in to comment.