The following are new features in version 2.0 of the ArcGIS JavaScript API.
Note: The ArcGIS JavaScript for the Google Maps API and the ArcGIS Extension for Bing Maps have no changes at version 2.0.
If you are upgrading an application from version 1.x to 2.0 see the Migrating to Version 2.0 document.
To access the full functionality of the ArcGIS API for JavaScript 2.0, ArcGIS Server 10 services are required. Basic mapping, query functionality will work fine with ArcGIS Server 9.3 or above. However, to take advantage of new functionality like editing, time-aware layers, imagery, network analysis and the new GeometryService operations you need ArcGIS Server 10 services.
FeatureLayers are a new type of operational layer that can be created and added to your map. FeatureLayers extend graphics layers and work against a layer or table in a MapService or FeatureService. FeatureLayers support the following functionality:
For more information, see Working with feature layers.
At 10 a new service, FeatureService, was added to support template style editing. Several widgets have been added to support editing including the Editing widget , a configurable out of the box editing solution. Additional widgets that support editing:
For more information, see Editing using the ArcGIS Server JavaScript API.
Support has been added for time-aware layers and a new TimeSlider widget. Now you can query or display your time-aware layers using a particular slice of time. The TimeSlider provides an easy way to visualize temporal data. For more information, see Working with time-aware layers.
Support for closest facility and service area.
Enhanced image server capabilities.
Lots of new samples that show how to work with the editing functionality, feature layers and the new geometry service operations.
The GeometryService was greatly enhanced at 10 to support Web API client side editing. Several editing and topology operations were added to the GeometryService to support editing, such as reshape,convexHull,union and autoComplete. See the GeometryService help topic for a full list of new operations.
The lengths operation now supports geodesic distances. A distance operation was added to measure the planar or geodesic distance between geometries.
Spatial Reference objects now support wkt in addition to wkid.
Several mapping enhancements were added at 10 including: