Select to view content in your preferred language

Legend for Flex web app that is not a Flex Viewer App

644
1
08-23-2010 11:10 AM
CharlesHarris
Emerging Contributor
Hi all-

I'm trying to create a quick legend to describe the highlight of features for several different unique value renders of a particular set of data.  This is not inside of the Flex Viewer but on a page that I'm writing from scratch based on some of the examples on this web site.  I would envision a quick legend rising from the bottom when a "Highlight" button is pushed (See the included screenshot).  The legend for each set of highlights is static and does not change, it's based on the unique value render that is published as a service in ArcMap.  Please don't shoot me over the horrible look of this app, the buttons are just place holders for now and the look will be "tuned" once I get all of the functionality working.  Any ideas on what the best way to do this is?

Jeremy
Tags (2)
0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor
There are a couple of options. In the Flex API, there is a DrawingInfo field for LayerDetails. You can grab the renderer from there. Mr. Scheitlin has a great example of this in his DynamicLegendWidget. If you go through his widget, you can see how he parses the LayerDetails to get this information.
0 Kudos