<?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 Re: Graphics get lost in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625909#M3213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm pretty sure it is not. In the WPF SDK, after you have loaded your first layer and projection of the Map object is set, the Map projection can not be changed to another projection. Either way, you have solved your problem. I just want to make sure people are aware of this possible caveat in WPF SDK.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just did it&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 17:31:18 GMT</pubDate>
    <dc:creator>Cristian_Galindo</dc:creator>
    <dc:date>2014-03-20T17:31:18Z</dc:date>
    <item>
      <title>Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625904#M3208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created an ArcGISLocalFeatureLayer with a different spatial reference from the base layer, then I create a polyline that is added to the Graphics container of the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As my data is in another spatial reference, I remove the layers from the map, change the spatial reference of the map and add the layers again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I add the new layer (the one with the polyline)...at this moment the Graphics property onf the layer turns to 0, it just dissapear!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe my code is haunted....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any suggestions??? where my polyline goes? why the polyline appear in the map (i can view the line in my screen) but not in the Graphics list&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 15:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625904#M3208</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2014-03-13T15:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625905#M3209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If i remember correctly, the projection of the Map can not be changed after it has been set, even after you have removed all the layers. You will need to create a new Map object and set the projection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;note that this is the behavior in the WPF SDK as far as i know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might that you have ran into some issues that are a result of you doing something that the Map object doesn't support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2014 23:47:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625905#M3209</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2014-03-16T23:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625906#M3210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If i remember correctly, the projection of the Map can not be changed after it has been set, even after you have removed all the layers. You will need to create a new Map object and set the projection.&lt;BR /&gt; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry to tell you this: that is possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 20:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625906#M3210</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2014-03-18T20:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625907#M3211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figure this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to be aware of the layer's lifecycle:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first the layer must be created..... &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;var myLayer = new ArcGISLocalFeatureLayer(); // all code required to create it&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;then initialize it &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;myLayer.Initialize();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; ....and wait &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When it finish to initialize (myLayer.Initialized event).....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you must update it &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;myLayer.Update();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; .....and wait again...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When it finish to update (myLayer.UpdateCompleted event)....Voila!!!! you have your Graphics!!! my code was not haunted!!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 20:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625907#M3211</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2014-03-18T20:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625908#M3212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sorry to tell you this: that is possible.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty sure it is not. In the WPF SDK, after you have loaded your first layer and projection of the Map object is set, the Map projection can not be changed to another projection. Either way, you have solved your problem. I just want to make sure people are aware of this possible caveat in WPF SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625908#M3212</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2014-03-20T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625909#M3213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm pretty sure it is not. In the WPF SDK, after you have loaded your first layer and projection of the Map object is set, the Map projection can not be changed to another projection. Either way, you have solved your problem. I just want to make sure people are aware of this possible caveat in WPF SDK.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just did it&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 17:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625909#M3213</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2014-03-20T17:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625910#M3214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;which version of the WPF SDK are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 08:26:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625910#M3214</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2014-03-21T08:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625911#M3215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;which version of the WPF SDK are you using?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 10.2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 11:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625911#M3215</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2014-03-21T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625912#M3216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you give me an example how you reset the projection (spatialreference) of the Map? I have tested it here and discussed this in the past with the Runtime team. If i load a basemap with projection 102100, remove it and then load a basemap with projection 4326 the new basemap won't be visible because the actual projection of the map hasn't changed. So the TPK can not be displayed. Even if I set Map.Extent to the (Full)Extent of the new basemap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 06:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625912#M3216</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2014-03-24T06:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625913#M3217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bjorn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible to change the Map SpatialReference by clearing the layers and defining a new Extent (Envelope) with a different SpatialReference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyMap.Layers.Clear();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyMap.Extent = new ESRI.ArcGIS.Client.Geometry.Envelope() &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; SpatialReference = new SpatialReference(102067),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; XMin = -761340,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; YMin = -1348150,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; XMax = -438251,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; YMax = -997291&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyMap.Layers.Add(new ArcGISTiledMapServiceLayer()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; Url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://geo.kr-jihomoravsky.cz/ArcGIS/rest/services/JMK/jmk_raster/MapServer/" rel="nofollow" target="_blank"&gt;http://geo.kr-jihomoravsky.cz/ArcGIS/rest/services/JMK/jmk_raster/MapServer/&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I will confirm with the developers whether this is advisable or if it is better to create a new map instance (which is what you were advised in the past).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 09:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625913#M3217</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2014-03-25T09:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics get lost</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625914#M3218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So the TPK can not be displayed. Even if I set Map.Extent to the (Full)Extent of the new basemap.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the issue according to the technical reference is that you can change the spatial reference of a map, but the tile layer are not going to&amp;nbsp; be visible due the projection issues. Those kind of layers cannot be reprojected ( &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/62622-Best-practices-Reprojection-%28changing-spatialreference%29-for-layers-within-Map-Control"&gt;http://forums.arcgis.com/threads/62622-Best-practices-Reprojection-%28changing-spatialreference%29-for-layers-within-Map-Control&lt;/A&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 10:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphics-get-lost/m-p/625914#M3218</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2014-03-25T10:54:21Z</dc:date>
    </item>
  </channel>
</rss>

