Hello,
I had an Android application that display a local .TPK file,, stored on the phone.
Starting with Android 14 the application does not start and I made an upgrade to ArcGis Runtime SDK 100.15.4
Now the map is displayed but I need to zoom it in order to make it visible. When the map is launched, the screen is with Esri grid, but the map is not visible. As soon as I was zoom it, the map become visible and I can zoom in or zoom out.
I think there is a scale issue or something like that. I read a lot but I did not found any relevant information.
Have you any idea?
The code is below:
MapView mmapView = findViewById(R.id.mapView);
ArcGISRuntimeEnvironment.setApiKey(API_KEY);
String extDirName =Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) + File.separator + "Folder/";
String filename ="myTPK.tpk";
String tpkFile = extDirName + filename;
TileCache tileCache = new TileCache(tpkFile);
ArcGISTiledLayer tiledLayer = new ArcGISTiledLayer(tileCache);
Basemap basemap = new Basemap(tiledLayer);
ArcGISMap map = new ArcGISMap(basemap);
mmapView.setMap(map);
mmapView.setVisibility(View.VISIBLE);
mmapView.setWrapAroundMode(WrapAroundMode.ENABLE_WHEN_SUPPORTED);