Update/Redraw/Refresh/.. polygon overlay layer

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

Hi!

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):

gMapControl1.UpdatePolygonLocalPosition(selectedPoly);

Thanks,

Steven

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

You're amazing, thanks!

Coordinator
Jul 14, 2010 at 5:48 PM
;}