Select to view content in your preferred language

Creating TOC with Runtime

1333
4
12-21-2011 10:55 PM
MartinRick
Deactivated User
Hi,

right now I am working on a small demo map viewer with the runtime. Unfortunately I have problems to create a legend / toc for the currently loaded data. I found a JLayertree.java in the samples, but this class seems not to be able to deal with group layers.
Is there any agenda for a standardised legend/toc control or does anyone have a sample how to create such a GUI component?

Cheers

Martin
0 Kudos
4 Replies
RalfGottschalk
Esri Contributor
Hi Martin,

We are planning on including a TOC sample in the Tooklit for Final.
0 Kudos
CarlosColón-Maldonado
Frequent Contributor
Hi, I'm just trying to follow-up with this thread. TOC is a functionality I'm interested in.

I just installed the final release of Runtime and there doesn't seem to be a sample that implements TOC functionality. I browsed through the toolkit for naming convention-type functionality and I can't see it there, either. Did this happen?

Thanks in advanced,

Carlos
0 Kudos
EliseAcheson1
Deactivated User
Hi Carlos,

At Final there is a JLegend component in the toolkit which implements TOC functionality. As it is in the toolkit, the source code is available and a sample called 'Legend (Online)' is in the Java sample viewer under 'Toolkit'.

I hope that helps,

~Elise
0 Kudos
CarlosColón-Maldonado
Frequent Contributor
Got it, Thanks, Elise!

Carlos
0 Kudos