<?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: Map Initialization Lifecycle in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/map-initialization-lifecycle/m-p/561898#M2860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That makes sense and clears it up - just wanted to make sure I hadn't missed anything!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 14:26:42 GMT</pubDate>
    <dc:creator>JH2</dc:creator>
    <dc:date>2011-06-27T14:26:42Z</dc:date>
    <item>
      <title>Map Initialization Lifecycle</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/map-initialization-lifecycle/m-p/561896#M2858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As my map loads, I run through some initialization; applying the correct extent to the map and putting some data into a GraphicLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a standard way to check/listen for initialization?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Map.Initialized&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;event but, for example, the Map.SpatialReference (which I need to know to calculate the extent) and the Map.Layers aren't ready at this point.&amp;nbsp; I've also tried the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Map.Layers.LayersInitialized&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;event, which correctly lets me know when the Graphics layer is ready for data, but there is no Map.Layers.IsInitialized property for me to check.&amp;nbsp; (I'm building Behaviors so I don't necessarily know if I've been attached at init or at a later stage.)&amp;nbsp; It also seems a bit weird to check this when waiting for the Map.SpatialReference to be ready, but I guess that perhaps this value comes from the Layers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondered if there was a resource describing this lifecycle or any recommendations on how to deal with it?&amp;nbsp; Any thoughts or suggestions gratefully received!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 07:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/map-initialization-lifecycle/m-p/561896#M2858</guid>
      <dc:creator>JH2</dc:creator>
      <dc:date>2011-06-23T07:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Map Initialization Lifecycle</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/map-initialization-lifecycle/m-p/561897#M2859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;It also seems a bit weird to check this when waiting for the Map.SpatialReference to be ready, but I guess that perhaps this value comes from the Layers?&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't set the map spatial reference, this one is coming from the layers, and so we need to wait for them to be initialized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;but there is no Map.Layers.IsInitialized property for me to check&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Right, but you can check the 'IsInitialized' property of each layer inside the collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Subscribing to Map.Layers.LayersInitialized is one way to do what you want, another would be to subscribe to Map.PropertyChanged and test whether the "SpatialReference" property has changed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 10:12:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/map-initialization-lifecycle/m-p/561897#M2859</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-06-27T10:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Map Initialization Lifecycle</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/map-initialization-lifecycle/m-p/561898#M2860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That makes sense and clears it up - just wanted to make sure I hadn't missed anything!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 14:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/map-initialization-lifecycle/m-p/561898#M2860</guid>
      <dc:creator>JH2</dc:creator>
      <dc:date>2011-06-27T14:26:42Z</dc:date>
    </item>
  </channel>
</rss>

