Select to view content in your preferred language

About setViewpointCameraAsync

317
1
Jump to solution
10-10-2022 06:54 AM
LiChunfeng
Occasional Contributor

The viewing angle moves according to the known trajectory, and the direction follows the trajectory direction in senceView. When turning, how to use “setViewpointCameraAsync” to make the perspective change smooth, I wrote:

mTimer = new Timer();

mTimer.scheduleAtFixedRate(new TimerTask() {

   @Override public void run() {

      ...

      senceView.setViewpointCameraAsync(camera)

     ...

     }

}, 0, period);

But it doesn't work.

0 Kudos
1 Solution

Accepted Solutions
RamaChintapalli
Esri Contributor

Hi,
Have tried using the animationDuration while setting the viewpoint for a more smoother experience ?

Thanks
Rama

View solution in original post

0 Kudos
1 Reply
RamaChintapalli
Esri Contributor

Hi,
Have tried using the animationDuration while setting the viewpoint for a more smoother experience ?

Thanks
Rama

0 Kudos