# Is there an example to center map based on vehicle position

**URL:** <https://community.thinkgeo.com/t/is-there-an-example-to-center-map-based-on-vehicle-position/1078>\
**Category:** WinForms\
**Created:** [March 1, 2010, 2:15pm UTC](https://community.thinkgeo.com/t/is-there-an-example-to-center-map-based-on-vehicle-position/1078 "2010-03-01T14:15:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![btasa](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/b/f17d59/32.png) [@btasa](https://community.thinkgeo.com/u/btasa)\
**Post date:** [March 1, 2010, 2:15pm UTC](https://community.thinkgeo.com/t/is-there-an-example-to-center-map-based-on-vehicle-position/1078/1 "2010-03-01T14:15:19Z")

</div>

I&nbsp;know&nbsp;i&nbsp;can&nbsp;get&nbsp;the&nbsp;position&nbsp;of&nbsp;a&nbsp;vehicle.&nbsp;Is&nbsp;there&nbsp;a&nbsp;way&nbsp;to&nbsp;center&nbsp;the&nbsp;map&nbsp;based&nbsp;on&nbsp;this&nbsp;position?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [March 1, 2010, 6:11pm UTC](https://community.thinkgeo.com/t/is-there-an-example-to-center-map-based-on-vehicle-position/1078/2 "2010-03-01T18:11:05Z")

</div>

Bob,

Take&nbsp;a&nbsp;look&nbsp;at&nbsp;the&nbsp;following&nbsp;sample&nbsp;in&nbsp;our&nbsp;code&nbsp;community;&nbsp;hope&nbsp;it&nbsp;was&nbsp;what&nbsp;you&nbsp;expect.  
[code.thinkgeo.com/projects/s...ngonmoving](http://code.thinkgeo.com/projects/show/centeringonmoving)  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [March 3, 2010, 8:15am UTC](https://community.thinkgeo.com/t/is-there-an-example-to-center-map-based-on-vehicle-position/1078/3 "2010-03-03T08:15:37Z")

</div>

You&nbsp;can&nbsp;also&nbsp;can&nbsp;one&nbsp;step&nbsp;further&nbsp;if&nbsp;you&nbsp;want.&nbsp;You&nbsp;can&nbsp;have&nbsp;the&nbsp;map&nbsp;centering&nbsp;and&nbsp;rotating&nbsp;according&nbsp;to&nbsp;a&nbsp;moving&nbsp;vehicle&nbsp;position&nbsp;and&nbsp;direction&nbsp;as&nbsp;you&nbsp;can&nbsp;see&nbsp;in&nbsp;this&nbsp;recently&nbsp;posted&nbsp;project.

[code.thinkgeo.com/projects/s...ngrotating](http://code.thinkgeo.com/projects/show/centeringrotating)
