# Labels and features cut off/disappear at certain zoom levels

**URL:** <https://community.thinkgeo.com/t/labels-and-features-cut-off-disappear-at-certain-zoom-levels/10429>\
**Category:** WPF\
**Created:** [March 11, 2024, 9:08pm UTC](https://community.thinkgeo.com/t/labels-and-features-cut-off-disappear-at-certain-zoom-levels/10429 "2024-03-11T21:08:59Z")\
**Posts on this page:** 3\
**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:** [March 11, 2024, 9:08pm UTC](https://community.thinkgeo.com/t/labels-and-features-cut-off-disappear-at-certain-zoom-levels/10429/1 "2024-03-11T21:08:59Z")

</div>

I notice that sometimes features will cut off/disappear at certain zoom levels and then appear again when zooming in further. Same thing with labels. Is there a common issue that could cause this?

For the map itself, I am setting a bunch of custom levels in a zoomlevelset and then doing:  
`myMap.ZoomLevelSet = customZoomLevelSet;`

My first question is, do I have to do anything to the individual layers (or overlays) for these zoom levels to apply? I am also doing this for each layer:

```
myLayer.DrawingQuality = DrawingQuality.HighSpeed;
myLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.OverlappingRule = LabelOverlappingRule.AllowOverlapping;
myLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.DrawingLevel = DrawingLevel.LabelLevel;
myLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels;
myLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.FittingLineInScreen = true;
myLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.SuppressPartialLabels = false;
myLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

```

Would any of those settings be preventing the custom zoom levels from applying and possibly causing the cut off/disappearing issue I’m seeing? A lot of this code is a remnant from thinkgeo 10.0 versions.

Also, the overlay containing this specific layer is set to TileType.MultiTile. This layer just contains a single feature (polygon or line) that is updated rapidly, being moved across the map.‘’

Edit: I should mention that the “feature” being cut off is actually a point but uses a custom pointstyle which draws a line behind it in the shape of a rectangle. In the overridden drawcore I’m doing this for the line:

canvas.DrawLine(lineShape, GeoPens.Red, DrawingLevel.LevelOne); // lineShape is the line behind the point.

Here is an example:

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/e/c/ec7796934f21fbd000bf39f8ea9d909bdcac6b39.png) ![image|491x134]

So this is at a higher zoom level. The arrow is the “point”, and the rectangle behind it is the line I was drawing above. If I zoom in once, the left side disappears:

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/e/a/eacf8c52f53c8c2b7529df2f9a99e6a10d9e8df5.png)

If I zoom in again, the right side disappears:

 ![image](https://community.thinkgeo.com/uploads/default/original/3X/2/f/2f9cef98c2b2b0e51836968f1126e0d89daace11.png) ![image|686x312]

Basically more and more of it disappears the more I zoom in.

---

<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:** [March 19, 2024, 2:28pm UTC](https://community.thinkgeo.com/t/labels-and-features-cut-off-disappear-at-certain-zoom-levels/10429/3 "2024-03-19T14:28:56Z")

</div>

Update: If I instead override the DrawCore in the layer itself instead of the style, but using the exact same code, it does not get cut off. Is there a reason for this? I assume the inner-workings of a layer’s drawcore vs style’s drawcore are different.

---

<div class="post-metadata">

**Author:** ![ThinkGeo\_Products](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/6de8d8/32.png) [@ThinkGeo\_Products](https://community.thinkgeo.com/u/ThinkGeo_Products)\
**Post date:** [March 19, 2024, 6:57pm UTC](https://community.thinkgeo.com/t/labels-and-features-cut-off-disappear-at-certain-zoom-levels/10429/4 "2024-03-19T18:57:35Z")

</div>

Hi @Dan_Weaver,

Are you in singletile mode or multitile? Also, are you able to put together a sample app to attach to this post that shows the issue. That will speed the process quite a bit since these types of data/user specific issues are sometimes difficult to reproduce.

Thanks,  
john
