fix(googlemaps): moveCamera and animateCamera now return a Promise

closes #511
This commit is contained in:
Ibrahim Hadeed 2016-09-06 22:28:56 -04:00
parent 7910493a6c
commit d03d70ff0b
No known key found for this signature in database
GPG Key ID: 0431793F665481A4

View File

@ -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 {