Select to view content in your preferred language

Table of Contents - Legend Widget for FlexViewer 2.x

183242
664
12-01-2010 07:30 AM
RobertScheitlin__GISP
MVP Emeritus
All,

Here is the next in my line of widgets for the FlexViewer 2.x.

The legend portion of this widget is the same code as my dynamic legend widget so,

IT IS FOR ARCGIS SERVER 10 OR GREATER ONLY

This is just a simple TOC Widget that includes my dynamic legend component.
This widget also includes my enhancement for map service transparency,
right click context menu for zoom to make layer visible, and my scale
dependent renderer for the TOC checkboxes.
Tags (2)
0 Kudos
664 Replies
RobertScheitlin__GISP
MVP Emeritus
Chris,

   On my dynamic legend widget I provide a public function called exportImage. I did not add it to this widget though. The biggest issue would be to get a reference to the widget itself so you could call the function. I have several posts that give you functions and where to but them in the viewer to be able to get a widget instance based on it's label.
0 Kudos
ChrisBruce
Regular Contributor
Thanks for the tips Robert.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   My new version 2.3.5 that combines the TOC and Legend is now available as well as other improvements.
0 Kudos
DanielMunoz
Regular Contributor
Has any one else experienced the same situation? Is it designed this way?
if you turn off the Recreation group layer from the Table of Contents - Legend Widget, the facilities layer turns off also, but if you turn back on the Recreation group the facilities layer do not come back, the only way to turn them back on is to turn them off and on from the operational layer.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Daniel,

   Hmm... I didn't notice that before. The reason is obvious to me as the developer, the facilities layer is in the excludeLayers. Now to figure out what to do this issue...
0 Kudos
LeeAllen
Frequent Contributor
Before I get to the error...Thanks for bringing this together!!!  Thanks for your efforts on this, truly appreciated!

I also have an issue Robert.  I can get the widget to load up, but it does not show all symbols for the layers, and randomly picks a symbol for one layer??  I also can't get the exclude layer to work, code is at the bottom.  FYI-all data works great in version 2.3.4.

[ATTACH=CONFIG]7233[/ATTACH]
<configuration>
    <labels>
        <visibilitylabel>Crime</visibilitylabel>
        <legendlabel></legendlabel>
        <alphatooltip>Select map layer to set opacity</alphatooltip>
        <metadatatooltip>Show details</metadatatooltip>
        <zoomtoextent>Zoom To Layer Extent</zoomtoextent>
        <zoomtomakevisible>Zoom To Make Visible</zoomtomakevisible>
    </labels>
    <tocsettings>
        <expanded>true</expanded>
        <showdescitptionbutton>false</showdescitptionbutton>
    </tocsettings>
    <legendtimeout>360</legendtimeout>
    <excludelayers>
        <excludelayer mapservice="Info">0</excludelayer>
    </excludelayers>
    <excludegraphiclayers>true</excludegraphiclayers>
    <excludebasemaplayers>true</excludebasemaplayers>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lee,

   I am try to find time to fix these issue but am having a hard time finding time. My suggestion is go back to the old version until I get this worked out.
0 Kudos
NathanEnge
Esri Contributor
...also here's another "bug". Although it could be intentional..
if there is a mapservice republished in another mapservice, that entire mapservice does not show up in the legend.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nathan,

   You should never publish a map service inside another map service. Just not good practice...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   Please try out the latest version 2.3.6 and see if it resolves the reported issues. If not keep the feedback coming and I will fix whatever I can.
0 Kudos