# Create polygon with just outline, no fill

**URL:** <https://community.thinkgeo.com/t/create-polygon-with-just-outline-no-fill/8952>\
**Category:** WinForms\
**Created:** [February 15, 2018, 2:05pm UTC](https://community.thinkgeo.com/t/create-polygon-with-just-outline-no-fill/8952 "2018-02-15T14:05:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [February 15, 2018, 2:05pm UTC](https://community.thinkgeo.com/t/create-polygon-with-just-outline-no-fill/8952/1 "2018-02-15T14:05:42Z")

</div>

Seems like a simple problem but I’m having trouble figuring out the solution to this. I want to create a polygon/areastyle where just the outline is shown, but the fill should be clear. So basically it would look like if I was just creating connected lines.

Edit: Here’s the constructor I’m currently using for making area styles:

```
public static AreaStyle CreateSimpleAreaStyle(GeoColor fillBrushColor, GeoColor outlinePenColor, int outlinePenWidth);

```

I thought I just had to set the fillBrushColor to GeoColor.StandardColors.Transparent, but that made the outline dissapear as well.

---

<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:** [February 16, 2018, 3:41am UTC](https://community.thinkgeo.com/t/create-polygon-with-just-outline-no-fill/8952/2 "2018-02-16T03:41:14Z")

</div>

Hi Dan,

This code should works for you.

```
        AreaStyle areaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.StandardColors.Transparent, GeoColor.StandardColors.Black);
        shapeFileLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = areaStyle;
        shapeFileLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

```

Regards,

Ethan

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [February 16, 2018, 2:04pm UTC](https://community.thinkgeo.com/t/create-polygon-with-just-outline-no-fill/8952/3 "2018-02-16T14:04:06Z")

</div>

I’m dumb. The reason it wasn’t showing up is because I had the “name” being used in my columnvalues for this custom area style spelled wrong. Thanks again!

---

<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:** [February 18, 2018, 4:38am UTC](https://community.thinkgeo.com/t/create-polygon-with-just-outline-no-fill/8952/4 "2018-02-18T04:38:36Z")

</div>

Hi Dan,

I am glad to hear this problem solved.

Any question please let us know.

Regards,

Ethan
