Keeping location pin on center of MapView

79
2
09-27-2022 11:30 AM
ZachRuiz
New Contributor II

Hello, 

 

I am working on an application that tracks a moving vehicle and I would like to keep the location marker at the very center of the map view. It seems the default behavior waits for the location marker to hit the edge of the mapview before it will shift the location. I had a look at the examples and I do not see an example of this. 

 

Thanks 

Tags (3)
0 Kudos
2 Replies
ZachRuiz
New Contributor II

MyMapView.LocationDisplay.WanderExtentFactor = 0.01; fixed my issue

0 Kudos
dotMorten_esri
Esri Notable Contributor

Also consider changing the autopanmode to navigation or compass instead.

0 Kudos