Hello,
Is it possible to set the view center of the 3D environment with the z value(elevation)?
i.e: center:(x,y,z)
Thanks for your help.
Hey @NorbertByiringiro
Yes you can, see the documentation here: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#center
But currently the functionality using view.center() with z-values does not always work as intended, there are some known issues. An alternative would be using view.camera(), documentation can be found here: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#camera. With the camera property you also get more options on where the camera should look (heading and tilt). Also check out the sample here: https://developers.arcgis.com/javascript/latest/sample-code/scene-easy-navigate/.
I hope this helps your issue, if not do not hesitate to ask again!
Best, Daniel
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.