EasyGIS.NET
EasyGIS.NET copied to clipboard
Smoothly Moving Elements SFMAP
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?