<?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 I'm loading a map but it is displayed in gray in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-m-loading-a-map-but-it-is-displayed-in-gray/m-p/1263055#M5993</link>
    <description>&lt;P&gt;when I load the map it appears gray but the layers or points are displayed fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sdk that I currently have is 30&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; and this is the version of Sdk arcgis&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;api &lt;SPAN&gt;'com.esri.arcgisruntime:arcgis-android:100.8.0'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;This is the step by step of the methods I use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;private void startMap(){
        loadMap();
        locationDisplayManager = base_mapView.getLocationDisplay();
        if(!startGraphicsOverlay){
            base_mapView.getGraphicsOverlays().add(mGraphicsOverlay);
            startGraphicsOverlay = true;
        }
        locationDisplayManager.stop();
}    

private void loadMap() {
        ArcGISRuntimeEnvironment.setLicense(Constants.CUSTOMER_ID_ARCGIS);
        base_mapView = new MapView(this);
        baseMap_frameLayoutArcgisMap.addView(base_mapView);
        createPortalItem();
        mCallout = base_mapView.getCallout();
        startListeners();
}

private void createPortalItem(){
        if (base_mapView != null) {
            portal = new Portal(urlBase, false);
            portal.loadAsync();
            portal.addDoneLoadingListener(() -&amp;gt; {
                ArcGISRuntimeEnvironment.setLicense(Constants.ARCGIS_LICENSEINFO);
            });

            portalItem = new PortalItem(portal, id);
            map = new ArcGISMap(portalItem);
        }
        base_mapView.setMap(map);

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 18:56:29 GMT</pubDate>
    <dc:creator>stiven</dc:creator>
    <dc:date>2023-03-07T18:56:29Z</dc:date>
    <item>
      <title>I'm loading a map but it is displayed in gray</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-m-loading-a-map-but-it-is-displayed-in-gray/m-p/1263055#M5993</link>
      <description>&lt;P&gt;when I load the map it appears gray but the layers or points are displayed fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sdk that I currently have is 30&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; and this is the version of Sdk arcgis&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;api &lt;SPAN&gt;'com.esri.arcgisruntime:arcgis-android:100.8.0'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;This is the step by step of the methods I use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;private void startMap(){
        loadMap();
        locationDisplayManager = base_mapView.getLocationDisplay();
        if(!startGraphicsOverlay){
            base_mapView.getGraphicsOverlays().add(mGraphicsOverlay);
            startGraphicsOverlay = true;
        }
        locationDisplayManager.stop();
}    

private void loadMap() {
        ArcGISRuntimeEnvironment.setLicense(Constants.CUSTOMER_ID_ARCGIS);
        base_mapView = new MapView(this);
        baseMap_frameLayoutArcgisMap.addView(base_mapView);
        createPortalItem();
        mCallout = base_mapView.getCallout();
        startListeners();
}

private void createPortalItem(){
        if (base_mapView != null) {
            portal = new Portal(urlBase, false);
            portal.loadAsync();
            portal.addDoneLoadingListener(() -&amp;gt; {
                ArcGISRuntimeEnvironment.setLicense(Constants.ARCGIS_LICENSEINFO);
            });

            portalItem = new PortalItem(portal, id);
            map = new ArcGISMap(portalItem);
        }
        base_mapView.setMap(map);

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 18:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-m-loading-a-map-but-it-is-displayed-in-gray/m-p/1263055#M5993</guid>
      <dc:creator>stiven</dc:creator>
      <dc:date>2023-03-07T18:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: I'm loading a map but it is displayed in gray</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-m-loading-a-map-but-it-is-displayed-in-gray/m-p/1263185#M5994</link>
      <description>&lt;P&gt;Just curious, if the map displays differently in any other&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;com.esri.arcgisruntime:arcgis-android&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;version?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 18:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-m-loading-a-map-but-it-is-displayed-in-gray/m-p/1263185#M5994</guid>
      <dc:creator>PriyankaRupani</dc:creator>
      <dc:date>2023-03-01T18:42:53Z</dc:date>
    </item>
  </channel>
</rss>

