Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

New Post: Finishing a ShapeEditor 'add polygon' operation

$
0
0
Still new to MapWinGIS, but finding it potentially quite powerful!

I have the interactive ShapeEditor implemented for Add and Edit shapes. However, both my customer and myself find the "CTRL + Left Mouse Button" operation to finish a new polygon, to be un-intuitive. Actually that was my biggest problem implementing the ShapeEditor: Okay, I've got a nice polygon half-drawn: I can cancel it, but how do I actually finish it!? :-)

So we'd like to implement the more intuitive "click on the first vertex" to finish the polygon. How can I do this? Presumably I need to trap the left mouse click. Then I need to compare the click coord with the first vertex of the under-construction polygon (how do I find that?), then I need to tell the ShapeEditor to finish the shape (I don't see a 'Finish' method?)

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>