Select to view content in your preferred language

Map Does Not Appear When Opening App

5375
8
06-26-2014 07:39 AM
GSauers
Frequent Contributor
Hello, I have noticed that sometime when I enter my MapView, the cached map I have set to load does not load, but as soon as you move the grid lines with your finger, the map appears. I never seemed to see this error with 10.1.1, but it occurs with 10.2.3.

This does not happen everytime, but it happens about 40% of the time.

Thank you for any advice and/or help.
0 Kudos
8 Replies
GSauers
Frequent Contributor

Has anyone seen this before? Any help please?

0 Kudos
GSauers
Frequent Contributor

I am still looking for an answer to this issue. Has anyone see this before or have an advice?

Thank you.

0 Kudos
DanO_Neill
Deactivated User

Does it still occur in v10.2.4 or v10.2.5?

0 Kudos
GSauers
Frequent Contributor

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.

0 Kudos
lqdeffx
Deactivated User

I haven't come across this problem myself using 10.2.4.  Might be beneficial to show how the layer is being created.

0 Kudos
MengyiGuo
Deactivated User

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?

0 Kudos
GSauers
Frequent Contributor

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.

0 Kudos
MengyiGuo
Deactivated User

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?

0 Kudos