The map loads in gray

522
2
Jump to solution
02-27-2023 12:33 PM
stiven
by
New Contributor III

The map is coming out in gray and it does not show me the streets, 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'

I attach evidence:

WhatsApp Image 2023-02-27 at 3.23.46 PM.jpeg

can someone help me please

 

0 Kudos
1 Solution

Accepted Solutions
PriyankaRupani
Esri Contributor

It seems to me, you are trying to load a streets basemap, per your question.

So I tried setting a streets basemap to mapView and load the mapView using 

"com.esri.arcgisruntime:arcgis-android:100.8.0"

android sdk version, and it does load fine. I used an android 30 emulator to test this.

Below is the code snippet.

// inflate MapView from layout
mMapView = findViewById(R.id.mapView);
// create a map with the a topographic basemap
ArcGISMap map = new ArcGISMap(Basemap.createStreets());
// set the map to be displayed in this view
mMapView.setMap(map);
mMapView.setViewpoint(new Viewpoint(34.056295, -117.195800, 10000));

Priyanka_0-1677535032290.png

 

View solution in original post

0 Kudos
2 Replies
MarkBaird
Esri Regular Contributor

I've asked someone from the Android team to look at this, but can you share the code you are using to add the basemap.

0 Kudos
PriyankaRupani
Esri Contributor

It seems to me, you are trying to load a streets basemap, per your question.

So I tried setting a streets basemap to mapView and load the mapView using 

"com.esri.arcgisruntime:arcgis-android:100.8.0"

android sdk version, and it does load fine. I used an android 30 emulator to test this.

Below is the code snippet.

// inflate MapView from layout
mMapView = findViewById(R.id.mapView);
// create a map with the a topographic basemap
ArcGISMap map = new ArcGISMap(Basemap.createStreets());
// set the map to be displayed in this view
mMapView.setMap(map);
mMapView.setViewpoint(new Viewpoint(34.056295, -117.195800, 10000));

Priyanka_0-1677535032290.png

 

0 Kudos