Table of Contents - Legend Widget for FlexViewer 2.x

115564
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
MicahWilliamson
Occasional Contributor II
Rob:
Long time user, first time poster 😄

I'd like to do two things,

  1. Lock the TOC from being closed.

  2. make it narrower and taller.


is this something i can customize if i download the uncompiled version?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Micah,


  1. Yes by adding the enableCloseButton="false" to the WidgetTemplate.

  2. This can be done my adding a height and width attribute to the widget in the main config.xml (no coding required).

0 Kudos
MicahWilliamson
Occasional Contributor II
Thanks for the awesome response,

Do you mean in the tocsettings  like this?
    <tocsettings>
        <expanded everything="true">true</expanded>
        <collapselegends>false</collapselegends>
        <disablezoomtomenuoption>false</disablezoomtomenuoption>
<enableCloseButton="false">false</enableCloseButton>
    </tocsettings>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Micah,

   Sorry for the confusion, but no. I meant that you do need the source code for number one and the enableCloseButton goes in the mxml code as an attribute of the WidgetTemplate Element.
0 Kudos
Erickson_Contract_Surveying_
New Contributor
I realize we can control the zoom percentage, but is the a way to get zoom (when clicking on result) to honor autoswitchto set in main config?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Monty,

   You definitely have me confused... The autoswitchtoscale and forcescaleonswitch are associated with the Enhanced Basemap switcher what does this have to do with the TOC Widget? What are you talking about:
is the a way to get zoom (when clicking on result)
Are you meaning the "zoom to" or "zoom to make visible" in the TOC popup menu?
0 Kudos
Erickson_Contract_Surveying_
New Contributor
Monty,

   You definitely have me confused... The autoswitchtoscale and forcescaleonswitch are associated with the Enhanced Basemap switcher what does this have to do with the TOC Widget? What are you talking about:  Are you meaning the "zoom to" or "zoom to make visible" in the TOC popup menu?



Sorry wrong post.  I will repost in eMapSwitcher or eSearch.  My question is:  how to make eSearch widget honor autoswitchtoscale when you click on the results and it zooms in?
0 Kudos
MicahWilliamson
Occasional Contributor II
Rob:

Does the widget work with Popups configured?
0 Kudos
MichaelLee
New Contributor
I am using the 2.5.1.1 version of this widget as well as 2.5 Viewer for Flex Compiled version on ArcGIS Server 10.0

Two questions about this widget.

1. Can I change the color when selecting a layer (as seen in attachment) from white to something else within the Compiled version, or are my two options to change overall color scheme -or- make changes using uncompiled version?

2. I noticed that in your (Robert's) http://gis.calhouncounty.org/FlexViewer3.0 TOC/Legend example site you have the TOC/Legend data synced up with the data toc that is controlled by the MapSwitcher widget.......layerlist visible="true". In other words, when a layer is turned on in one, that command is reflected in the other. Can I do this in the 2.5 Compiled Viewer for Flex? If so, how?

Thanks in advance!

Michael Lee
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Micah,

   Are you having some issue? Yes it is supported.
0 Kudos