<?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 Proper way to handle errors generated by the Map control in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216781#M5442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering what the proper/recommended approach is for handling errors generated by the map control? I have attached a screenshot of an example of the exception I am experiencing occasionally if there is an error loading the basemaps. Since the code in my application is not creating the exception, its the map control, what is the best way to handle this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 15:45:01 GMT</pubDate>
    <dc:creator>MarkCollins</dc:creator>
    <dc:date>2011-05-31T15:45:01Z</dc:date>
    <item>
      <title>Proper way to handle errors generated by the Map control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216781#M5442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering what the proper/recommended approach is for handling errors generated by the map control? I have attached a screenshot of an example of the exception I am experiencing occasionally if there is an error loading the basemaps. Since the code in my application is not creating the exception, its the map control, what is the best way to handle this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 15:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216781#M5442</guid>
      <dc:creator>MarkCollins</dc:creator>
      <dc:date>2011-05-31T15:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proper way to handle errors generated by the Map control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216782#M5443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure if you are hitting this same bug: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/25616-ArgumentNullException-%28center%29-in-Map.zoomAbout%28%29-clicking-on-map-with-no-tile-layers"&gt;http://forums.arcgis.com/threads/25616-ArgumentNullException-%28center%29-in-Map.zoomAbout%28%29-clicking-on-map-with-no-tile-layers&lt;/A&gt;&lt;SPAN&gt;. The stack trace seem the same. This bug is fixed for v2.2. A workaround is included in the related thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 22:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216782#M5443</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-05-31T22:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proper way to handle errors generated by the Map control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216783#M5444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the answer. That thread does contain the same issue. Glad to hear the bug is fixed. I will be using this code until I get the chance to update my reference to the API....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;void MyMap_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
 e.Handled = MyMap.Layers.Count == 0;
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216783#M5444</guid>
      <dc:creator>MarkCollins</dc:creator>
      <dc:date>2021-12-11T10:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proper way to handle errors generated by the Map control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216784#M5445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We add an attached property to the various layers which indicates whether or not the layer is required.&amp;nbsp; If the layer is required and it fails to load then we fail the application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 15:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/proper-way-to-handle-errors-generated-by-the-map/m-p/216784#M5445</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-06-01T15:19:55Z</dc:date>
    </item>
  </channel>
</rss>

