# LineShape breaks around 180

**URL:** <https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419>\
**Category:** WPF\
**Created:** [May 14, 2013, 6:50pm UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419 "2013-05-14T18:50:56Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inna](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/8e8cbc/32.png) [@Inna](https://community.thinkgeo.com/u/Inna)\
**Post date:** [May 14, 2013, 6:50pm UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/1 "2013-05-14T18:50:56Z")

</div>

&nbsp;Hello,&nbsp;

&nbsp;  
LineShape&nbsp;that&nbsp;crosses&nbsp;180&nbsp;does&nbsp;not&nbsp;draw&nbsp;correctly.  
&nbsp;  
Here&nbsp;is&nbsp;what&nbsp;I&nbsp;get&nbsp;when&nbsp;LineShape&nbsp;is:  
LINESTRING(171.528&nbsp;60.713,171.649&nbsp;60.69,171.785&nbsp;60.722,171.836&nbsp;60.755,171.988&nbsp;60.783,172.114&nbsp;60.799,172.256&nbsp;60.853,172.462&nbsp;60.947,172.552&nbsp;61.007,172.708&nbsp;61.066,172.827&nbsp;61.118,172.956&nbsp;61.15,173.193&nbsp;61.196,173.352&nbsp;61.212,173.593&nbsp;61.248,173.82&nbsp;61.26,174.031&nbsp;61.271,174.284&nbsp;61.305,174.485&nbsp;61.322,174.753&nbsp;61.334,175.066&nbsp;61.347,175.296&nbsp;61.344,175.43&nbsp;61.306,175.577&nbsp;61.277,175.693&nbsp;61.254,175.814&nbsp;61.229,175.784&nbsp;61.287,175.701&nbsp;61.331,175.733&nbsp;61.42,175.882&nbsp;61.449,176.017&nbsp;61.508,176.125&nbsp;61.504,176.206&nbsp;61.472,176.352&nbsp;61.413,176.528&nbsp;61.396,176.736&nbsp;61.407,176.928&nbsp;61.425,177.038&nbsp;61.442,177.251&nbsp;61.357,177.401&nbsp;61.326,177.528&nbsp;61.326,177.597&nbsp;61.359,177.61&nbsp;61.44,177.674&nbsp;61.473,177.887&nbsp;61.482,177.986&nbsp;61.457,178.171&nbsp;61.445,178.475&nbsp;61.479,178.545&nbsp;61.519,178.789&nbsp;61.546,179.029&nbsp;61.568,179.238&nbsp;61.598,179.504&nbsp;61.634,179.632&nbsp;61.664,179.848&nbsp;61.662,179.992&nbsp;61.662,-179.859&nbsp;61.662,-179.771&nbsp;61.691,-179.704&nbsp;61.769,-179.667&nbsp;61.823,-179.511&nbsp;61.874,-179.401&nbsp;61.908,-179.261&nbsp;61.924,-179.089&nbsp;61.94,-179.048&nbsp;61.912,-179.097&nbsp;61.859,-179.222&nbsp;61.813,-179.317&nbsp;61.76,-179.442&nbsp;61.7,-179.581&nbsp;61.647,-179.685&nbsp;61.598,-179.829&nbsp;61.564,179.967&nbsp;61.466,179.921&nbsp;61.401,179.911&nbsp;61.308,179.967&nbsp;61.217,-179.887&nbsp;61.132,-179.857&nbsp;61.076,-179.852&nbsp;61.013,-179.943&nbsp;60.949,179.977&nbsp;60.918,179.882&nbsp;60.876,179.872&nbsp;60.823,179.962&nbsp;60.757,-179.928&nbsp;60.699,-179.804&nbsp;60.684,-179.552&nbsp;60.61,-179.17&nbsp;60.657,-179.041&nbsp;60.665,-178.896&nbsp;60.676,-178.82&nbsp;60.732,-178.806&nbsp;60.809,-178.683&nbsp;60.888,-178.624&nbsp;60.963,-178.581&nbsp;61.036,-178.523&nbsp;61.089,-178.515&nbsp;61.138,-178.445&nbsp;61.205,-178.441&nbsp;61.273,-178.304&nbsp;61.371,-178.196&nbsp;61.463,-178.049&nbsp;61.524,-177.837&nbsp;61.547,-177.637&nbsp;61.602,-177.413&nbsp;61.646,-177.165&nbsp;61.648,-176.964&nbsp;61.609,-176.873&nbsp;61.553,-176.811&nbsp;61.507,-176.622&nbsp;61.424,-176.559&nbsp;61.319,-176.479&nbsp;61.268,-176.378&nbsp;61.221,-176.421&nbsp;61.122,-176.469&nbsp;61.065,-176.444&nbsp;61.01,-176.426&nbsp;60.971,-176.225&nbsp;60.857,-176.126&nbsp;60.781,-176.016&nbsp;60.672,-175.896&nbsp;60.612,-175.876&nbsp;60.601,-175.845&nbsp;60.54,-175.728&nbsp;60.489,-175.622&nbsp;60.416,-175.49&nbsp;60.373,-175.272&nbsp;60.284,-175.079&nbsp;60.107,-175.003&nbsp;59.923,-175.014&nbsp;59.732,-174.933&nbsp;59.587,-174.894&nbsp;59.421,-174.756&nbsp;59.315,-174.535&nbsp;59.217,-174.396&nbsp;59.088,-174.303&nbsp;58.995,-174.162&nbsp;58.919,-173.708&nbsp;58.794,-173.488&nbsp;58.759,-173.131&nbsp;58.714,-172.943&nbsp;58.702,-172.651&nbsp;58.66,-172.398&nbsp;58.62,-172.277&nbsp;58.519,-172.163&nbsp;58.339,-172.177&nbsp;58.176,-172.119&nbsp;58.011,-171.964&nbsp;57.862,-171.835&nbsp;57.837,-171.642&nbsp;57.887,-171.6&nbsp;58.014,-171.576&nbsp;58.1,-171.528&nbsp;58.192,-171.435&nbsp;58.265,-171.338&nbsp;58.272,-171.223&nbsp;58.171,-171.088&nbsp;58.06,-170.941&nbsp;57.975,-170.674&nbsp;57.906,-170.322&nbsp;57.883,-170.283&nbsp;57.868,-170.134&nbsp;57.838,-170.041&nbsp;57.857,-169.895&nbsp;57.885,-169.819&nbsp;57.897,-169.648&nbsp;57.911,-169.503&nbsp;57.912,-169.447&nbsp;57.907,-169.238&nbsp;57.886,-169.015&nbsp;57.982,-168.877&nbsp;58.022,-168.713&nbsp;58.013,-168.575&nbsp;57.936,-168.448&nbsp;57.853,-168.261&nbsp;57.775,-168.019&nbsp;57.693,-167.764&nbsp;57.734,-167.635&nbsp;57.838,-167.594&nbsp;57.954,-167.5&nbsp;58.094,-167.324&nbsp;58.147,-167.134&nbsp;58.264,-167.076&nbsp;58.397,-167.023&nbsp;58.484,-166.812&nbsp;58.59,-166.654&nbsp;58.692,-166.443&nbsp;58.79,-166.289&nbsp;58.876,-166.23&nbsp;58.971,-166.294&nbsp;59.092,-166.365&nbsp;59.183,-166.336&nbsp;59.324,-166.385&nbsp;59.448,-166.417&nbsp;59.558,-166.338&nbsp;59.627,-166.187&nbsp;59.667,-166.024&nbsp;59.713,-165.749&nbsp;59.812,-165.643&nbsp;59.806,-165.564&nbsp;59.776,-165.462&nbsp;59.641,-165.487&nbsp;59.577,-165.417&nbsp;59.47,-165.336&nbsp;59.388,-165.322&nbsp;59.296,-165.528&nbsp;59.237,-165.641&nbsp;59.165,-165.482&nbsp;59.069,-165.309&nbsp;59.066,-165.219&nbsp;59.002,-165.196&nbsp;58.929,-165.173&nbsp;58.855,-165.106&nbsp;58.763,-165.123&nbsp;58.671,-165.181&nbsp;58.601,-165.145&nbsp;58.525,-165.097&nbsp;58.471,-165.087&nbsp;58.344,-165.067&nbsp;58.251,-165.074&nbsp;58.135,-165.151&nbsp;58.04,-165.268&nbsp;57.998,-165.38&nbsp;57.919,-165.41&nbsp;57.857,-165.282&nbsp;57.746,-165.152&nbsp;57.786,-164.961&nbsp;57.904,-164.811&nbsp;58.07,-164.851&nbsp;58.193,-164.769&nbsp;58.296,-164.596&nbsp;58.369,-164.407&nbsp;58.471,-164.372&nbsp;58.679,-164.352&nbsp;58.869,-164.444&nbsp;59.139,-164.575&nbsp;59.28,-164.745&nbsp;59.438,-164.846&nbsp;59.57,-164.974&nbsp;59.694,-165&nbsp;59.792,-165.112&nbsp;59.981,-165.212&nbsp;60.121,-165.236&nbsp;60.195,-165.119&nbsp;60.207,-164.943&nbsp;60.105,-164.694&nbsp;59.952,-164.503&nbsp;59.855,-164.364&nbsp;59.752,-164.119&nbsp;59.614,-163.776&nbsp;59.516,-163.406&nbsp;59.481,-163.181&nbsp;59.518,-162.935&nbsp;59.588,-162.741&nbsp;59.673,-162.613&nbsp;59.741,-162.453&nbsp;59.843,-162.283&nbsp;59.836,-162.123&nbsp;59.762,-162.048&nbsp;59.706,-161.988&nbsp;59.664,-161.876&nbsp;59.643)&nbsp;  
&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/1X/0c4dbab644ab1f193271ed00bb009000375525ad.PNG)  
&nbsp;  
And&nbsp;here&nbsp;is&nbsp;how&nbsp;it&nbsp;looks&nbsp;in&nbsp;Google&nbsp;Earth:  
 ![](https://community.thinkgeo.com/uploads/default/original/1X/c5eb8c619a94b71b14e8b7b351b1a18a1f644ba5.PNG)  
&nbsp;  
Inna

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [May 16, 2013, 9:33am UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/2 "2013-05-16T09:33:13Z")

</div>

Hi&nbsp;Inna,&nbsp;

Thanks&nbsp;for&nbsp;your&nbsp;data&nbsp;and&nbsp;pictures,&nbsp;attached&nbsp;is&nbsp;a&nbsp;walkaround,&nbsp;would&nbsp;you&nbsp;please&nbsp;check&nbsp;it&nbsp;out,&nbsp;following&nbsp;is&nbsp;the&nbsp;result&nbsp;what&nbsp;we&nbsp;got:  
&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/2X/b/be66ee562b746122cc331348812eb03c796accaa.png)  

