What was new in 2.4 Viewer

This page describes an older version, please read about the latest version at:
http://resources.arcgis.com/en/help/flex-viewer/concepts/
LegacyLegacy:

This topic refers to a previous version of the ArcGIS Viewer for Flex ("the Viewer").

ArcGIS Viewer for Flex 2.4 - release notes

New and improved

  • New Geoprocessing widget.
  • Clustering on feature layers. See layer tag.
  • Configuring definition expression on sublayers within a layer of type="dynamic" (an ArcGIS Dynamic map Service). See layer tag.
  • Configuring the widget size.
  • KML Layer - the <layer> tag supports type="kml".
  • New sample widget (TestOpenClose) showing how to programatically get a widget ID, and close or open a widget.
  • Navigation component has been updated to use spark SliderBase instead of mx:Slider as the "slider" skin part. If you are using a custom navigation skin, it will need to be updated.
  • Support for four new locales have been added - Arabic, Brazilian Portuguese, Italian and Russian - to the existing six locales.
  • For compiled users, the locale resource bundles are loaded at runtime. This makes for a slightly smaller compiled application. Make sure your HTML wrapper includes the two flashvars as below. Note that resourceModuleURLs is a new property and lcoaleChain was earlier optional. Both are now required. For an example, "View Source" for index.html. This does not affect developers working with the source code.
    flashvars.localeChain = "en_US";
    flashvars.resourceModuleURLs = "assets/locale/en_US.swf";
    

Bug fixes

  • Color of hyperlinks in popup windows remain the same even after clicking the link. [Ref: forum post]
  • Multiple bug fixes related to widget layout locations and run-away widgets. Widgets can be place anywhere even when the overview map widget is open. Floating and vertical layouts don't experience run-away widgets. [Ref: forum post]

Changes/Fixes:

General changes

  • Version 2.4 of the Viewer is built with version 2.4 of the ArcGIS API for Flex.
  • Compiling the source code requires Adobe Flex 4.1 or above. This is to support Arabic and other right-to-left locales. Note that the API itself still works with 4.0, 4.1 as well as 4.5.
  • New better way for widgets to dispatch events:
    // OLD:
    ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_OPT_LAYERS, null, getOplayers));
    // NEW:
    AppEvent.dispatch(AppEvent.DATA_OPT_LAYERS, null, getOplayers);
    
  • Widget placement can be set using verticalcenter and/or horizontalcenter property on the <widget> tag in the main configuration file.
  • RemoteClass metadata tag removed from where it is not needed.
  • New function on the IWidgetContainer interface.
  • Minimized widgets show widget title and icon, instead of just the icon with a tooltip for the title.
  • Initial "view" of Search and Locate widget can be set in widget configuration file. [Ref: forum post]

Localization changes

  • Small adjustments have been made to the resource files. If you created your own ViewerStrings.properties file into another language, you should compare the 2.3 English version with the updated 2.4 English version.
  • For localization into right-to-left (RTL) languages, we provide RTL versions of several icons used in the viewer. See Further Localization for more information.

Data Extract Widget changes

  • Input graphics can be cleared using the context menu (right-click).
  • Closing the widget will un-select any currently selected draw icon.
  • The name of the extracted file can be set in the widget configuration file.

Draw Widget changes

  • Input graphics can be cleared using the context menu (right-click).

Edit Widget changes

  • Attachment sizes are calculated based on 1,024 bytes in a kilobyte.

HeaderController Widget changes

  • Rewritten using Spark components instead of mx components.
  • Title and subtitle place themselves better if one is missing.

Locate Widget changes

  • Initial "view" can be set in widget configuration file.

MapSwitcher Widget changes

  • The table of contents displays upward when MapSwitcher is placed at bottom of application.

Overview Map Widget changes

  • The overview map widget can be placed in any of the four corners.

Search Widget changes

  • Closing the widget will un-select any currently selected draw icon.
  • Initial "view" can be set in widget configuration file. [Ref: forum post]

2/15/2012