How to make camera.move() or camera.zoomIn() with a duration as ScreenSpaceCameraController

When I call camera.zoomIn() in my code, the map act without any duration. So I view the source code of ScreenSpaceCameraController.js. In ScreenSpaceCameraController, it calls camera.zoomIn() and act with a duration. How can I make a same action? Thanks!!!

Hi @tzraeq

The zoomIn function does not support a duration for the zoom movement. You can use the flyTo function to move to a location over a specified duration but you would have to calculate the destination yourself.