sceneView - how to pan it by javascript - goto location, but show it in 3/4 screen height

720
2
Jump to solution
06-09-2021 04:55 AM
MichaelLev
Occasional Contributor III

I need do SceneView.goTo() but I need that my target location be shown NOT in screen center, but in its 3/4 height, as if panned upwards.

How do I do this by javascript?

Help will be greatly appreciated.

Michael

0 Kudos
1 Solution

Accepted Solutions
JethroLeevers
Occasional Contributor
0 Kudos
2 Replies
JethroLeevers
Occasional Contributor

You might be able to use the viewPadding parameter on the SceneView

https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#padding

0 Kudos
MichaelLev
Occasional Contributor III

Dear JethroLeevers, Thank you!

0 Kudos