Select to view content in your preferred language

URL link in LayerList

667
2
01-24-2012 08:40 AM
MartynSmith
Emerging Contributor
Is this possible?  Or could switch to a Table of Contents or other widget that supported this.  The link would be to more information about the data layer.

Thanks
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Martyn,

   One of the easiest way would be to customize this file that the layerlist widget uses:

The function descriptionOrDownloadLabel_clickHandler is what gets called when you click the description button:

src/com/esri/viewer/components/toc/tocClasses/TocLayerMenu.mxml
0 Kudos
MartynSmith
Emerging Contributor
Robert-

Thanks so much for the tip, its been a while--but I got what I wanted to work going... a link to a data table for a specific layer in the LayerList.  I really had to dig into actionscript, which isn't so bad once you get used to it.   If anyone needs help with this just let me know.... Here is how it looks now:

[ATTACH=CONFIG]12138[/ATTACH]


I have one more question and that is that I would like to disable the functionality of the arrows to expand and show the KML folder and layers.  This is useless extraneous info for my application.  I've dug through the various files in src/com.esri.viewer/components/toc/tocclasses but I can't find where to turn this off.  I'm assuming its just commenting something out.  Robert or others, ideas are much appreciated.  Screenshot of what I'd like to disable:

[ATTACH=CONFIG]12139[/ATTACH]

Thanks!

Martyn
0 Kudos