Select to view content in your preferred language

Dynamic layer does not load or only after device rotation

2938
5
12-21-2011 01:51 PM
KyleShimabukuro
Occasional Contributor
Aloha,

My second SDK 1.0.1 issue is that sometimes my dynamic layer does not load, all I see is the basemap. However, if I rotate my device, the dynamic layer is then loaded.

Here is a video of the behavior:

http://dl.dropbox.com/u/44596312/dynamic%20layer%20loads%20after%20rotate.mp4

What can I do to make sure the dynamic layer is consistently displayed (without the need to rotate the device)?

Mahalo!
0 Kudos
5 Replies
KyleShimabukuro
Occasional Contributor
I've been experimenting with adding refresh() right after adding the dynamic layer to the MapView and it seems to be working well. The dynamic layer now consistently displays upon opening the app.

But if anyone has other suggestions, I'm all ears. Thank you!
0 Kudos
ArchanaAgarwal
Occasional Contributor
Could you send us the link to the layer? We have not seen this problem so far.
0 Kudos
KyleShimabukuro
Occasional Contributor
It doesn't happen with any one layer in particular but you can try this one:

http://gis.hicentral.com/ArcGIS/rest/services/OperPublicSafety/MapServer

Like I mentioned in my previous reply, it seems that calling refresh() after adding the layer helps.
0 Kudos
ArchanaAgarwal
Occasional Contributor
Hi I wasnt able to reproduce it with the layers you sent me, but I will try it with others and let you know.
0 Kudos
mbunambuna
Emerging Contributor
Bump, I'm noticing this behavior as well. It always initializes (OnStatusChangedListener.STATUS.INITIALIZED), and then sometimes renders, sometimes doesn't render, until I pan / zoom / rotate.

Also, I've not been able to ever get a dynamic or tiled layer to give a LAYER_LOADED status (even though I see it load). Am I misunderstanding what LAYER_LOADED means?
0 Kudos