# Set Visibility false to feature in editOverlay

**URL:** <https://community.thinkgeo.com/t/set-visibility-false-to-feature-in-editoverlay/3848>\
**Category:** WPF\
**Created:** [August 6, 2015, 9:47am UTC](https://community.thinkgeo.com/t/set-visibility-false-to-feature-in-editoverlay/3848 "2015-08-06T09:47:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miri](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@miri](https://community.thinkgeo.com/u/miri)\
**Post date:** [August 6, 2015, 9:47am UTC](https://community.thinkgeo.com/t/set-visibility-false-to-feature-in-editoverlay/3848/1 "2015-08-06T09:47:40Z")

</div>

Hallo  
  
  
  
I&nbsp;have&nbsp;&nbsp;Features&nbsp;store&nbsp;in&nbsp;an&nbsp;InMemoryFeatureLayer.&nbsp;the&nbsp;user&nbsp;can&nbsp;edit&nbsp;the&nbsp;features,&nbsp;and&nbsp;in&nbsp;that&nbsp;point&nbsp;i&nbsp;move&nbsp;the&nbsp;edited&nbsp;features&nbsp;from&nbsp;to&nbsp;the&nbsp;EditOverlay.  
  
The&nbsp;use&nbsp;can&nbsp;also&nbsp;set&nbsp;the&nbsp;visibility&nbsp;mode&nbsp;of&nbsp;the&nbsp;edited&nbsp;features.  
  
My&nbsp;question&nbsp;is&nbsp;how&nbsp;can&nbsp;i&nbsp;make&nbsp;the&nbsp;features&nbsp;in&nbsp;the&nbsp;edit&nbsp;layer&nbsp;invisible.  
  
I&nbsp;tried&nbsp;to&nbsp;do&nbsp;it&nbsp;by&nbsp;using&nbsp;the&nbsp;following&nbsp;code,&nbsp;which&nbsp;did&nbsp;make&nbsp;the&nbsp;features&nbsp;invisible&nbsp;but&nbsp;the&nbsp;"edit&nbsp;tool"&nbsp;on&nbsp;the&nbsp;shapes&nbsp;are&nbsp;visible&nbsp;(see&nbsp;the&nbsp;attached  
  
image).  
  
how&nbsp;can&nbsp;i&nbsp;make&nbsp;them&nbsp;transparent&nbsp;as&nbsp;well&nbsp;

> `if(IsInEdit)`  
> `                   ``{`  
> `                       ``if (_isVisible)`  
> `                       ``{`  
> `                           ``if (map.EditOverlay.EditShapesLayer.FeatureIdsToExclude.Contains(this.ID))`  
> `                               ``map.EditOverlay.EditShapesLayer.FeatureIdsToExclude.Remove(this.ID);`  
> `                       ``}`  
> `                       ``else`  
> `                       ``{`  
> `                           ``if (!map.EditOverlay.EditShapesLayer.FeatureIdsToExclude.Contains(this.ID))`  
> `                               ``map.EditOverlay.EditShapesLayer.FeatureIdsToExclude.Add(this.ID);`  
> `                       ``}`  
> `                       ``map.Refresh(map.EditOverlay);`  
> `                   ``}`

---

<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:** [August 6, 2015, 10:14pm UTC](https://community.thinkgeo.com/t/set-visibility-false-to-feature-in-editoverlay/3848/2 "2015-08-06T22:14:29Z")

</div>

Hi&nbsp;Miri,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;you&nbsp;should&nbsp;want&nbsp;to&nbsp;do&nbsp;that&nbsp;like&nbsp;this:&nbsp;  
&nbsp;&nbsp;  
&nbsp;1.&nbsp;If&nbsp;you&nbsp;only&nbsp;want&nbsp;to&nbsp;hide&nbsp;part&nbsp;features&nbsp;in&nbsp;EditOverlay,&nbsp;you&nbsp;can&nbsp;directly&nbsp;remove&nbsp;them&nbsp;from&nbsp;EditOverlay.&nbsp;  
&nbsp;&nbsp;  
&nbsp;2.&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;hide&nbsp;all&nbsp;features&nbsp;in&nbsp;EditOverlay,&nbsp;why&nbsp;not&nbsp;remove&nbsp;or&nbsp;hide&nbsp;EditOverlay?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don
