<?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 Set a basemap using a URL? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/set-a-basemap-using-a-url/m-p/365512#M2405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set a basemap using a url rather than one of the built in factory methods (so that the url can be user configurable), but if I replace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapView.Map = new Map(Basemap.CreateImagery());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mapView.Map = new Map(new Basemap(new Uri("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FWorld_Imagery%2FMapServer%2F" rel="nofollow" target="_blank"&gt;https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/&lt;/A&gt;&lt;SPAN&gt;")));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I get a blank map. On the other hand, I can use that url to add a BaseLayer, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basemap basemap = new Basemap();&lt;BR /&gt;&lt;SPAN&gt;basemap.BaseLayers.Add(new ArcGISMapImageLayer(new Uri("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FWorld_Imagery%2FMapServer%2F" rel="nofollow" target="_blank"&gt;https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/&lt;/A&gt;&lt;SPAN&gt;")));&lt;/SPAN&gt;&lt;BR /&gt;mapView.Map = new Map(basemap);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this appears to show exactly the same map as the first example, but doesn't perform as well when zooming in and out. Is there any way I can use the url to form the basemap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2018 12:15:44 GMT</pubDate>
    <dc:creator>OwenR</dc:creator>
    <dc:date>2018-07-17T12:15:44Z</dc:date>
    <item>
      <title>Set a basemap using a URL?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/set-a-basemap-using-a-url/m-p/365512#M2405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set a basemap using a url rather than one of the built in factory methods (so that the url can be user configurable), but if I replace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapView.Map = new Map(Basemap.CreateImagery());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mapView.Map = new Map(new Basemap(new Uri("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FWorld_Imagery%2FMapServer%2F" rel="nofollow" target="_blank"&gt;https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/&lt;/A&gt;&lt;SPAN&gt;")));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I get a blank map. On the other hand, I can use that url to add a BaseLayer, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basemap basemap = new Basemap();&lt;BR /&gt;&lt;SPAN&gt;basemap.BaseLayers.Add(new ArcGISMapImageLayer(new Uri("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FWorld_Imagery%2FMapServer%2F" rel="nofollow" target="_blank"&gt;https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/&lt;/A&gt;&lt;SPAN&gt;")));&lt;/SPAN&gt;&lt;BR /&gt;mapView.Map = new Map(basemap);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this appears to show exactly the same map as the first example, but doesn't perform as well when zooming in and out. Is there any way I can use the url to form the basemap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 12:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/set-a-basemap-using-a-url/m-p/365512#M2405</guid>
      <dc:creator>OwenR</dc:creator>
      <dc:date>2018-07-17T12:15:44Z</dc:date>
    </item>
  </channel>
</rss>

