# Last vertex not snapped

**URL:** <https://community.thinkgeo.com/t/last-vertex-not-snapped/8283>\
**Category:** WinForms\
**Created:** [November 22, 2016, 8:44am UTC](https://community.thinkgeo.com/t/last-vertex-not-snapped/8283 "2016-11-22T08:44:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/b2d939/32.png) [@Patrick](https://community.thinkgeo.com/u/Patrick)\
**Post date:** [November 22, 2016, 8:44am UTC](https://community.thinkgeo.com/t/last-vertex-not-snapped/8283/1 "2016-11-22T08:44:17Z")

</div>

Hi,

I’m using SnapToLayerEditInteractiveOverlay from your sample and it works perfectly for every vertex clicked.  
But NOT for the last one double-clicked.

Can you give a try & suggestion ?

Thank you  
Patrick.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [November 23, 2016, 7:04am UTC](https://community.thinkgeo.com/t/last-vertex-not-snapped/8283/2 "2016-11-23T07:04:53Z")

</div>

Hi Patrick,

For our sample, we don’t handle the start point and end point, so if you want to implement that you should want to build custom code.

If you view the code, you can see we only handle the snap by override MoveVertexCore function.

If you want to handle the last vertex, you can handle that by override other functions, for example MouseDoubleClickCore.

Wish that’s helpful.

Regards,

Don
