<?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: Changing Map type based on navigation toolbar button in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115113#M1096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Afraid not, so I wrote you one &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;For simplicity, I load up a few WebMaps ahead of time (you might want to do this on-the-fly in your app). I'll use these as basemap options. I'll also load up one WebMap with actual content. When the user picks a different basemap, I reference the content WebMap and the appropriate basemap WebMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only additional trick is to store and set the extent "around" the basemap change, otherwise each basemap change returns the map view to the content WebMap's default (saved) extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also don't initially set the basemap, but just rely on the "Content" basemap. You'd want to take care of that in a real app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 23:39:40 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2012-07-11T23:39:40Z</dc:date>
    <item>
      <title>Changing Map type based on navigation toolbar button</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115110#M1093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering how to change the map type by clicking a navigation toolbar button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm thinking of creating another web map with Aerial as a base map. Then, on click of button reloading the map with new aerial web map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an easier method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help with this is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 15:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115110#M1093</guid>
      <dc:creator>JohnMcleod1</dc:creator>
      <dc:date>2012-07-10T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map type based on navigation toolbar button</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115111#M1094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked at &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-ios-sdk/apiref/interface_a_g_s_web_map.html#a674eafe2499ff08e9809b539f7ff8cd4"&gt;AGSWebMap::openIntoMapView:withAlternateBaseMap:&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-ios-sdk/apiref/interface_a_g_s_web_map.html#a78aa661459ff6d1b93a611523b541108"&gt;AGSWebMap::openIntoMapView:withAlternateBaseMap:resetMapView:&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have an AGSWebMap whose basemap layers you want to use, use the AGSWebMap::baseMap property to get an AGSWebMapBaseMap object, and pass that in to one of the above function on the AGSWebMap whose basemap you want to update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note, you could just use the &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/search.html?q=tags%3Abasemap%20owner%3Aesri_en&amp;amp;sortField=title&amp;amp;sortOrder=asc"&gt;stock basemaps&lt;/A&gt;&lt;SPAN&gt; (although Bing and OSM may be special cases) rather than creating your own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps, though I'm not 100% sure I understood your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 16:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115111#M1094</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2012-07-11T16:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map type based on navigation toolbar button</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115112#M1095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like what I'm looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know of any examples using AGSWebMap::openIntoMapView:withAlternateBaseMap: and AGSWebMap::openIntoMapView:withAlternateBaseMap:resetMapView:?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 19:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115112#M1095</guid>
      <dc:creator>JohnMcleod1</dc:creator>
      <dc:date>2012-07-11T19:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map type based on navigation toolbar button</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115113#M1096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Afraid not, so I wrote you one &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;For simplicity, I load up a few WebMaps ahead of time (you might want to do this on-the-fly in your app). I'll use these as basemap options. I'll also load up one WebMap with actual content. When the user picks a different basemap, I reference the content WebMap and the appropriate basemap WebMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only additional trick is to store and set the extent "around" the basemap change, otherwise each basemap change returns the map view to the content WebMap's default (saved) extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also don't initially set the basemap, but just rely on the "Content" basemap. You'd want to take care of that in a real app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 23:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/changing-map-type-based-on-navigation-toolbar/m-p/115113#M1096</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2012-07-11T23:39:40Z</dc:date>
    </item>
  </channel>
</rss>

