Select to view content in your preferred language

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

871
2
Jump to solution
06-09-2021 04:55 AM
MichaelLev
Frequent Contributor

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
Regular Contributor
0 Kudos
2 Replies
JethroLeevers
Regular 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
Frequent Contributor

Dear JethroLeevers, Thank you!

0 Kudos