mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
fix(googlemaps): moveCamera and animateCamera now return a Promise
closes #511
This commit is contained in:
parent
7910493a6c
commit
d03d70ff0b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user