ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
529 stars 592 forks source link

bug: animate property of setCamera function is not working #1316

Open mayankrr opened 1 year ago

mayankrr commented 1 year ago

Bug Report

Capacitor Version

Latest Dependencies:

@capacitor/cli: 4.6.1 @capacitor/core: 4.6.1 @capacitor/android: 4.6.1 @capacitor/ios: 4.6.1

Installed Dependencies:

@capacitor/cli: 3.1.1 @capacitor/core: 3.1.1 @capacitor/ios: 3.1.1 @capacitor/android: 3.1.1

Platform(s)

Ionic + Angular

Current Behavior

Upon calling setCamera function to move to different coordinate no animation can be seen even though animate property is set to true. It just moves/loads abruptly to that particular frame.

Expected Behavior

There should be an animation when setCamera is called to move to a given coordinate point.

Code Reproduction

this.map.setCamera({
            ...cameraConfig,
            zoom: this.currentZoom,
            animate: true,
            animationDuration: 500,
        });
jcesarmobile commented 1 year ago

Thanks for the issue. At the moment it's documented that it does nothing https://capacitorjs.com/docs/apis/google-maps#cameraconfig But we were already tracking internally to add a future implementation.

mh4ck commented 1 year ago

When it will be available?