Animating a route

Topics: Help, Windows Forms
Feb 13, 2013 at 11:06 AM
I am using for my windows form application.
I have to visualize my GIS data gathered from vehicles. my task is to animate the route of the vehicle, so the user understands in what direction vehicle is travelling.
something like this

for the moment i have used a simple marker as my vehicle....but i donno how can i give motion to it according to co-ordinates in my database..
Does support such features??

please help me for this, its really important for my project
Feb 13, 2013 at 11:26 AM
just update markers position in timer
Feb 13, 2013 at 1:30 PM
can u give me an example code for this, i am not well versed with timers
Feb 13, 2013 at 1:37 PM
The source code.
Demo.WindowsForms/Mainform.cs look for TIMER
Feb 13, 2013 at 5:46 PM
i tried to do this

private void OnTimerEvent(object sender, EventArgs e)

        for (int i = 0; i <= 1000; i++)
            var pos = new PointLatLng(TLat[i], TLong[i]);
            m = new GMapMarkerGoogleGreen(pos);

i have stored all the transmitter coordinates in TLat and TLong, and i am starting the timer on a button click event.
But i dont see any output on my map, instead map becomes invisible for sometime.

what should i do?
Feb 13, 2013 at 5:57 PM
just update markers position in timer
Feb 13, 2013 at 6:18 PM
u mean on timer_tick() event rite?
but how can i pass my coordinates to it?
Feb 13, 2013 at 6:32 PM
;} how is the question, because is the answer
Feb 13, 2013 at 6:45 PM
Okk, i tried it, but it is not giving any motion to marker, just placing a marker at random intervals.
please tell me what should i do its really important for me
Feb 13, 2013 at 7:07 PM
place the marker at short intervals and you'll get motion illusion
Mar 9, 2013 at 4:32 AM
Since right-click moves the screen, you might be able to simulate a right-click and move the map around.
BTW: I need a map that travels along as well and I don't want to do it in Javascript....
File: gmapcontrol.cs
has this:
protected override void OnMouseMove(MouseEventArgs e)

Also, it wouldn't hurt to ask Mike