zoom to gps location

3252
3
Jump to solution
06-17-2016 09:04 PM
simondedjo1
New Contributor

Hello everyone, I am GIS Analyst and I trying to dive into native GIS Mobile App development using Android Studio.

Here is a chunk of code I used to display my Basemap and GPS location:

code.png

Now I would like tract the user location:

- The app map should zoom to the user's location (GPS position) automatically when location change.

- The GPS position should be in the center of the map as the user is moving.

I will be grateful to any help. Thanks guys !

0 Kudos
1 Solution

Accepted Solutions
AlexanderNohe1
Occasional Contributor III

I believe what you want to do is set the autopan mode using a constant from the following API Reference page:

LocationDisplayManager.AutoPanMode | ArcGIS Android 10.2.8 API

View solution in original post

3 Replies
AlexanderNohe1
Occasional Contributor III

I believe what you want to do is set the autopan mode using a constant from the following API Reference page:

LocationDisplayManager.AutoPanMode | ArcGIS Android 10.2.8 API

simondedjo1
New Contributor

Thanks a lot Alexander ! I went through the API link you provide and I successfully run my code.

0 Kudos
AlexanderNohe1
Occasional Contributor III

Hi simon dedjo​,

Glad to hear!

Would you please mark my answer as correct?

0 Kudos