<?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 Zooming to graphic in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-to-graphic/m-p/250022#M2905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created offline geocoding with composite address locator according to this sample &lt;A href="https://developers.arcgis.com/net/sample-code/OfflineGeocoding/" title="https://developers.arcgis.com/net/sample-code/OfflineGeocoding/"&gt;Geocoding | ArcGIS for Developers&lt;/A&gt; . I just used "Single Line Input" in address.Add. &lt;/P&gt;&lt;P&gt;Everything works fine in terms of displaying the correct location with the graphic overlay. &lt;/P&gt;&lt;P&gt;But the map is not zooming to that location it's just kind of centring. How should I change the code to zoom to the found location?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me out with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 00:16:31 GMT</pubDate>
    <dc:creator>JanaPfefferova</dc:creator>
    <dc:date>2015-03-03T00:16:31Z</dc:date>
    <item>
      <title>Zooming to graphic</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-to-graphic/m-p/250022#M2905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created offline geocoding with composite address locator according to this sample &lt;A href="https://developers.arcgis.com/net/sample-code/OfflineGeocoding/" title="https://developers.arcgis.com/net/sample-code/OfflineGeocoding/"&gt;Geocoding | ArcGIS for Developers&lt;/A&gt; . I just used "Single Line Input" in address.Add. &lt;/P&gt;&lt;P&gt;Everything works fine in terms of displaying the correct location with the graphic overlay. &lt;/P&gt;&lt;P&gt;But the map is not zooming to that location it's just kind of centring. How should I change the code to zoom to the found location?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me out with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 00:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zooming-to-graphic/m-p/250022#M2905</guid>
      <dc:creator>JanaPfefferova</dc:creator>
      <dc:date>2015-03-03T00:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming to graphic</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-to-graphic/m-p/250023#M2906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way it created in the sample is to create an extent out of the results which mostly more than one location then zoom to that extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case I believe you have only one point as a result to zoom to, so here is the way to zoom and center a point, you can change the scale value as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await MyMapView.SetViewAsync(_graphicsOverlay.Graphics[0].Geometry);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await MyMapView.ZoomToScaleAsync(560);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 00:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zooming-to-graphic/m-p/250023#M2906</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2015-03-03T00:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming to graphic</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-to-graphic/m-p/250024#M2907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 00:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zooming-to-graphic/m-p/250024#M2907</guid>
      <dc:creator>JanaPfefferova</dc:creator>
      <dc:date>2015-03-03T00:53:12Z</dc:date>
    </item>
  </channel>
</rss>

