What's new in 2.2

The 2.2 version of the ArcGIS API for WPF is now available. This topic provides information on the changes between 2.2 and the previously released ArcGIS API for WPF version 2.1. This topic includes an introduction to the updates and enhancements included in 2.2, a complete list of changes, and also the issues resolved between the 2.1 release and the 2.2 release.

ArcGIS Server 10.0 is required to utilize the new functionality included with versions 2.0 and newer (that is, including 2.2) of the ArcGIS API for WPF. This includes editing, time-aware layers, closest facility, service areas, geometry service unions, and generalization. ArcGIS Server 9.3 and above is required for basic functionality included with the 1.x release, for example, basic mapping and query.

Updates and enhancements

The following enhancements are included in 2.2:

Wrap-around support in the map

The Map control now supports continuous pan across the dateline when the spatial reference is geographic World Geodetic System 1984 ([WGS84] WKID 4326), or Web Mercator (WKID 102100). To enable, set the WrapAround property on the Map control to true.

<esri:Map WrapAround="True">

Tiled map services, feature layers, and graphics layers are supported. Dynamic map services that support a spatial reference defined as well-known text (WKT) are supported. This includes ArcGIS Server 10 REST services. See the following screen shot:

At 2.2, the map supports wrap-around, allowing for pan and display across the dateline.

NoteNote:

Only one world frame can be in view at a time.

When the WrapAround mode for a Map control is true, map coordinates may be returned using absolute values outside real-world coordinates. Use the Geometry.NormalizeCentralMeridian method to normalize geometry to the correct coordinate space.

NoteNote:

All tasks, except GeometryService, automatically normalize input geometry.

Improved ArcGIS Online integration

ArcGIS Online viewers now support the creation of Map Notes with pop-up definitions to store information in a web map. In addition, pop-ups can be configured to reference attribute metadata and additional media for features in feature services and layers within dynamic and tiled map services. The Document class in the ESRI.ArcGIS.Client.WebMap library has been enhanced with additional attached properties to access this information and create a Map control with pre-configured layer functionality (such as generating MapTips for feature layers with pop-ups configured or providing pop-up content in a data template for layers in tiled or dynamic map services).

Web maps hosted on a Mobile Content Server are now also supported. Set the ServerBaseUrl property on the Document class in the ESRI.ArcGIS.Client.WebMap library to a valid endpoint (for example, http://arcgismobile.esri.com/arcgis/mobile/content).

New graphic shape types

With version 2.2, new graphic shape types were added. The new shapes include arrow, triangle, circle, and ellipses. They are available for both Draw and Editor classes and can be used by specifying the applicable DrawMode. See the following screen shot:

At 2.2, new shapes are added for Draw and Editor: arrow, circle, ellipse, and triangle.

Editor enhancements: rotate, scale, and distinguish graphic and vertex moves

In addition to the new shape types, the Editor class now supports additional interactive graphic editing, including rotations and scaling. When editing vertices, set the RotateEnabled property on the Editor to true for interactive rotation. For scaling of a graphic, set the ScaleEnabled property to true. When changing scale, it is common to want to maintain the aspect ratio of the graphic. Set another new property added to the Editor, MaintainAspectRatio, to true to maintain the aspect ratio. See the following screen shot:

Rotations and scaling are now supported on graphics.

With 2.2, it is now possible to distinguish between moves to a graphic as a whole and edits to individual vertices when the EditVertices command is active. The new MoveEnabled property on the Editor class specifies if a geometry can be moved, while the EditVerticesEnabled property specifies if the individual vertices can be edited.

In addition, a new EditGeometry class is available for more fine-grained control when editing graphics. For example, to start editing a graphic, enable the EditGeometry class and pass a graphic instance to the StartEditing method. To change the symbology of a vertex, scale box, scale point, or rotate symbol, set the respective property on the EditGeometry class.

Additional changes

A new method, FromJson, is available on the FeatureLayer, Renderer, and Symbol classes to create a native type from ArcGIS JSON. Likewise, a new method, ToJson, is available on Renderers and Symbols to generate ArcGIS JSON from native types.

NoteNote:

Not all properties of native types can be converted to ArcGIS JSON.

GraphicsLayer has a new GraphicsSource property to support binding to a collection of graphics.

Table information is available for stand-alone tables hosed in ArcGIS dynamic and tiled map services (ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer) through the Tables property on the layer.

The new ScaleLine control provides another option for interactively displaying the map scale. See the following screen shot:

New ScaleLine control

The new Attribution control provides an automated means for displaying layer attribution.

The MapAutomationPeer class is public to enable custom navigation and animation solutions.

A map control dragged from the toolbox and added to a design surface in Visual Studio or Expression Blend is preconfigured to contain the World Street Map tiled map service from ArcGIS Online.

Localization resources are available for messages and internal user interface (UI) text strings (text that cannot be modified via a control template). The following cultures are supported: Arabic (ar), German (de), Spanish (es), French (fr), Italian (it), Japanese (ja), Brazilian Portuguese (pt-BR), Russian (ru), and Simplified Chinese (zh-CN, zh-Hans).

A new Credentials property is now available on layers and tasks that reference services that utilize an HTTP authentication scheme.

Support for compression of web request and response content has been enabled. This capability was already being leveraged by the Silverlight platform.

Complete list of changes

For a complete list of changes in the API between versions 2.1 and 2.2, see the following assembly comparisons:

Resolved issues

The following issues are resolved in the 2.2 release:

Previous changes

For a complete list of what was updated in the prior version, see What's new in 2.1.

8/30/2011