I'm loading a map but it is displayed in gray

326
1
03-01-2023 07:06 AM
stiven
by
New Contributor III

when I load the map it appears gray but the layers or points are displayed fine:

 

 the sdk that I currently have is 30  and this is the version of Sdk arcgis 

api 'com.esri.arcgisruntime:arcgis-android:100.8.0'

This is the step by step of the methods I use:

 

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(() -> {
                ArcGISRuntimeEnvironment.setLicense(Constants.ARCGIS_LICENSEINFO);
            });

            portalItem = new PortalItem(portal, id);
            map = new ArcGISMap(portalItem);
        }
        base_mapView.setMap(map);

}

 

 

0 Kudos
1 Reply
PriyankaRupani
Esri Contributor

Just curious, if the map displays differently in any other 

com.esri.arcgisruntime:arcgis-android

version?

0 Kudos