Sliding custom Marker.

Topics: Windows Forms
Dec 2, 2011 at 2:01 AM

Is there any idea how to "animate" marker moving from one position to other, but not jumping

I'm try to make one transparent picture box and move it from screen position, but only way was to put it in map control, in that case it flick when map render start ....

Is it possible to change marker position many times per sec to make it slide on map???

If there is any idea Please Help!

 

Thanks!

Dec 2, 2011 at 7:32 AM

wtf, picture box, what it has to do with map control?

Dec 2, 2011 at 7:52 AM

I try with markers and overlay, but without success

Please for little help with this,

I need just idea to solve problem, and what time is needed to refresh markers on map  i have 10 cars and need to make them slide, i have delay 1 sec,

and that translation from one point to odher need to be 1s long, my question is how many times per sec can be refreshed overlay with markes in 1s,

Can it be 25 times per second (25fps) to make ilusion of slide without hoping?

Or i need to move marker for 1px and then i must calculate frequency of moving to get it slide ?

Or any idea, sample few lines of code anything what can  ¨show the way¨ for solving this problem.

Thanks!

Dec 2, 2011 at 8:13 AM

refresh rate is limited by cpu and the number of markers, it's the same as dragging the map, the question is how to calculate transition points?

onTimerTick()
{
  MainMap.HoldInvalidation = true;
  {
     marker1.Position = new (..
     marker2.Position = new (..
     marker3.Position = new (..
     marker4.Position = new (..
  }
  map.Refresh();
}
 
Dec 2, 2011 at 8:15 AM

p.s. i'll try to experiment it on vehicle demo

Dec 2, 2011 at 9:52 PM

THANK YOU VERY MUCH!

THIS IS THE RIGHT ANSWER WHAT I NEED!

THIS LOOK FASCINATING, BEAUTIFUL , GREAT GREAT GREAT WITH YOUR GREAT MAP.

I wish to thank YOU Radioman one more time for this GREAT ARTICLE.

I will do some tests and feedback all results to YOU.

THANKS !

Dec 3, 2011 at 10:14 AM

;}