<?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 AGSMapView zoom to geometry randomly fails in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoom-to-geometry-randomly-fails/m-p/11123#M116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;We are using following code to zoom to specific layer extent,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;we are adding a layer using following code,&lt;/P&gt;&lt;P style="color: #000000;"&gt;&lt;/P&gt;&lt;P style="color: #000000;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #ba2da2; font-size: 14px;"&gt;var&lt;/SPAN&gt; aPNsGraphicsLayer = &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSGraphicsOverlay&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; agsBoundaryPolygon: &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPolygon&lt;/SPAN&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000;"&gt;&lt;/P&gt;&lt;P style="color: #000000;"&gt;&lt;SPAN&gt;//Polygon co-ordinates array&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;func&lt;/SPAN&gt;&lt;SPAN&gt; addLayerOnArcGisMap(&lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;_&lt;/SPAN&gt;&lt;SPAN&gt; Locations: [&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPoint&lt;/SPAN&gt;&lt;SPAN&gt;]) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; polygonBuilder = &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPolygonBuilder&lt;/SPAN&gt;&lt;SPAN&gt;(spatialReference: &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSSpatialReference&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;wgs84&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; polygonBuilder.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;addPart&lt;/SPAN&gt;&lt;SPAN&gt;(with: Locations)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;agsBoundaryPolygon&lt;/SPAN&gt;&lt;SPAN&gt; = polygonBuilder.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;toGeometry&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; grapichs: &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSGraphic&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSGraphic&lt;/SPAN&gt;&lt;SPAN&gt;(geometry: &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;agsBoundaryPolygon&lt;/SPAN&gt;&lt;SPAN&gt;, symbol: &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;barrierSymbol&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #272ad8;"&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;), attributes: &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;nil&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4f8187; font-size: 14px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;aPNsGraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;graphics&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3e1e81;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(grapichs) &lt;/SPAN&gt;&lt;SPAN style="color: #008400;"&gt;//addGraphic(grapichs)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4f8187; font-size: 14px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;aPNsGraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;isVisible&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;true&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4f8187; font-size: 14px;"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;// To set zoom to added layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.a&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;gsMapView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;setViewpointGeometry&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;aPNsGraphicsLayer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;extent&lt;/SPAN&gt;&lt;SPAN&gt;, padding: &lt;/SPAN&gt;&lt;SPAN style="color: #272ad8;"&gt;50&lt;/SPAN&gt;&lt;SPAN&gt;, completion: { (finished) -&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;Void&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;in&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;Randomly this is not working and the map showing default zoom, on next attempt, it's working, so is there any way to fix this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 14:20:12 GMT</pubDate>
    <dc:creator>AnkitShah</dc:creator>
    <dc:date>2017-07-25T14:20:12Z</dc:date>
    <item>
      <title>AGSMapView zoom to geometry randomly fails</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoom-to-geometry-randomly-fails/m-p/11123#M116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;We are using following code to zoom to specific layer extent,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;we are adding a layer using following code,&lt;/P&gt;&lt;P style="color: #000000;"&gt;&lt;/P&gt;&lt;P style="color: #000000;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #ba2da2; font-size: 14px;"&gt;var&lt;/SPAN&gt; aPNsGraphicsLayer = &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSGraphicsOverlay&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; agsBoundaryPolygon: &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPolygon&lt;/SPAN&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000;"&gt;&lt;/P&gt;&lt;P style="color: #000000;"&gt;&lt;SPAN&gt;//Polygon co-ordinates array&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;func&lt;/SPAN&gt;&lt;SPAN&gt; addLayerOnArcGisMap(&lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;_&lt;/SPAN&gt;&lt;SPAN&gt; Locations: [&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPoint&lt;/SPAN&gt;&lt;SPAN&gt;]) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; polygonBuilder = &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPolygonBuilder&lt;/SPAN&gt;&lt;SPAN&gt;(spatialReference: &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSSpatialReference&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;wgs84&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; polygonBuilder.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;addPart&lt;/SPAN&gt;&lt;SPAN&gt;(with: Locations)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;agsBoundaryPolygon&lt;/SPAN&gt;&lt;SPAN&gt; = polygonBuilder.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;toGeometry&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; grapichs: &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSGraphic&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSGraphic&lt;/SPAN&gt;&lt;SPAN&gt;(geometry: &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;agsBoundaryPolygon&lt;/SPAN&gt;&lt;SPAN&gt;, symbol: &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;barrierSymbol&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #272ad8;"&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;), attributes: &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;nil&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4f8187; font-size: 14px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;aPNsGraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;graphics&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3e1e81;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(grapichs) &lt;/SPAN&gt;&lt;SPAN style="color: #008400;"&gt;//addGraphic(grapichs)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4f8187; font-size: 14px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;aPNsGraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;isVisible&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;true&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4f8187; font-size: 14px;"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;// To set zoom to added layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.a&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;gsMapView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;setViewpointGeometry&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;aPNsGraphicsLayer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;extent&lt;/SPAN&gt;&lt;SPAN&gt;, padding: &lt;/SPAN&gt;&lt;SPAN style="color: #272ad8;"&gt;50&lt;/SPAN&gt;&lt;SPAN&gt;, completion: { (finished) -&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;Void&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ba2da2;"&gt;in&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 14px;"&gt;&lt;SPAN&gt;Randomly this is not working and the map showing default zoom, on next attempt, it's working, so is there any way to fix this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 14:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoom-to-geometry-randomly-fails/m-p/11123#M116</guid>
      <dc:creator>AnkitShah</dc:creator>
      <dc:date>2017-07-25T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: AGSMapView zoom to geometry randomly fails</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoom-to-geometry-randomly-fails/m-p/11124#M117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="274505" data-username="ankitkahuna" href="https://community.esri.com/people/ankitkahuna" style="color: #8ca9cd; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 13.7136px;"&gt;Ankit Shah&lt;/A&gt;&lt;SPAN style="background-color: #ffffff; color: #8b8b8b;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #8b8b8b;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sounds like the issue is related to the timing since the issue is intermittent happened.&lt;/P&gt;&lt;P&gt;I would suggest try to take a look about this sample and try to compare with your code especially setup some break point to check if when is the&amp;nbsp;"&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;addLayerOnArcGisMap" function in your code is called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Here is our sample code from github:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/arcgis-ios-sdk-samples/Maps/Change%20viewpoint/SetViewpointViewController.swift" title="https://github.com/Esri/arcgis-runtime-samples-ios/blob/18570eca866320d233b8e57cfc7136d1172f6d4a/arcgis-ios-sdk-samples/Display%20information/Simple%20renderer/SimpleRendererViewController.swift"&gt;Change viewpoint github sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoom-to-geometry-randomly-fails/m-p/11124#M117</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2017-07-26T22:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: AGSMapView zoom to geometry randomly fails</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoom-to-geometry-randomly-fails/m-p/11125#M118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see it in your code above, but make sure you are adding the graphics overlay to the map view:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #005cc5; font-size: 12px;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #24292e; font-size: 12px;"&gt;mapView&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #24292e; font-size: 12px;"&gt;graphicsOverlays&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #005cc5; font-size: 12px;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff; font-size: 12px;"&gt;(&lt;SPAN style="color: #000000; font-size: 15px;"&gt;aPNsGraphicsLayer&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, double check that the map is loaded when you're adding the layer; if it's not loaded yet, the extent may be off.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:37:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoom-to-geometry-randomly-fails/m-p/11125#M118</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2017-08-03T16:37:39Z</dc:date>
    </item>
  </channel>
</rss>

