EasyGIS.NET icon indicating copy to clipboard operation
EasyGIS.NET copied to clipboard

Smoothly Moving Elements SFMAP

Open u3z opened this issue 3 years ago • 1 comments

I’m attempting to draw a moving object on a SFmap. I’m trying to make a rectangle that expands in size smoothly using the SFMAP paint event. (as in increasing size every by 1px every 10ms).

I increase the size with a timer set at a tick interval rate of 10 which adds 1 to a variable containing the rectangle’s width. The paint event on the SFMAP will draw a rectangle (for example) with a demo width incremented smoothly by a timer.

However, if I call the invalidate event on the SFMAP (to apply the rectangle’s width changes) with the timer, it becomes slow and impossible to use. Is there a way that I can draw a smooth moving object on a SFMAP without the control it lagging or taking up too much memory?

u3z avatar Jan 22 '22 05:01 u3z