Keeping location pin on center of MapView

173
3
09-27-2022 11:30 AM
ZachRuiz
New Contributor III

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
3 Replies
ZachRuiz
New Contributor III

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
ZachRuiz
New Contributor III

@dotMorten_esri  Is there a way to use compass without overwriting the location Symbol? It seems when I try and use compass it sets it back to the blue dot. 

0 Kudos