AnsweredAssumed Answered

Problems with "animateTo" - JavaScript API 4.0 Beta

Question asked by s.geigenbergeresri-de-esridist Employee on Feb 18, 2016
Latest reply on Feb 18, 2016 by rscheitlin

I am acutally working on a 3D demo using the JavaScript API 4.0 Beta and a problem with the "animateTo" function appeared. The demo shows the live position off all local trains in Munich and is based on the "LA Bus" demo from Esri Inc..

If you click on a train listed in the left menue, the "animateTo" function is called:

 

        this.sceneView.animateTo({

        target: this.selectionGraphic.geometry,

        center: this.selectionGraphic.geometry,

        zoom: this.sceneView.zoom,

        heading: this.sceneView.camera.heading,

        tilt:this.sceneView.camera.tilt

        });

With every click the zoom level increases and the graphic, that should be in the center moves to the top of the window when the zoom level increases. With a very high zoom level the graphic is outside the extent of the SceneView. The movement of the graphic can only be observed, when the camera is sloped. If the view is orthogonally from the top the graphic is always in the center.

 

 

I am really sorry, but i cannot publish the demo here, because of the train data, but i hope the problem can be retraced.

 

Thank you,

Simon

Outcomes