Update/Redraw/Refresh/.. polygon overlay layer

Jul 14, 2010 at 6:18 PM
Edited Jul 14, 2010 at 6:21 PM


I've just recently added GMaps to my project, and I'm trying to draw polygons over my map, to describe "Regions".  It's really just a polygon drawn over the map, starting on MouseDown, and ending on MouseUp.  I have that working, however I'd like to be able to move the rectangle around.  I've been able to move the rectangle predictably, but the rectangle doesn't refresh as I move it.  I can click and drag it, drop it, then zoom out/in and the rectangle will appear where I want it to be, however I dont want to have to zoom in and out. Is there anyway to redraw the overlay, or something to that effect?

 EDIT: I was browsing the forum, and the following looked promissing, however it didn't change anything (as far as I could tell):




Jul 14, 2010 at 6:29 PM
call gMapControl1.Invalidate() after that too
Jul 14, 2010 at 6:42 PM

You're amazing, thanks!

Jul 14, 2010 at 6:48 PM