# Horizontal and vertical lines between map tiles with cloud and web maps

**URL:** <https://community.thinkgeo.com/t/horizontal-and-vertical-lines-between-map-tiles-with-cloud-and-web-maps/10053>\
**Category:** WPF\
**Created:** [April 15, 2021, 8:06am UTC](https://community.thinkgeo.com/t/horizontal-and-vertical-lines-between-map-tiles-with-cloud-and-web-maps/10053 "2021-04-15T08:06:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasmus\_Rahunen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@Rasmus\_Rahunen](https://community.thinkgeo.com/u/Rasmus_Rahunen)\
**Post date:** [April 15, 2021, 8:06am UTC](https://community.thinkgeo.com/t/horizontal-and-vertical-lines-between-map-tiles-with-cloud-and-web-maps/10053/1 "2021-04-15T08:06:25Z")

</div>

Hello,

I have noticed that sometimes ThinkGeo WPF view renders horizontal or vertical lines between map tiles, when using ThinkGeo Cloud maps or some other web maps (WMS or WMTS layers). This can be easily reproduced by making small adjustments to the tutorial at [ThinkGeo / Public / Desktop Maps · GitLab](https://gitlab.com/thinkgeo/public/thinkgeo-desktop-maps).

I have made these customizations to the code:

1. Changed the window size in XAML (for some reason with these settings the problem is more evident than with some other window sizes):  
` Title="MainWindow" Height="1272" Width="875">`

2. Modified the **mapView\_Loaded** method like this:

As a result, the map looks like this:

 ![ThinkGeoWpf.PNG](https://community.thinkgeo.com/uploads/default/original/3X/f/4/f4a03eb48cc089997ab626bd0280bb4f61ae24d3.jpeg)

It looks like the white background color is showing between the tiles. Same problem is seen also with WMS and WMTS, but this is the easiest way to get it visible. Any ideas how to fix this?

Thanks, Rasmus

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [April 15, 2021, 10:50pm UTC](https://community.thinkgeo.com/t/horizontal-and-vertical-lines-between-map-tiles-with-cloud-and-web-maps/10053/2 "2021-04-15T22:50:30Z")

</div>

Thanks Rasmus,  
Yes. I can re-produce this one. This is some thing not correct in our code for some area. We are looking into more details.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [April 20, 2021, 10:40pm UTC](https://community.thinkgeo.com/t/horizontal-and-vertical-lines-between-map-tiles-with-cloud-and-web-maps/10053/3 "2021-04-20T22:40:13Z")

</div>

Thanks Rasmus,  
A quick update. We found the root reason for this one. This is something about Math.Round precise issue. We have fixed this one. The daily build process will push it to the Nuget Beta release. It should be available for you by tomorrow morning.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Rasmus\_Rahunen](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@Rasmus\_Rahunen](https://community.thinkgeo.com/u/Rasmus_Rahunen)\
**Post date:** [April 27, 2021, 6:43am UTC](https://community.thinkgeo.com/t/horizontal-and-vertical-lines-between-map-tiles-with-cloud-and-web-maps/10053/4 "2021-04-27T06:43:08Z")

</div>

Hi Frank,

I have tested this with new beta release and it seems to be fixed. No white stripes visible anymore 🙂

Thanks!  
Rasmus

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [April 27, 2021, 3:49pm UTC](https://community.thinkgeo.com/t/horizontal-and-vertical-lines-between-map-tiles-with-cloud-and-web-maps/10053/5 "2021-04-27T15:49:17Z")

</div>

Thanks Rasmus,  
Good to know it works. I am going to close this one.

Thanks

Frank
