Hide Table of Contents
What's new in Version 2.2

The following are new features in version 2.2 of the ArcGIS API for JavaScript.

Continuous pan across dateline

The 2.2 API supports continuous pan across the dateline when working in the WGS84 geographic coordinate system or Web Mercator projected coordinate system. Sample

Continuous Pan

Integration with ArcGIS.com

The next release of the ArcGIS.com Map Viewer, slated for release within a matter of days, will allow you to define popups and save map notes inside the maps you build. When you reference an ArcGIS.com map ID in your JavaScript application, the popups and notes are immediately accessible. This allows you to design your popups interactively in ArcGIS.com instead of through code.

ArcGIS.com Popup ArcGIS.com Popup

Info Window

The 2.2 API offers an updated developer experience when working with info windows at 2.2 including:

  • InfoTemplate Added support for customization of the info window content. See the Info Window documentation for more details.
  • Extend the InfoWindowBase class to create custom info windows. Sample
Info Window Info Window

Enhanced Developer Productivity

At version 2.2, several widgets were enhanced to provide additional functionality.

Editing

  • AttributeInspector Enhanced at 2.2 to allow developers to define the following:
    • Define displayed fields
    • Define editable fields
    • Define a custom label
    • Add a tooltip
    • Provide a custom widget for a field.
    • Named CSS styles for easy UI customization

  • UndoManager Supports generic undo redo capabilities.
  • Editor
    • Supports undo/redo. Sample
    • Supports the enhanced attribute inspector. Sample
    • Enhanced support for editing features that are drawn by the map service and edited using the feature layer.
Attribute Inspector Editor

Temporal Rendering

Temporal rendering has been improved to support changing symbol size as time progresses.

Map Component Widgets

The BasemapGallery was enhanced at version 2.2 to support building custom user interfaces. Sample

API Enhancements

  • Localized widgets
  • Added onUpdateStart and onUpdateEnd events to the Map class. Sample
  • Client side area and length measurement

Mobile Support

Version 2.1 of the JavaScript API supported iOS, and the Andriod 2.2 native browser. At 2.2 the API supports the new Blackberry Torch (6.0) native browser. Key widgets such as the zoom slider, time slider, and geometric editing tools now work better on touch screen devices. Several new samples that use mobile frameworks like jQuery Mobile and dojox.mobile were added to the help along with a new mobile site where you can explore the samples and code gallery on your iOS, Android, or Blackberry Torch smart phone.

Version 2.2 also includes a new Gallery widget that provides a touch-aware thumbnail gallery for mobile devices. The widget displays a horizontal scrolling view of thumbnail images. Sample

Bug fixes and Enhancements

In addition to the new features, this release contains several bug fixes and enhancements:

  • NIM064417:In Internet Explorer, preforming a zoom after moving a feature used to cause the feautre to move back to its original location.(NIM064417)
  • The Geometry Service buffer operation fails if the outSpatialReference is not set. (NIM062685).

Show Modal