# To write VertexAddedEvent in SnapToEditInteractiveOverlay

**URL:** <https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226>\
**Category:** WinForms\
**Created:** [October 10, 2016, 9:07am UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226 "2016-10-10T09:07:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [October 10, 2016, 9:07am UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/1 "2016-10-10T09:07:19Z")

</div>

Hi,

How to get updated feature when new vertex added in feature using SnapToEditInteractiveOverlay?  
I have tried to write VertexAdded event but its not giving updated feature. Its giving new vertex and affected feature. Please give sample to get updated feature vertices when vertex getting added or removed.

Thanks,  
Goral

---

<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:** [October 11, 2016, 5:43am UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/2 "2016-10-11T05:43:48Z")

</div>

Hi Goral,

Please edit your post, it looks you make your text as code, so it’s not easy to read.

And you hadn’t put your question in corresponding sub-forum, we don’t know which product you are using.

Could you please attach your simple sample here, so we can know how you had implemented here and help you find the problem, from your description your scenario is not clearly.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [October 14, 2016, 12:08pm UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/3 "2016-10-14T12:08:23Z")

</div>

Hi,

I have edited original post. Hope it will be clear now.

---

<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:** [October 17, 2016, 6:21am UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/4 "2016-10-17T06:21:30Z")

</div>

Hi Goral,

I still hadn’t found the SnapToEditInteractiveOverlay class you mentioned.

I think if you want to get more help on this problem we need your sample, based on that we can directly start works for the issue and reduce the communication time.

And if that’s a new requirement, I think you should want to get support from our ticket system or professional service, because in forum we focus on solve more basic problems and simple bugs.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [October 19, 2016, 6:18am UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/5 "2016-10-19T06:18:04Z")

</div>

Hi,

Here with this I have attached class file. In that click on edit button to edit line feature. On adding vertex I want updated feature.  
[frmSnapfeaturelayer.Designer.cs](https://community.thinkgeo.com/uploads/default/original/3X/3/0/301abab60a662bcb91e37b780c8720e7e287b9ac.cs) (4.3 KB)[frmSnapfeaturelayer.cs](https://community.thinkgeo.com/uploads/default/original/3X/a/7/a7d1bc4707d5d105782d4207c81fa7e0a6606a12.cs) (7.8 KB)

Hope this class file make clear scenario.

Thanks,  
Goral

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [October 24, 2016, 12:04pm UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/6 "2016-10-24T12:04:28Z")

</div>

Hi,

Any updates?

Thanks,  
Goral

---

<div class="post-metadata">

**Author:** ![Peter](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/peter/32/19042_2.png) [@Peter](https://community.thinkgeo.com/u/Peter)\
**Post date:** [October 25, 2016, 2:34am UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/7 "2016-10-25T02:34:42Z")

</div>

Hi Goral,

Attached is the sample, please check it out. There is a sample “HowDoISamples” on our wiki, I guess it can help you.

[ThinkGeo Docs](http://wiki.thinkgeo.com/wiki/map_suite_desktop_edition_all_samples#map_suite_desktop_edition_how_do_i_samples). After you run the sample and then please expand the “Editing Feature Layers” and click “Track and edit shapes” item, it allows us to edit and track the shapes you want, like below.

 ![](https://community.thinkgeo.com/uploads/default/original/3X/a/0/a0870743f4a5edb11f92c3564d72ca121b2eea3d.png)

[frmSnapfeaturelayer.zip](https://community.thinkgeo.com/uploads/default/original/3X/9/7/9755eef42665641b502eff4bfd302abd6e8b0bab.zip) (12.8 KB)

Thanks,  
Peter

---

<div class="post-metadata">

**Author:** ![Goral](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Goral](https://community.thinkgeo.com/u/Goral)\
**Post date:** [October 27, 2016, 4:33am UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/8 "2016-10-27T04:33:09Z")

</div>

Hi,

Thanks for reply. I have gone through all these samples and tried to build the application. I want example of how to write vertexadded event and get updated feature with added vertex.

Thanks,  
Goral

---

<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 10, 2016, 9:21am UTC](https://community.thinkgeo.com/t/to-write-vertexaddedevent-in-snaptoeditinteractiveoverlay/8226/9 "2016-11-10T09:21:03Z")

</div>

Hi Goral,

The problem is you still hadn’t paste the code of SnapToLayerEditInteractiveOverlay.

If you implement the vertexadded event, you can get the feature directly from the event args.

private void VertexAdded(object sender, VertexAddedEditInteractiveOverlayEventArgs e)  
{  
e.AffectedVertexFeature; // This is what you want  
}

Regards,

Don
