Select to view content in your preferred language

Drill-down Identify Widget Help

913
1
08-10-2011 09:53 AM
ScottSchreiber
New Contributor
All,

I am currently implementing the drill-down identify widget in a project and have a few questions about its customization abilities.  I have multiple layers and our client wants the results window to more clearly denote which layer each entry is from.  We had a few ideas of doing this, but have yet to figure out how to implement our ideas.  We were thinking of just having the entries highlight in different colors, but have also considered having separate icons/images [specifically, the small images that present on the left side of the result entries] for each data layer.  If anyone has information on how to work these options out, or even further, suggestions on how to differentiate between the different layer results, please feel free to respond to this post.

Thank You,

Scott Schreiber
Tags (2)
0 Kudos
1 Reply
GeorgiannaStrode
Deactivated User
Scott, I'm not sure what the proper method is, but this works ok:

In IdentifyWidgetDrillDown.mxml, search for "idResult.icon".  Then make a small code change:


//idResult.icon = widgetIcon; 
// this sets all icons to the main widget icon, so comment it out. 

if (identifyResult.layerName == 'layer1')  // set this to your real layer name
{
idResult.icon = "icon1.png";  // set this to real icons
} else {
idResult.icon = "icon2.png";
}
0 Kudos