Select to view content in your preferred language

How to move Camera position from centre to bottom of screen in 2D

687
2
Jump to solution
03-08-2022 11:19 PM
syamkumarsurendran
New Contributor

Hi Team, I am using ArcGis map in my project . As per our requirement , I have to move current location to bottom of screen and  draw scale from current location to top of the screen. Also map should rotate from current location as axis .In default current location as set in centre and rotate from centre axis. So can we move camera position from centre to bottom in 2d

0 Kudos
1 Solution

Accepted Solutions
Nicholas-Furness
Esri Regular Contributor

Hi @syamkumarsurendran,

If I understand your question correctly, you want the current location (aka the blue dot) to be closer to the bottom of the screen than the default center.

The property to control this is on LocationDisplay (which you can get from MapView.getLocationDisplay()). See setNavigationPointHeightFactor(), and you might also find setWanderExtentFactor() useful too.

Hope that helps!

View solution in original post

0 Kudos
2 Replies
Nicholas-Furness
Esri Regular Contributor

Hi @syamkumarsurendran,

If I understand your question correctly, you want the current location (aka the blue dot) to be closer to the bottom of the screen than the default center.

The property to control this is on LocationDisplay (which you can get from MapView.getLocationDisplay()). See setNavigationPointHeightFactor(), and you might also find setWanderExtentFactor() useful too.

Hope that helps!

0 Kudos
syamkumarsurendran
New Contributor

Hi @Nicholas-Furness 

Thank You so much for the Reply. It really helped and location went down when I used setNavigationPointHeightFactor(). I have to implement a compass function from bottom position and one vertical scale will display from bottom location to top of the screen. But the map is rotating on the center axis instead of the bottom current location axis. So plz help how to change axis to bottom and how to convert current scale to vertical scale

 

0 Kudos