Sample code for AGSMapContentsTree for iOS?

09-10-2014 08:50 AM
New Contributor

Hi, does anyone have some sample code showing how to use the new AGSMapContentsTree, AGSMapContentsLayerInfo and related classes? I found a short example in the updated LegendSample project, however, the TableOfContentsSample doesn't appear to use the new classes. I'm confused as to how the new classes relate to classes such as AGSMapServiceInfo and AGSDynamicMapServiceLayer.

I'm trying to build a menu that combines the legend with the Table of Contents so user's can click on a legend item and change the map.


0 Kudos
1 Reply
Esri Regular Contributor

Have you checked out Esri/preview-app-osx · GitHub ? It uses the AGSMapContentTree to build a Table of Contents. Although it is a mac app, the usage would be similar for iOS.

0 Kudos