This is my TOC/Legend widget for Flex Viewer 3.x Initial Release: 12-1-2010
Version 3.1.5 - Feb 4, 2013
- Fixed issue with turning on or off sublayers of a group.
Version 3.1.4 - Jan 25, 2013
- Added IdentityManager token support for Secure Services.
Version 3.1.3 - Jan 24, 2013
- A big re-write of this widgets code base.
- Improved mousewheel scrolling speed
- Added partial/Beta Support for token Security. If you have a token in the url or in the main config.xml then the widget will use it. This widget does not yet support Idenity Manager supplied tokens.
- Fixed Bug when using this widget and the OTB esri Legend widget with a scale dependant layer.
Version 3.1.2 - Dec 24, 2012
- Fixed issue with FeatureLayers not showing in the TOC.
- Fixed rare bug where a unique value renderer is used and only one classs is specified.
- Now supports shapefiles labels using an annotation symbol when added via the ShapeFilesWidget.
- New GeoRSSLayer and CSVLayers are now supported.
Version 3.1.1 - Dec 20, 2012
- Now supports shapefiles added via the ShapeFilesWidget
Version 3.1 - Dec 17, 2012
- Recompiled for Flex Viewer 3.1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! READ THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
*
- MAJOR CHANGE in this 3.0 version of the TOC Widget *
- You CAN NOT use this widget with the LayerListWidget and or MapSwitcherWidget with the layerlist visible="true" *
- Although it will function layer reordering with may throw errors as synchronizing between map layer reorders has issues *
-
*
- It is your responsibility to disable the layerlist portion of the MapSwitcherWidget or eMapSwitcherWidget by setting the *
- *
- Also ensure you do not use the TOCWidget with the LayerListWidget. *
-
*
Version 3.0i - 5 Sept, 2012
- Recompiled for Flex Viewer 3.0 with no locale specified
Version 3.0 - 13 June, 2012
- Recompiled for Flex Viewer 3.0
- Fixed some disableZoomMenu option issues
Version 2.5.1.1 - 7 May, 2012
- Fixed bug with sublayers having a description option when usenewesridescription is true.
Version 2.5.1 - 4 May, 2012
- Fixed bug with loading legend remaining when there is no operational layers or when a WMS layer is used or when a layer fails to load due to some error.
- MAJOR CHANGE when a layer of a map service or the whole mapservice is excluded using the excludelayers it is excluded from the TOC and the map. This has changed from where it use to be visible in the map even though it was excluded from the TOC. Clarification If you want to exclude a whole map service from the toc and the map then you just remove it from the viewers main config. Currently if you exclude a map service and do not specify any sublayers then the mapservice will remain in the map.
- Mapservices are ordered in reverse order of what you have in the main config.xml, just like esri's layerlist and map switcher.
- There is a new 'everything' attribute on the tocsettings expanded tag. This forces all layer/sublayer/legends to be opened. If you use the everything="true" attribute than the collapselegends is ignored. There are still situations where a map service will fail to expand due to some network delay occurring for that map service.
- Individual Layer of a Map Service now have a TOC menu for zooming to its extent.
Version 2.5.0.2 - 23 Mar, 2012
- Added support to mimics esri's concerning hiddenLayers_ being removed automatically from the TOC
- Added support to mimics esri's concerning updating the TOC when programmatic changes to layer visibility is made.
Version 2.5.0.1 - 27 Feb, 2012
- Fixed the issue where featurelayers are always added to the top of the TOC. Now featurelayers are added in the exact order that they appear in the config.xml.
Version 2.5 - 12 Dec, 2011
- Added new Flex Viewer 2.5 Layer menu capability to TOC.
- Enhanced the visual appearance of the out of the box Flex Viewer 2.5 Layer options menu and added more options.
Version 2.4.5 - 9 Nov, 2011
- Fix changes to label in xml file not being honored.
Version 2.4.4 - 22 Sept, 2011
- Fix for PictureMarkerSymbols comming from a 10.0 Server.
Version 2.4.3 - 2 Sept, 2011
- Fix for WMS and Image Services constantly displaying the generating legends message.
- Fix for scale dependent layers label not being readable when end user is using white as widget background color.
Version 2.4.2 - 1 August, 2011, 8:40 PM
- Fix for the disappearing labels
- TOCWidget now respects what has been set in the MapSwitcherWidget and vise versa.
- Minimal support for KML layers has been added. Legend swatches are not supported yet as the API's support of KMLLayer is not matured yet.
- Uncompiled code is written for Flex Viewer 2.4 ONLY!
Version 2.3.9.2 - 1 August, 2011, 8:40 PM
- This probably will not happen ever again but I wanted to have a good stable Flex Viewer 2.3.1 version of this widget available so I have added the compiled version with the memory leak fix and the follow-up fix for the disapearing labels.
- Uncompiled code is written for Flex Viewer 2.4 ONLY!
Version 2.4.1 - 1 August, 2011, 3:10PM
- Fixed memory leak issue
- added back in the 2.3.1 compiled version since I have such a grievous code error, for those that have not yet updated to the Flex Viewer 2.4.
- Fixed issue with REALLY long layer labels and placement of the Details button.
Version 2.4 - 29 July, 2011
- Recompiled for Flex Viewer 2.4
Version 2.3.9.1 - 19 July, 2011
- Fixed a item alignment issue in the TOC
Version 2.3.9 - 12 July, 2011
- Added exit code for people still using ArcGIS Server 9.3.1 or lower so that the Generating Legends message was not be stuck on the widget. (Legend swatches will not be gerated for Server 9.3.1 or lower).
Version 2.3.8.6 - 6 July, 2011
- Added Ability to collapse ALL legend symbology
- Added new context menu for "expand all layers" and "collapse all layers"
- Changed the expand and contract icon for legends to the plus and minus (like in ArcMap).
Version 2.3.8.5 - 1 July, 2011
- Added Ability to collapse legend symbology is more than one symbol is present for a layer
- Added ability to have all collapsible legend symbology collapsed at startup based on TOCWidget.xml setting.
Version 2.3.8.4 - 23 June, 2011
- Slowed down mouse wheel scroll speed
- Added generic legend support for Dimension, Annotation, Raster Catalog, and Tiled Raster Basemaps
- I am not real happy with the Tiled Raster Basemaps but the way esri currently returns legend info is not real conducive to legend generation. Maybe 10.1 of server will fix this.
Version 2.3.8.3 - 21 June, 2011
- Fixed issue with excluding multiple sublayers of a dynamic map service.
- Added a busy indicator and message for large complicated legends.
Version 2.3.8.2 - 21 June, 2011
- More optimization of the layout to use less vertical and horizontal space.
Version 2.3.8.1 - 20 June, 2011
- Fixed Horizontal clipping issues when tree leafs were collapsed.
Version 2.3.8 - 11 June, 2011
- Fixed Horizontal and vertical scrolling issues.
- Enhanced layout of TOC swatches and checkboxes.
- Cleaned up lots of unused portions of the code.
- TOC Item label is gray when item is scale dependent.
Version 2.3.7.2 - 10 June, 2011
- Fixed ZoomToMakeVisible context menu when using cached/tiled base maps.
- Feature layers now only have one checkbox at the parent map service that show Scale dependency and has context menus.
Version 2.3.7.1 - 9 June, 2011
- Fixed Scale Dependent Checkbox Icon.
- Depreciated TOC updates from programmatic changes to layer visibility due to issues with this code.
Version 2.3.7 - 9 June, 2011
- Fixed some more TOC Swatch rendering issues.
- TOC now updates to programmatic changes to layer visibility.
Version 2.3.6 - 8 June, 2011
- Fixed some TOC Swatch rendering issues
- Whole map services AND/OR INDIVIDUAL layers can be excluded from the toc AND STILL BE DRAWN ON THE MAP.
Version 2.3.5 - 7 June, 2011
- TOC and Legend are now merged.
- Feature Layers are handled more completely.
- If a layer only has on swatch than it is added next to the layer name saving space in the TOC.
- Metadata/Description for map services and layers are now shown in a custom sizable window instead of a alert dialog as previous version.
- Whole map services AND/OR INDIVIDUAL layers can be excluded from the TOC.
- The mx tree has about 99 bugs that are unresolved so there are some issues with scrolling the TOC and right click context menu operation. These a Adobe Flex SDK issues and cannot be resolved by me at this time.
Version 2.3.4 - 2 June, 2011
- Removed white background from legend.
- Added ability to exclude base maps from the legend (this is now the default).
- Verified that classified rasters are now supported if you are using ArcGIS Server SP1 or greater
- Set the legend timeout to 60 Seconds for those with slow servers (configurable in xml)
- Added better handling of layers that come from a slow server when it comes to building the legend
- Added ability to internationalize the text for transparency slider tooltip, layer details button tooltip, Context menus.
- Transparency/Opacity is now controlled by one slider at the top of the widget. You but select a map service in the TOC for it to become enabled.
- Added Zoom to Layer Extent context menu for individual map service layers
- Added Map Service description button and individual layer description and copyright alert when details button is pressed. Details button can be disabled in TOCWidget.xml
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! IMPORTANT ALL elements names in the TOCWidget.xml are now lowercase to stay with esri standards !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Version 2.3.3 - 26 May, 2011
- Added tooltip to TOC Map Layers if the layer has a description and/or copyright.
- Fixed bug with legend getting cut off horizontally if labels are long.
Version 2.3.2 - 21 May, 2011
- Added back exclude layer from TOC capability.
Version 2.3.1 - 6 May, 2011
- Added support for legend generation whether you have ArcGIS Server 10 or 10 SP1
- Implemented other esri best practices.
- New version will no longer include compiled code for old versions of the viewer.
Version 2.2.2 - 26 January, 2011
- Added exclude layer support. This is WHOLE map service exclude capability ONLY
- Changed packaging of widget so that assets are included in widget folder for easier moving of widget to new versions of the Flex Viewer.
Version 2.2.1
- Fixed issue with using the wrong code base for the FV2.2 compiled version and the uncompiled version. Exclude base maps and other options are back again.
Version 2.2
- Added a compiled version for both Flex Viewer 2.1 and 2.2
Version 2.1.1
- Fixed bug with uncompiled version where layerAlpha was looking for the widgetclosebuttonskin in the wrong place.
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.
To install using the compiled version just copy the folder called TOC under the Widgets folder, and add this line to your config.xml
For the Uncompiled you need to copy the TOC folder to src/widgets then add TOCWidget.mxml to your flex projects modules list, and compile your project as well as add the widget line above to your config.xml.
Enjoy Robert Scheitlin