<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 360 added to Longitude (WrapAround = True) in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/360-added-to-longitude-wraparound-true/m-p/70161#M1732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe this issue revolves around the map, when I am using WrapAround = True.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I move the map to the left past 360 degrees, the longitude for the api gets compounded.&amp;nbsp; This is ok for the most part, I can always subtract 360 from the longitude.&amp;nbsp; The problem exists when I use the ESRI.ARCGIS.Client.Draw object, it uses the coordinates in the background to create my objects with the bad geometry.&amp;nbsp; I can always fix the geometry after I build it, but I really don't want to do this because its causing issues with multiple features we designed as well. Also when I refresh the map it causes the same problem, 1 out of 15 times the geometries are messed up (just like when i rotate the map past 360).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a fix? Besides patching the MapPoints with the code below?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can use this to fix the wraparound issue, but when I use ESRI.ARCGIS.Client.Draw it trashes the geometry, because there is not a place to put this code. The code came from: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#MouseCoords"&gt;http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#MouseCoords&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; if (MyMap.WrapAroundIsActive)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapPoint = ESRI.ArcGIS.Client.Geometry.Geometry.NormalizeCentralMeridian(mapPoint) as ESRI.ArcGIS.Client.Geometry.MapPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapCoordsTextBlock.Text = string.Format("Map Coords: X = {0}, Y = {1}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Math.Round(mapPoint.X, 4), Math.Round(mapPoint.Y, 4));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2013 13:51:06 GMT</pubDate>
    <dc:creator>williambich</dc:creator>
    <dc:date>2013-10-15T13:51:06Z</dc:date>
    <item>
      <title>360 added to Longitude (WrapAround = True)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/360-added-to-longitude-wraparound-true/m-p/70161#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe this issue revolves around the map, when I am using WrapAround = True.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I move the map to the left past 360 degrees, the longitude for the api gets compounded.&amp;nbsp; This is ok for the most part, I can always subtract 360 from the longitude.&amp;nbsp; The problem exists when I use the ESRI.ARCGIS.Client.Draw object, it uses the coordinates in the background to create my objects with the bad geometry.&amp;nbsp; I can always fix the geometry after I build it, but I really don't want to do this because its causing issues with multiple features we designed as well. Also when I refresh the map it causes the same problem, 1 out of 15 times the geometries are messed up (just like when i rotate the map past 360).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a fix? Besides patching the MapPoints with the code below?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can use this to fix the wraparound issue, but when I use ESRI.ARCGIS.Client.Draw it trashes the geometry, because there is not a place to put this code. The code came from: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#MouseCoords"&gt;http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#MouseCoords&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; if (MyMap.WrapAroundIsActive)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapPoint = ESRI.ArcGIS.Client.Geometry.Geometry.NormalizeCentralMeridian(mapPoint) as ESRI.ArcGIS.Client.Geometry.MapPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapCoordsTextBlock.Text = string.Format("Map Coords: X = {0}, Y = {1}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Math.Round(mapPoint.X, 4), Math.Round(mapPoint.Y, 4));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 13:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/360-added-to-longitude-wraparound-true/m-p/70161#M1732</guid>
      <dc:creator>williambich</dc:creator>
      <dc:date>2013-10-15T13:51:06Z</dc:date>
    </item>
  </channel>
</rss>

