<?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 GraphicsLayer.Refresh requires panning before updates are visible in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357103#M9139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've read that you should disable client caching to avoid this, but I haven't found any way of doing this when using a GraphicsLayer. My current solution is removing the graphic objects I've placed on the map, saving them in a temporary variable and then placing them on the map again. However, this causes changes made with EditGeometry to be discarded and it's too slow when handling a large amount of objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No changes in objects are visible unless I pan the map. Not vertices, color changes or movements on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've searched the forums for similar problems but to no avail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any tips to how I should do to make the layer update without having to pan the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan Carlsson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 13:41:26 GMT</pubDate>
    <dc:creator>JohanCarlsson</dc:creator>
    <dc:date>2012-10-01T13:41:26Z</dc:date>
    <item>
      <title>GraphicsLayer.Refresh requires panning before updates are visible</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357103#M9139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've read that you should disable client caching to avoid this, but I haven't found any way of doing this when using a GraphicsLayer. My current solution is removing the graphic objects I've placed on the map, saving them in a temporary variable and then placing them on the map again. However, this causes changes made with EditGeometry to be discarded and it's too slow when handling a large amount of objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No changes in objects are visible unless I pan the map. Not vertices, color changes or movements on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've searched the forums for similar problems but to no avail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any tips to how I should do to make the layer update without having to pan the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan Carlsson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 13:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357103#M9139</guid>
      <dc:creator>JohanCarlsson</dc:creator>
      <dc:date>2012-10-01T13:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer.Refresh requires panning before updates are visible</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357104#M9140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How are you making the changes that aren't appearing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 16:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357104#M9140</guid>
      <dc:creator>HyrumErnstrom</dc:creator>
      <dc:date>2012-10-01T16:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer.Refresh requires panning before updates are visible</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357105#M9141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the EditGeometry class to edit vertices of the objects. When the user clicks an object they also have the option to change the aRGB-values of an object. When an edit of vertices is finished, I use editor.StopEdit() and when a new color is assigned I assign a new symbol to the graphics object (g.Symbol = newSymbol).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assigning a new color:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; SimpleFillSymbol fillSymbol = new SimpleFillSymbol()
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BorderBrush = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255)),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BorderThickness = 2,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fill = new SolidColorBrush(Color.FromArgb(argb.alpha, argb.red, argb.green, argb.blue)),
&amp;nbsp;&amp;nbsp;&amp;nbsp; };

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.Symbol = fillSymbol
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.Refresh();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got the EditGeometry feature to work now though, I had placed the StopEdit in the wrong place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only problem now is when assigning a color, as shown above. All other edits are now visible (moving the object on the map, editing vertices, placing new objects interactively).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357105#M9141</guid>
      <dc:creator>JohanCarlsson</dc:creator>
      <dc:date>2021-12-11T16:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer.Refresh requires panning before updates are visible</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357106#M9142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;do you mean that if you don't call 'graphicslayer.refresh()', your symbol change is not immediatly taken into account?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 06:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357106#M9142</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-10-02T06:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer.Refresh requires panning before updates are visible</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357107#M9143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry if my description is fuzzy. From the beginning I removed the object, adding the changes and then placing the modified graphics object onto the layer again. This worked fine but it seems like the servers doesn't like it so I'm trying to get refresh to work. With refresh, however, I have to pan the map to see any changes take place. I think I found my problem though, I didn't use StopEdit before doing a refresh of the layer. The object then returned to it's previous appearance and location. So it was just a fault on my side, thanks for the quick replys though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 10:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357107#M9143</guid>
      <dc:creator>JohanCarlsson</dc:creator>
      <dc:date>2012-10-02T10:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer.Refresh requires panning before updates are visible</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357108#M9144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using a Renderer on the GraphicsLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You shouldn't have to call the GraphicsLayer.Refresh.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 16:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-refresh-requires-panning-before/m-p/357108#M9144</guid>
      <dc:creator>HyrumErnstrom</dc:creator>
      <dc:date>2012-10-02T16:14:20Z</dc:date>
    </item>
  </channel>
</rss>

