Select to view content in your preferred language

Keeping location pin on center of MapView

812
3
09-27-2022 11:30 AM
ZachRuiz
Occasional Contributor

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
Occasional Contributor

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
Occasional Contributor

@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