How to navigate to different coordinates on a map.

1241
3
08-08-2016 01:57 PM
PerlaAmbriz
New Contributor II

Hello, Im building a map application of a campus. I want the user to be able to press a button for a building and have the mapoptions.center="" xml attribute in the mapview (or some other code) change the map to that location(building). Does anyone know if there is any code out there that does this and navigates the map to different coordinates? i hope my question is not confusing. Here is a picture of one of my buildings. JackBrown.jpg

0 Kudos
3 Replies
AlexanderNohe1
Occasional Contributor III

MapView.CenterAt should provide what you need:

https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/MapView.html#cent..., double, boolean)

Are you having issues with this command?

PerlaAmbriz
New Contributor II

Thank You!!

0 Kudos
AlexanderNohe1
Occasional Contributor III

If this helped address your question, please mark the answer as correct.

0 Kudos