Skip to content

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

@mayankrr

Description

@mayankrr

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,
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions