# Hide point if already exists

**URL:** <https://community.thinkgeo.com/t/hide-point-if-already-exists/3482>\
**Category:** WPF\
**Created:** [July 30, 2013, 6:15pm UTC](https://community.thinkgeo.com/t/hide-point-if-already-exists/3482 "2013-07-30T18:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@Scott1](https://community.thinkgeo.com/u/Scott1)\
**Post date:** [July 30, 2013, 6:15pm UTC](https://community.thinkgeo.com/t/hide-point-if-already-exists/3482/1 "2013-07-30T18:15:43Z")

</div>

Hello,&nbsp;I&nbsp;have&nbsp;2&nbsp;well&nbsp;symbols&nbsp;drawing&nbsp;on&nbsp;a&nbsp;map&nbsp;(Top&nbsp;hole,&nbsp;bottom&nbsp;hole).&nbsp;The&nbsp;bottom&nbsp;hole&nbsp;is&nbsp;drawn&nbsp;first&nbsp;as&nbsp;it&nbsp;is&nbsp;important&nbsp;and&nbsp;the&nbsp;symbol&nbsp;changes.&nbsp;The&nbsp;top&nbsp;hole&nbsp;point&nbsp;is&nbsp;drawn&nbsp;last&nbsp;as&nbsp;it&nbsp;is&nbsp;always&nbsp;the&nbsp;same&nbsp;style.  
  
  
  
I&nbsp;would&nbsp;like&nbsp;that&nbsp;when&nbsp;the&nbsp;top&nbsp;hole&nbsp;and&nbsp;bottom&nbsp;hole&nbsp;are&nbsp;the&nbsp;same&nbsp;point&nbsp;the&nbsp;top&nbsp;hole&nbsp;point&nbsp;is&nbsp;not&nbsp;visible.&nbsp;  
  
  
  
I&nbsp;am&nbsp;adding&nbsp;the&nbsp;top&nbsp;hole&nbsp;using&nbsp;a&nbsp;default&nbsp;point&nbsp;style&nbsp;how&nbsp;can&nbsp;I&nbsp;accomplish&nbsp;this?

> `case`&nbsp;`MapFeatureStyle.WellSymbolForSurfaceLocation:`  
> `                ``{`  
> `                    ``GeoFont surfaceGeoFont = ``new`&nbsp;`GeoFont(fontName, 12);`  
> `                    ``PointStyle surfacePointStyle = ``new`&nbsp;`PointStyle(surfaceGeoFont, 177, ``new`&nbsp;`GeoSolidBrush(GeoColor.StandardColors.Black));`  
> `                    ``defaultZoomLevel.DefaultPointStyle = surfacePointStyle;`  
> `                    ``break``;`  
> `                ``}`

  
  
  
  
Thanks&nbsp;in&nbsp;advance,

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [July 31, 2013, 12:36am UTC](https://community.thinkgeo.com/t/hide-point-if-already-exists/3482/2 "2013-07-31T00:36:31Z")

</div>

Hi&nbsp;Scott,  
  
  
  
Thanks&nbsp;for&nbsp;your&nbsp;post,&nbsp;attached&nbsp;sample&nbsp;could&nbsp;show&nbsp;you&nbsp;a&nbsp;basic&nbsp;idea&nbsp;to&nbsp;achieve&nbsp;this&nbsp;functionality,&nbsp;would&nbsp;you&nbsp;please&nbsp;try&nbsp;it?

if&nbsp;you&nbsp;have&nbsp;any&nbsp;more&nbsp;question&nbsp;,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.

Best&nbsp;Regards

Summer

[Post11439.txt](https://community.thinkgeo.com/uploads/default/original/2X/d/d08dc145dc5e252cc8f064541970b0ff6766c179.txt) (2.5 KB)
