Hi Mark,
Yes, I have and I've seen the code. These are essentially trees that list the Tiled map service layers, Dynamic map service layers, Feature layers and/or Graphics layers loaded programmatically unto the JMap. They do not list the sublayers of a mosaic data set being displayed.
For example, I can toggle the visibility of the Boundary, FootPrint and Image sublayers from a map document that displays a mosaic dataset with loaded raster data in ArcMap. If I create a map package of this map document and use it on either of these legend examples, I will not see these sublayers, but a single layer represented by the map package itself.
ArcMap only gives me the option of creating layer packages (lpk) off each individual sublayer. So, my question really boils down to whether Runtime can display lpk files. If not, how viable of an option it would be to make separate map packages with different visibility settings (display only the FootPrint sublayer on one and only the Image on the other). A better recourse would certainly be to have the ability to access these sublayers of a map package. What's your take?
Carlos