<?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: NullReferenceException when I try to ZoomTo in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/nullreferenceexception-when-i-try-to-zoomto/m-p/171035#M722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Cristian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since it's a dynamic layer you don't really need to worry about spatial reference (unless you have a lot of features&amp;nbsp; as it's going to be reprojected to what ever spatial reference your map is in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the normal scenario is to Add you basemap layer and other layers that you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create and Add your ArcGISLocalFeatureLayer to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you add features to this layer they should be visible on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 11:12:15 GMT</pubDate>
    <dc:creator>DavidLednik</dc:creator>
    <dc:date>2014-03-14T11:12:15Z</dc:date>
    <item>
      <title>NullReferenceException when I try to ZoomTo</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/nullreferenceexception-when-i-try-to-zoomto/m-p/171034#M721</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 try to perform ZoomTo using the geometry of the polyline and get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;System.NullReferenceException was unhandled &amp;nbsp; HResult=-2147467261 &amp;nbsp; Message=Object reference not set to an instance of an object. &amp;nbsp; Source=ESRI.ArcGIS.Client &amp;nbsp; StackTrace: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.Map.getFullViewExtent() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.Map.zoomTo(Geometry geom, Boolean skipAnimation) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.Map.ZoomTo(Geometry geom) &amp;nbsp; InnerException: &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Idea???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if i try to make the zoom with mouse whell it works perfectly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 15:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/nullreferenceexception-when-i-try-to-zoomto/m-p/171034#M721</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2014-03-13T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: NullReferenceException when I try to ZoomTo</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/nullreferenceexception-when-i-try-to-zoomto/m-p/171035#M722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Cristian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since it's a dynamic layer you don't really need to worry about spatial reference (unless you have a lot of features&amp;nbsp; as it's going to be reprojected to what ever spatial reference your map is in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the normal scenario is to Add you basemap layer and other layers that you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create and Add your ArcGISLocalFeatureLayer to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you add features to this layer they should be visible on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:12:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/nullreferenceexception-when-i-try-to-zoomto/m-p/171035#M722</guid>
      <dc:creator>DavidLednik</dc:creator>
      <dc:date>2014-03-14T11:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: NullReferenceException when I try to ZoomTo</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/nullreferenceexception-when-i-try-to-zoomto/m-p/171036#M723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As i wrote in :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/104530-Graphics-get-lost?p=373773&amp;amp;posted=1#post373773" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/104530-Graphics-get-lost?p=373773&amp;amp;posted=1#post373773&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;all is based in the layer's lifecycle.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must performed the zoom operation when the layer is created, initializated and updated.. if i tried the zoom operation before al these three stages...the exception is thrown, because the full extend is not set&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 20:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/nullreferenceexception-when-i-try-to-zoomto/m-p/171036#M723</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2014-03-18T20:18:55Z</dc:date>
    </item>
  </channel>
</rss>

