<?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: Zooming not working on World Imagery Map in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491395#M4203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Start with &lt;A href="https://developers.arcgis.com/ios/guide/geometry-objects.htm"&gt;https://developers.arcgis.com/ios/guide/geometry-objects.htm&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Divesh!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 17:29:06 GMT</pubDate>
    <dc:creator>ToddBarker</dc:creator>
    <dc:date>2014-02-04T17:29:06Z</dc:date>
    <item>
      <title>Zooming not working on World Imagery Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491391#M4199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31055[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to modify the WebmapSample to display the following image from the World Imagery gallery:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/webmap/viewer.html?webmap=d802f08316e84c6592ef681c50178f17&amp;amp;extent=-122.578926,37.720084,-122.258263,37.927545" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=d802f08316e84c6592ef681c50178f17&amp;amp;extent=-122.578926,37.720084,-122.258263,37.927545&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on my inspection of the URL I needed to create an AGSEnvelope object&amp;nbsp; which contains the extent parameters displayed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extent Parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Xmin:-122.578926&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ymin:37.720084 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xmax:-122.258263&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ymax:37.927545&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My modification of the application involved:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Added a string constant for the id of map of interest&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Added AGSMapViewLayerDelegate protocol to WebmapSampleViewController.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Set the WebmapSampleView controller to be the delegate object for the protocol mentioned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Added the function -(void)mapViewDidLoad: (AGSMapView*)mapView in WebmapSampleViewController.m (code snippet below)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;- (void)mapViewDidLoad:(AGSMapView *)mapView { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; NSURL * goldengateURL = [NSURL URLWithString:@"http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"]; &amp;nbsp;&amp;nbsp;&amp;nbsp; AGSTiledMapServiceLayer * tiledLayer = [[AGSTiledMapServiceLayer alloc] initWithURL:goldengateURL]; &amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView addMapLayer:tiledLayer withName:@"Tiled Layer"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; AGSSpatialReference *sr = [AGSSpatialReference spatialReferenceWithWKID:102100]; &amp;nbsp;&amp;nbsp;&amp;nbsp; AGSEnvelope * env = [AGSEnvelope envelopeWithXmin:-122.578926 ymin:37.720084 xmax:-122.258263 ymax:37.927545 spatialReference:sr]; &amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView zoomToEnvelope:env animated:YES]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the program is invoked the contents of the display turn black and purple. This issue was also highlighted&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the following forum post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/75752-world-imagery-service-canadian-imagery-weirdly-purple" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/75752-world-imagery-service-canadian-imagery-weirdly-purple&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to know if I have modified the code correctly. I did not want to assume that it was directly related to the previous post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice that I set the infrastructure for the zoom in the delegate method. I have seen other posts on resource examples that do this in the view controllers - (void)viewDidLoad method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am hoping there is a work around for this. I need to zoom. It would be a waste if all of this high resolution imagery could not be processed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 21:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491391#M4199</guid>
      <dc:creator>ToddBarker</dc:creator>
      <dc:date>2014-02-02T21:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming not working on World Imagery Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491392#M4200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The envelope you're providing has coordinates in WGS84 (SR : 4326), but the spatial reference you're setting is web mercator (SR : 102100). Set the spatial reference to 4326, or provide coordinates in web mercator.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 04:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491392#M4200</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2014-02-04T04:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming not working on World Imagery Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491393#M4201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The envelope you're providing has coordinates in WGS84 (SR : 4326), but the spatial reference you're setting is web mercator (SR : 102100). Set the spatial reference to 4326, or provide coordinates in web mercator.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your input! I set the spatial reference to 4326 and it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I looked through the World Imagery specifications I saw SR = 102100. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a tutorial or guide on this subject matter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What link displays 4326?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31104[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 10:05:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491393#M4201</guid>
      <dc:creator>ToddBarker</dc:creator>
      <dc:date>2014-02-04T10:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming not working on World Imagery Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491394#M4202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Start with &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/ios/guide/geometry-objects.htm"&gt;https://developers.arcgis.com/ios/guide/geometry-objects.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 17:22:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491394#M4202</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2014-02-04T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming not working on World Imagery Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491395#M4203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Start with &lt;A href="https://developers.arcgis.com/ios/guide/geometry-objects.htm"&gt;https://developers.arcgis.com/ios/guide/geometry-objects.htm&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Divesh!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 17:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/zooming-not-working-on-world-imagery-map/m-p/491395#M4203</guid>
      <dc:creator>ToddBarker</dc:creator>
      <dc:date>2014-02-04T17:29:06Z</dc:date>
    </item>
  </channel>
</rss>

