<?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 Problem with Rotation of a MarkerSymbol in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-rotation-of-a-markersymbol/m-p/179878#M4476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are working on an Esri silverlight application (latest versions) -- and are having a problem with how the rotation of a MarkerSymbol works.&amp;nbsp; Basically, the application is a fleet tracking system, where each vehicle has its coordinates reported in real time, along with the direction the vehicle is facing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a GraphicsLayer that contains all of the vehicle symbols, and the symbol has its rotation set using something like...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Image RenderTransformOrigin="0.5,0.5" Source="{Binding Attributes[ImageLoc]}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Image.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RotateTransform Angle="{Binding Attributes[Heading]}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Image.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Image&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;graphic.Attributes["Heading"] = heading;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That works well, and the units are displayed on the map correctly.&amp;nbsp; However, when the application tries to adjust the positions of the vehicles (which happens every second, let's say) -- it does so by creating a new GraphicsLayer, and filling it with a symbol for each vehicle.&amp;nbsp; The old layer is then removed and the new layer takes its place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again -- that works well, except there is a 1 frame flicker -- where all vehicles are drawn pointing Northwards instead of their correct orientation.&amp;nbsp; Does anyone have any advice on how to get this working without that flicker?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Aaron&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS -- we have tried this several other ways...&amp;nbsp; Having a single layer and adjusting the heading of existing markers does not flicker -- however it takes a long time (1 second or so) -- guessing because it redraws after each marker is updated or something along those lines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 14:47:32 GMT</pubDate>
    <dc:creator>AaronBishop</dc:creator>
    <dc:date>2011-08-11T14:47:32Z</dc:date>
    <item>
      <title>Problem with Rotation of a MarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-rotation-of-a-markersymbol/m-p/179878#M4476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are working on an Esri silverlight application (latest versions) -- and are having a problem with how the rotation of a MarkerSymbol works.&amp;nbsp; Basically, the application is a fleet tracking system, where each vehicle has its coordinates reported in real time, along with the direction the vehicle is facing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a GraphicsLayer that contains all of the vehicle symbols, and the symbol has its rotation set using something like...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Image RenderTransformOrigin="0.5,0.5" Source="{Binding Attributes[ImageLoc]}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Image.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RotateTransform Angle="{Binding Attributes[Heading]}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Image.RenderTransform&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Image&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;graphic.Attributes["Heading"] = heading;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That works well, and the units are displayed on the map correctly.&amp;nbsp; However, when the application tries to adjust the positions of the vehicles (which happens every second, let's say) -- it does so by creating a new GraphicsLayer, and filling it with a symbol for each vehicle.&amp;nbsp; The old layer is then removed and the new layer takes its place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again -- that works well, except there is a 1 frame flicker -- where all vehicles are drawn pointing Northwards instead of their correct orientation.&amp;nbsp; Does anyone have any advice on how to get this working without that flicker?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Aaron&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS -- we have tried this several other ways...&amp;nbsp; Having a single layer and adjusting the heading of existing markers does not flicker -- however it takes a long time (1 second or so) -- guessing because it redraws after each marker is updated or something along those lines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 14:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-rotation-of-a-markersymbol/m-p/179878#M4476</guid>
      <dc:creator>AaronBishop</dc:creator>
      <dc:date>2011-08-11T14:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rotation of a MarkerSymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-rotation-of-a-markersymbol/m-p/179879#M4477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The rotatetransform angle binding kicks in after the symbol has been first displayed (so without any rotation). Then the binding kicks in and the symbol is rotated --&amp;gt; flicking effect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One possible workaround is to use a surrogate binder attached property instead of a transform binding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will find a sample with the kmllayer of the ArcGIS WinPhone toolkit (since WinPhone doesn't support transform bindings).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached the 2 interesting files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 07:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-rotation-of-a-markersymbol/m-p/179879#M4477</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-08-30T07:37:43Z</dc:date>
    </item>
  </channel>
</rss>