Thanks,

Johnny

[Post11237Sample.txt](https://community.thinkgeo.com/uploads/default/original/2X/e/ea1333fe7ea2c991bc4c36cb16d47fd6675df0f0.txt) (6.49 KB)

---

<div class="post-metadata">

**Author:** ![Inna](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/8e8cbc/32.png) [@Inna](https://community.thinkgeo.com/u/Inna)\
**Post date:** [May 16, 2013, 1:04pm UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/3 "2013-05-16T13:04:24Z")

</div>

Hi&nbsp;Johnny,

Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;help.

My&nbsp;situation&nbsp;is&nbsp;more&nbsp;complicated&nbsp;than&nbsp;that.  
  
I’m&nbsp;using&nbsp;kml&nbsp;file&nbsp;to&nbsp;get&nbsp;the&nbsp;lines&nbsp;and&nbsp;also&nbsp;using&nbsp;Mercator&nbsp;projection,&nbsp;so&nbsp;the&nbsp;shapes&nbsp;are&nbsp;in&nbsp;meters.

Anyway,&nbsp;I&nbsp;tried&nbsp;to&nbsp;implement&nbsp;your&nbsp;logic&nbsp;into&nbsp;my&nbsp;code,&nbsp;but&nbsp;it&nbsp;does&nbsp;not&nbsp;work,&nbsp;how&nbsp;it&nbsp;supposed&nbsp;to&nbsp;–&nbsp;it&nbsp;cuts&nbsp;the&nbsp;line&nbsp;at&nbsp;180.  
  
Here&nbsp;is&nbsp;how&nbsp;I’m&nbsp;getting&nbsp;LineShape&nbsp;from&nbsp;kml&nbsp;file&nbsp;(in&nbsp;degrees)&nbsp;and&nbsp;later&nbsp;I’m&nbsp;using&nbsp;KmlStyle&nbsp;(based&nbsp;on&nbsp;Wiki&nbsp;samples).&nbsp;All&nbsp;the&nbsp;features&nbsp;in&nbsp;DrawCore&nbsp;are&nbsp;in&nbsp;meters.  
  
Am&nbsp;I&nbsp;missing&nbsp;something?

&nbsp;

`foreach (KmlCore.Geometry.Point3D coord in lineString.coordinates){    Vertex vertex = new Vertex(coord.X, coord.Y);    lineShape1.Vertices.Add(vertex);}for (int i = 1; i < lineShape1.Vertices.Count; i++){    if (lineShape1.Vertices[i].X - lineShape1.Vertices[i - 1].X > 180)    { lineShape1.Vertices[i] = new Vertex(lineShape1.Vertices[i].X - 360, lineShape1.Vertices[i].Y); }    else if (lineShape1.Vertices[i - 1].X - lineShape1.Vertices[i].X > 180)    { lineShape1.Vertices[i] = new Vertex(lineShape1.Vertices[i].X + 360, lineShape1.Vertices[i].Y); }}lineFeatures.Add(new Feature(lineShape1, columnValues));`

Thank&nbsp;you,  
  
Inna

&nbsp;

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [May 17, 2013, 11:27am UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/4 "2013-05-17T11:27:10Z")

</div>

&nbsp;

Hi&nbsp;Inna  
&nbsp;  
Attached&nbsp;sample&nbsp;is&nbsp;using&nbsp;Mercator&nbsp;projection,&nbsp;would&nbsp;you&nbsp;please&nbsp;try&nbsp;it?&nbsp;Following&nbsp;is&nbsp;a&nbsp;result&nbsp;picture&nbsp;from&nbsp;our&nbsp;test:

 ![](https://community.thinkgeo.com/uploads/default/original/2X/e/edab16ff6f711c6f30f1b1156e0b2191acd09d46.png)&nbsp;  
&nbsp;  
Hope&nbsp;it&nbsp;helps  
&nbsp;  
Johnny  
&nbsp;  
  
[Post11237Sample\_.txt](https://community.thinkgeo.com/uploads/default/original/2X/d/dcf26554a925e485dc965b5b9256b19bd9bfd4c9.txt) (7.03 KB)

---

<div class="post-metadata">

**Author:** ![Carlos1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Carlos1](https://community.thinkgeo.com/u/Carlos1)\
**Post date:** [May 17, 2013, 11:48am UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/5 "2013-05-17T11:48:06Z")

</div>

Hi&nbsp;Johnny,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;As&nbsp;there&nbsp;is&nbsp;a&nbsp;WrapDateline&nbsp;property,&nbsp;why&nbsp;don’t&nbsp;shapes&nbsp;have&nbsp;this&nbsp;workarround&nbsp;build&nbsp;in&nbsp;in&nbsp;the&nbsp;ThinkGeo’s&nbsp;draw&nbsp;core&nbsp;method?,&nbsp;I&nbsp;guess&nbsp;that&nbsp;everybody&nbsp;activating&nbsp;WrapDateline&nbsp;mode&nbsp;would&nbsp;want&nbsp;their&nbsp;shapes&nbsp;to&nbsp;be&nbsp;180&nbsp;border&nbsp;crossing,&nbsp;isn’t&nbsp;it?

---

<div class="post-metadata">

**Author:** ![Inna](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/8e8cbc/32.png) [@Inna](https://community.thinkgeo.com/u/Inna)\
**Post date:** [May 17, 2013, 12:28pm UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/6 "2013-05-17T12:28:35Z")

</div>

Hi&nbsp;Johnny,

Carlos&nbsp;is&nbsp;right.&nbsp;When&nbsp;using&nbsp;WrapDateLine,&nbsp;all&nbsp;the&nbsp;shapes&nbsp;should&nbsp;work&nbsp;around&nbsp;180&nbsp;seamlessly,&nbsp;without&nbsp;adding&nbsp;any&nbsp;workarounds.

But&nbsp;anyway,&nbsp;the&nbsp;workaround&nbsp;works.&nbsp;Thanks.  
  
Could&nbsp;you&nbsp;please&nbsp;explain&nbsp;what&nbsp;does&nbsp;&nbsp;line.TranslateByOffset(-360,&nbsp;0,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Meter)&nbsp;mean?&nbsp;Is&nbsp;360&nbsp;supposed&nbsp;to&nbsp;be&nbsp;in&nbsp;degrees&nbsp;or&nbsp;in&nbsp;meters?

Inna  
  
&nbsp;

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [May 21, 2013, 8:50am UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/7 "2013-05-21T08:50:49Z")

</div>

Hi&nbsp;Guys,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;you&nbsp;are&nbsp;correct,&nbsp;we&nbsp;will&nbsp;integrate&nbsp;this&nbsp;into&nbsp;products&nbsp;after&nbsp;the&nbsp;upcoming&nbsp;7.0&nbsp;release.&nbsp;For&nbsp;the&nbsp;method&nbsp;line.TranslateByOffset(-360,&nbsp;0,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Meter),&nbsp;the&nbsp;360&nbsp;is&nbsp;supposed&nbsp;to&nbsp;be&nbsp;in&nbsp;Meter,&nbsp;because&nbsp;the&nbsp;input&nbsp;unit&nbsp;is&nbsp;GeographyUnit.Meter,&nbsp;it&nbsp;means&nbsp;that&nbsp;we&nbsp;will&nbsp;make&nbsp;the&nbsp;vertexes&nbsp;of&nbsp;LineShape&nbsp;move&nbsp;to&nbsp;west&nbsp;by&nbsp;360&nbsp;meters.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;Johnny

---

<div class="post-metadata">

**Author:** ![Inna](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/8e8cbc/32.png) [@Inna](https://community.thinkgeo.com/u/Inna)\
**Post date:** [July 8, 2013, 2:18pm UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/8 "2013-07-08T14:18:58Z")

</div>

Hello,

I’ve&nbsp;encountered&nbsp;another&nbsp;problem&nbsp;with&nbsp;LineShapes.  
  
If&nbsp;a&nbsp;line&nbsp;is&nbsp;crossing&nbsp;180,&nbsp;canvas.DrawLine&nbsp;method&nbsp;is&nbsp;failing&nbsp;to&nbsp;draw&nbsp;line&nbsp;correctly.&nbsp;  
  
In&nbsp;my&nbsp;test&nbsp;application&nbsp;(attached),&nbsp;it&nbsp;does&nbsp;not&nbsp;draw&nbsp;the&nbsp;portion&nbsp;of&nbsp;the&nbsp;line&nbsp;from&nbsp;180&nbsp;and&nbsp;west&nbsp;,&nbsp;when&nbsp;you&nbsp;zoom&nbsp;in&nbsp;or&nbsp;in&nbsp;a&nbsp;virtual&nbsp;world&nbsp;only,&nbsp;but&nbsp;in&nbsp;my&nbsp;production&nbsp;application&nbsp;it&nbsp;does&nbsp;not&nbsp;draw&nbsp;the&nbsp;line&nbsp;if&nbsp;you&nbsp;pan&nbsp;outside&nbsp;180&nbsp;(west&nbsp;extent&nbsp;is&nbsp;only&nbsp;visible).

I&nbsp;could&nbsp;not&nbsp;recreate&nbsp;production&nbsp;behavior,&nbsp;but&nbsp;maybe&nbsp;test&nbsp;application&nbsp;will&nbsp;give&nbsp;you&nbsp;a&nbsp;starting&nbsp;point.

Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;help,  
  
Inna&nbsp;&nbsp;

[007\_006\_005\_004\_003\_002\_001\_TestShapeFile.zip](https://community.thinkgeo.com/uploads/default/original/2X/1/183cca0a8ff44d686a94dd0e6cdbd77bccdf1767.zip) (16.3 KB)

---

<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 8, 2013, 9:58pm UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/9 "2013-07-08T21:58:38Z")

</div>

Hi&nbsp;Inna  
  
Thanks&nbsp;for&nbsp;your&nbsp;query,&nbsp;would&nbsp;you&nbsp;please&nbsp;set&nbsp;"overlay1.TileType&nbsp;=&nbsp;TileType.SingleTile;"&nbsp;attached&nbsp;is&nbsp;the&nbsp;amended&nbsp;sample,&nbsp;would&nbsp;you&nbsp;please&nbsp;try&nbsp;it,&nbsp;following&nbsp;is&nbsp;the&nbsp;result&nbsp;image&nbsp;for&nbsp;your&nbsp;information.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/0/0c82450a980737348fb1ab2b764b423eca138a06.png)  
  

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

[008\_007\_006\_005\_004\_003\_002\_001\_TestShapeFile.zip](https://community.thinkgeo.com/uploads/default/original/2X/e/eb737ed1277ffeb26b21ec90fb7613a46981403f.zip) (10.8 KB)

---

<div class="post-metadata">

**Author:** ![Inna](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/8e8cbc/32.png) [@Inna](https://community.thinkgeo.com/u/Inna)\
**Post date:** [July 8, 2013, 11:57pm UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/10 "2013-07-08T23:57:56Z")

</div>

Hi&nbsp;Summer,  
  
  
  
I&nbsp;would&nbsp;like&nbsp;to&nbsp;set&nbsp;TileType.SingleTile,&nbsp;but&nbsp;unfortunately&nbsp;it&nbsp;creates&nbsp;other&nbsp;problems&nbsp;-&nbsp;please&nbsp;see&nbsp;ticket&nbsp;#7318.  
  
  
  
Inna

---

<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 10, 2013, 4:55am UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/11 "2013-07-10T04:55:03Z")

</div>

Hi&nbsp;Inna,

Thanks&nbsp;for&nbsp;your&nbsp;information,&nbsp;please&nbsp;correct&nbsp;if&nbsp;I&nbsp;am&nbsp;wrong,&nbsp;&nbsp;as&nbsp;the&nbsp;line&nbsp;is&nbsp;in&nbsp;overlay1&nbsp;rather&nbsp;worldOverlay,&nbsp;so&nbsp;to&nbsp;set&nbsp;overlay1.tiletype&nbsp;should&nbsp;not&nbsp;affect&nbsp;worldoverlay&nbsp;rendering,&nbsp;in&nbsp;the&nbsp;following&nbsp;picture,&nbsp;  
  
  
  
I&nbsp;set&nbsp;worldOverlay.TileType&nbsp;=&nbsp;TileType.SingleTile;&nbsp;&nbsp;On&nbsp;worldOverlay&nbsp;there&nbsp;is&nbsp;a&nbsp;bug&nbsp;which&nbsp;is&nbsp;the&nbsp;same&nbsp;with&nbsp;what&nbsp;is&nbsp;discriped&nbsp;in&nbsp;the&nbsp;ticket&nbsp;.  
  
&nbsp;  
  
then&nbsp;set&nbsp;Overlay1.TileType=TileType.SingleTile,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;but&nbsp;On&nbsp;overlay1,&nbsp;the&nbsp;bug&nbsp;didn't&nbsp;show&nbsp;up,&nbsp;so&nbsp;I&nbsp;think&nbsp;to&nbsp;set&nbsp;overlay1.TileType=TileType.SingleTile&nbsp;should&nbsp;work.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/a/a30dbfda26fa1e0191de15eee7c7ac9954028090.png)

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

&nbsp;

---

<div class="post-metadata">

**Author:** ![Inna](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/8e8cbc/32.png) [@Inna](https://community.thinkgeo.com/u/Inna)\
**Post date:** [July 10, 2013, 12:14pm UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/12 "2013-07-10T12:14:41Z")

</div>

Hi&nbsp;Summer,

Apparently&nbsp;SingleTile&nbsp;was&nbsp;already&nbsp;set&nbsp;in&nbsp;my&nbsp;production&nbsp;environment.&nbsp;When&nbsp;I&nbsp;set&nbsp;SingleTile&nbsp;mode&nbsp;in&nbsp;my&nbsp;test&nbsp;program&nbsp;line&nbsp;disappears&nbsp;when&nbsp;panning.

180&nbsp;is&nbsp;inside&nbsp;current&nbsp;extent:

 ![](https://community.thinkgeo.com/uploads/default/original/2X/c/c03152c962fc51aa6a082736e2ae62fcf12c5d13.PNG)

180&nbsp;is&nbsp;outside&nbsp;of&nbsp;current&nbsp;extent&nbsp;(no&nbsp;line):

 ![](https://community.thinkgeo.com/uploads/default/original/2X/7/7e53573ed7de61e8d8903c39de417a308f84133d.PNG)

Inna

---

<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 11, 2013, 12:18am UTC](https://community.thinkgeo.com/t/lineshape-breaks-around-180/3419/13 "2013-07-11T00:18:23Z")

</div>

Hi&nbsp;Inna,&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;further&nbsp;information,&nbsp;the&nbsp;problem&nbsp;has&nbsp;been&nbsp;recreated,&nbsp;would&nbsp;you&nbsp;please&nbsp;rplace&nbsp;"line.TranslateByOffset(-40067780.91867692,&nbsp;0,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Meter);"&nbsp;in&nbsp;"private&nbsp;static&nbsp;void&nbsp;HandleLine180Crossing()"&nbsp;in&nbsp;"CustomStyle.cs"&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;with&nbsp;  
&nbsp;&nbsp;  
&nbsp;"line.TranslateByOffset(-40067780.91867692,&nbsp;0,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Meter);"&nbsp;  
&nbsp;&nbsp;  
&nbsp;Now&nbsp;it&nbsp;should&nbsp;work.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Hope&nbsp;it&nbsp;helps&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer&nbsp;  
&nbsp;&nbsp;
