<?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 switching base map on android in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381709#M2590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I found "The first layer that is added to the MapView using either approach presented previously will defines its initial extent, resolution, and spatial reference for the entire map. To change any of these attributes, use the corresponding setter methods; otherwise the MapView will maintain these initial values during the lifetime of the object." in MapView API Reference page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the problem is, when i switch local map to arcgis online base map. extent, resolution especially full-extent follow the first layer that is soooo annoying, so I decided to reset MapView.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've tried reset/reinitialize/new MapView but it doesn't work excepts switch activity, so I wonder if there is any methods that make MapView back to initialze states?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2012 07:23:37 GMT</pubDate>
    <dc:creator>dixonkwan1</dc:creator>
    <dc:date>2012-10-10T07:23:37Z</dc:date>
    <item>
      <title>switching base map on android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381709#M2590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I found "The first layer that is added to the MapView using either approach presented previously will defines its initial extent, resolution, and spatial reference for the entire map. To change any of these attributes, use the corresponding setter methods; otherwise the MapView will maintain these initial values during the lifetime of the object." in MapView API Reference page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the problem is, when i switch local map to arcgis online base map. extent, resolution especially full-extent follow the first layer that is soooo annoying, so I decided to reset MapView.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've tried reset/reinitialize/new MapView but it doesn't work excepts switch activity, so I wonder if there is any methods that make MapView back to initialze states?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 07:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381709#M2590</guid>
      <dc:creator>dixonkwan1</dc:creator>
      <dc:date>2012-10-10T07:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: switching base map on android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381710#M2591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dixon, can you explain the requirements for when you switch from local map to ArcGIS Online base map? Usually when you swap maps the intention is to keep the exact same extent and zoom level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, is the ArcGIS Online base map a "WebMap" or an ArcGIS Server Map Service (REST endpoint)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to change the extent and resolution/zoom level there are methods for those that you can apply that after a layer has been added to the map, for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;zoomToResolution(Point centerPt, double res) 
setExtent(Geometry geometry) 
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381710#M2591</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-12-11T17:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: switching base map on android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381711#M2592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Dixon, can you explain the requirements for when you switch from local map to ArcGIS Online base map? Usually when you swap maps the intention is to keep the exact same extent and zoom level.&lt;BR /&gt;&lt;BR /&gt;And, is the ArcGIS Online base map a "WebMap" or an ArcGIS Server Map Service (REST endpoint)?&lt;BR /&gt;&lt;BR /&gt;If you need to change the extent and resolution/zoom level there are methods for those that you can apply that after a layer has been added to the map, for example:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;zoomToResolution(Point centerPt, double res) 
setExtent(Geometry geometry) 
&lt;/PRE&gt;&lt;BR /&gt;-Andy&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thx for the reply. Yes, usually maps are using the exact same extent and zooming level, but the requirement is: using the local map at start, if user needs online map service, the app pops warning dialog for using internet service which may cost. and the local map is a clipped version, so when swap to online map, the full extent, minimum resolution etc are limited.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm currently using ArcGIS REST service, and there is another question if you don't mind. How to avoid "map data not yet available" tiled images display on the map when there are no images on the map? I know setMinResolution(double res) would solve the problem, but the ArcGIS android app seems using different way. it zooms the minimum LOD if the next level of LOD has no image, so i wonder how to do this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381711#M2592</guid>
      <dc:creator>dixonkwan1</dc:creator>
      <dc:date>2021-12-11T17:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: switching base map on android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381712#M2593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; it zooms the minimum LOD if the next level of LOD has no image, so i wonder how to do this.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that's an internal workaround, and I'm not sure what they've done exactly. Maybe someone else on the forums has workaround code for Android? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What our team has done for the other APIs when an app is designed for a specific geographic region we define polygons and zoom levels for areas where we know there are null tiles. Then set a listener on the layer and when it met the right criteria (e.g. polygon extent is within the view port and min zoom level is true) we reset the zoom level.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also note, I've been told the upcoming release is intended to include null tile support. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 14:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381712#M2593</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-10-12T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: switching base map on android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381713#M2594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a similar issue. I try to replace the map layer with a different one and it doesnt show up on the MapView.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mapView.removeLayer(currentMapLayer);
currentMapLayer = new ArcGISLocalTiledLayer("file:///mnt/sdcard/"+mapFileName);
mapView.addLayer(currentMapLayer);
mapView.setExtent(currentMapLayer.getFullExtent());&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381713#M2594</guid>
      <dc:creator>ChristopherDonohue</dc:creator>
      <dc:date>2021-12-11T17:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: switching base map on android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381714#M2595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having the same problem. Finally, how did you solve it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advanced,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 11:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381714#M2595</guid>
      <dc:creator>JessicaSena</dc:creator>
      <dc:date>2013-05-13T11:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: switching base map on android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381715#M2596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also still looking for an answer to this issue, had anyone had any luck?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 19:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381715#M2596</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2013-07-11T19:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: switching base map on android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381716#M2597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Add me to the list of still needing an answer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In our case, if we have a base map added and zoom down as far as we can go, then change base maps, we can't zoom down any further.&amp;nbsp; If we restart the app, we can zoom in correctly, in this case 3 or 4 more levels .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the Resolution is the problem, that we need to set this again after changing layers.&amp;nbsp; My problem is MapView has setMaxResolution and setMinResolution, but Layer only has getResolution, which looks like it's the current resolution.&amp;nbsp; (MapView.getResolution = Layer.getResolution).&amp;nbsp; I tried setScale, but MapView has setScale and Layer has getMinScale and getMaxScale.&amp;nbsp; I really need get Min/Max Resolution on the layer, or some other way to figure this out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 17:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-base-map-on-android/m-p/381716#M2597</guid>
      <dc:creator>ColleenDixon</dc:creator>
      <dc:date>2014-04-01T17:35:34Z</dc:date>
    </item>
  </channel>
</rss>

