<?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 zoomToEnvelope does not zoom as expected in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171912#M1603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing an app where I have a small map in a view. I have two points on the map, and I would like to zoom to those two features. I have tried the following, but the map does not zoom to the expected extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #703daa;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;AGSGeometryEngine&lt;SPAN style="color: #000000;"&gt;* engine = [&lt;/SPAN&gt;AGSGeometryEngine&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;defaultGeometryEngine&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;AGSPoint&lt;/SPAN&gt;* gpsPoint = (&lt;SPAN style="color: #703daa;"&gt;AGSPoint&lt;/SPAN&gt;*)[engine &lt;SPAN style="color: #3d1d81;"&gt;projectGeometry&lt;/SPAN&gt;:currentLocation&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d1d81;"&gt;toSpatialReference&lt;/SPAN&gt;:&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;.&lt;SPAN style="color: #4f8187;"&gt;mapView&lt;/SPAN&gt;.&lt;SPAN style="color: #703daa;"&gt;spatialReference&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt;* geometries = [&lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt; &lt;SPAN style="color: #3d1d81;"&gt;arrayWithObjects&lt;/SPAN&gt;:gpsPoint, point, &lt;SPAN style="color: #bb2ca2;"&gt;nil&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;AGSMutableMultipoint&lt;/SPAN&gt;* multipoint = (&lt;SPAN style="color: #703daa;"&gt;AGSMutableMultipoint&lt;/SPAN&gt;*)[engine &lt;SPAN style="color: #3d1d81;"&gt;unionGeometries&lt;/SPAN&gt;:geometries];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;AGSEnvelope&lt;/SPAN&gt;* envelope = multipoint.&lt;SPAN style="color: #703daa;"&gt;envelope&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #3d1d81;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;mapView&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;zoomToEnvelope&lt;SPAN style="color: #000000;"&gt;: envelope &lt;/SPAN&gt;animated&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;NO&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The two points (gpsPoint and point) make an envelope that is wide but not very high.&amp;nbsp; The map in the view is pretty much a square. When I call the zoomToEnvelope, I get an extent which does not show my features. It is a small envelope somewhere between my features. I do not see the features on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function which allows me to zoom to an envelope, that will automatically expand itself to an envelope which contains the whole envelope I desire to zoom to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 14:48:56 GMT</pubDate>
    <dc:creator>JamesEyre</dc:creator>
    <dc:date>2014-09-17T14:48:56Z</dc:date>
    <item>
      <title>AGSMapView zoomToEnvelope does not zoom as expected</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171912#M1603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing an app where I have a small map in a view. I have two points on the map, and I would like to zoom to those two features. I have tried the following, but the map does not zoom to the expected extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #703daa;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;AGSGeometryEngine&lt;SPAN style="color: #000000;"&gt;* engine = [&lt;/SPAN&gt;AGSGeometryEngine&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;defaultGeometryEngine&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;AGSPoint&lt;/SPAN&gt;* gpsPoint = (&lt;SPAN style="color: #703daa;"&gt;AGSPoint&lt;/SPAN&gt;*)[engine &lt;SPAN style="color: #3d1d81;"&gt;projectGeometry&lt;/SPAN&gt;:currentLocation&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d1d81;"&gt;toSpatialReference&lt;/SPAN&gt;:&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;.&lt;SPAN style="color: #4f8187;"&gt;mapView&lt;/SPAN&gt;.&lt;SPAN style="color: #703daa;"&gt;spatialReference&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt;* geometries = [&lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt; &lt;SPAN style="color: #3d1d81;"&gt;arrayWithObjects&lt;/SPAN&gt;:gpsPoint, point, &lt;SPAN style="color: #bb2ca2;"&gt;nil&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;AGSMutableMultipoint&lt;/SPAN&gt;* multipoint = (&lt;SPAN style="color: #703daa;"&gt;AGSMutableMultipoint&lt;/SPAN&gt;*)[engine &lt;SPAN style="color: #3d1d81;"&gt;unionGeometries&lt;/SPAN&gt;:geometries];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;AGSEnvelope&lt;/SPAN&gt;* envelope = multipoint.&lt;SPAN style="color: #703daa;"&gt;envelope&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #3d1d81;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;mapView&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;zoomToEnvelope&lt;SPAN style="color: #000000;"&gt;: envelope &lt;/SPAN&gt;animated&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;NO&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The two points (gpsPoint and point) make an envelope that is wide but not very high.&amp;nbsp; The map in the view is pretty much a square. When I call the zoomToEnvelope, I get an extent which does not show my features. It is a small envelope somewhere between my features. I do not see the features on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function which allows me to zoom to an envelope, that will automatically expand itself to an envelope which contains the whole envelope I desire to zoom to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171912#M1603</guid>
      <dc:creator>JamesEyre</dc:creator>
      <dc:date>2014-09-17T14:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: AGSMapView zoomToEnvelope does not zoom as expected</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171913#M1604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of creating a multipoint, adding points and then using the extent. Use the extent of the points to create a polygon, then just zoom to the polygon you created with the extent of both points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 16:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171913#M1604</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-09-17T16:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: AGSMapView zoomToEnvelope does not zoom as expected</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171914#M1605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this, but I get the same effect. It still zooms to a small extent between the two points. I have verified that the polygon's minx,maxx,miny,maxy are set correctly in the debugger. Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 13:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171914#M1605</guid>
      <dc:creator>JamesEyre</dc:creator>
      <dc:date>2014-09-18T13:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: AGSMapView zoomToEnvelope does not zoom as expected</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171915#M1606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Any chance you can share a very small project with the reproducible case? I would recommend to add it on the MapViewDemo sample app and send it my way &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:apascual@esri.com"&gt;apascual@esri.com&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 19:19:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171915#M1606</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-09-18T19:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: AGSMapView zoomToEnvelope does not zoom as expected</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171916#M1607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out the problem. I set the autoPanMode on the locationDisplay to AGSLocationDisplayAutoPanModeDefault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;self.mapView.locationDisplay.autoPanMode = AGSLocationDisplayAutoPanModeDefault;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 17:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-zoomtoenvelope-does-not-zoom-as/m-p/171916#M1607</guid>
      <dc:creator>JamesEyre</dc:creator>
      <dc:date>2014-09-23T17:22:17Z</dc:date>
    </item>
  </channel>
</rss>

