# Can we find Feature TextStyle Overlap in runtime/refresh

**URL:** <https://community.thinkgeo.com/t/can-we-find-feature-textstyle-overlap-in-runtime-refresh/8659>\
**Category:** WinForms\
**Created:** [September 7, 2017, 5:38am UTC](https://community.thinkgeo.com/t/can-we-find-feature-textstyle-overlap-in-runtime-refresh/8659 "2017-09-07T05:38:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![riyas](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@riyas](https://community.thinkgeo.com/u/riyas)\
**Post date:** [September 7, 2017, 5:38am UTC](https://community.thinkgeo.com/t/can-we-find-feature-textstyle-overlap-in-runtime-refresh/8659/1 "2017-09-07T05:38:19Z")

</div>

Hi,  
I have a scenario, Is it possible to find Feature TextStyle Overlapped or Not.  
Example:

 ![](https://community.thinkgeo.com/uploads/default/original/3X/c/1/c105454340207ce3c4394c35d077fd11fbfa1015.png)

Code:  
TextStyle tAircraft = TextStyles.CreateMaskTextStyle(“FlightNo”, new GeoFont(“Arial”, 8, DrawingFontStyles.Bold), new GeoSolidBrush(GeoColor.SimpleColors.White), new AreaStyle(new GeoPen(GeoColor.StandardColors.Transparent), new GeoSolidBrush(GeoColor.FromArgb(255, 40, 49, 151))), 15, 0);  
tAircraft.OverlappingRule = LabelOverlappingRule.AllowOverlapping;

So, I want to know that display features overlapped or not. is it possible to find it.

Please suggest me anyone for solving it.

Thanks,  
Riyaz

---

<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:** [September 8, 2017, 5:40am UTC](https://community.thinkgeo.com/t/can-we-find-feature-textstyle-overlap-in-runtime-refresh/8659/2 "2017-09-08T05:40:18Z")

</div>

Hi Riyaz,

That’s strange because the AllowOverlapping default render all labels, please see my test result:

```
 ShapeFileFeatureLayer shapeFileLayer = new ShapeFileFeatureLayer(@"..\..\AppData\states.shp");
        shapeFileLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = WorldStreetsAreaStyles.Military();
        shapeFileLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Military1("STATE_NAME");

        shapeFileLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.OverlappingRule = LabelOverlappingRule.AllowOverlapping;

        shapeFileLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

```

Zoom to full extent:

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

Keep zoom out:

![](https://community.thinkgeo.com/uploads/default/original/3X/1/2/12a6ef1ac37d9757c9b60a7a78e984d36d0adeed.png)

So I think maybe that’s caused by some other reason, could you please create a simple sample based on your code, so we can reproduce that first.

And you can also try the other property of DefaultTextStyle to see whether that’s helpful.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![riyas](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@riyas](https://community.thinkgeo.com/u/riyas)\
**Post date:** [September 8, 2017, 6:10am UTC](https://community.thinkgeo.com/t/can-we-find-feature-textstyle-overlap-in-runtime-refresh/8659/3 "2017-09-08T06:10:57Z")

</div>

Hi Don,  
Thanks for your reply.

Actually By seeing we can identify that, features are overlapping or not. But I need to store a TRUE or FALSE value, based on features Overlapping or not. Is there any way to find it.

Thanks,  
Riyaz

---

<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:** [September 8, 2017, 8:51am UTC](https://community.thinkgeo.com/t/can-we-find-feature-textstyle-overlap-in-runtime-refresh/8659/4 "2017-09-08T08:51:06Z")

</div>

Hi Riyaz,

It looks we don’t have a sign for overlapped label.

Regards,

Don
