Thank you for the information. I think the network do matters. I have seen some limitations when you load the map without network.
However, I tested your scenario with Airplane mode on with the following code and it works.
mMapView.addLayer(new ArcGISLocalTiledLayer(Environment.getExternalStorageDirectory().getPath()+"/ArcGIS/SanFrancisco.tpk"),0);
and activity_main.xml should be:
<!-- MapView -->
<com.esri.android.map.MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</com.esri.android.map.MapView>
Is there anything different with your code?
Thank you all for your responses, I was seeing the issue again yesterday using 10.2.5. I do not use the network for my maps, I have cached maps for offline use.
Sample of how I add a map:
currentMapLayer = new ArcGISLocalTiledLayer("/sdcard/" + filename + ".tpk");
mapView.addLayer(currentMapLayer);
Thanks again for the help.
I can not reproduce this issue with 10.2.4 and 10.2.5. Would you like to provide more information about the settings? How is your network settings?
I haven't come across this problem myself using 10.2.4. Might be beneficial to show how the layer is being created.
Thank you for the response Dan, this does still happen in v10.2.4. I have not had the opportunity to upgrade to 10.2.5 yet. Have you seen this before or are you aware of it?
Thanks.
Does it still occur in v10.2.4 or v10.2.5?
I am still looking for an answer to this issue. Has anyone see this before or have an advice?
Thank you.
Has anyone seen this before? Any help please?
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.