Hide Table of Contents
About the API
Getting Started
Working with the API
Popups and Info Windows
Using the RouteTask
Using the Geoprocessor
Mobile
Recommendations
ArcGIS Server Services
What's New archive
The following are new features in version 2.1 of the ArcGIS API for JavaScript.
When you reference the ArcGIS JavaScript API version 2.1, you get access to Dojo 1.5.
Read more about Dojo 1.5 here for more information.
Several new out of the box widgets were added to enhance developer productivity.
View the API reference and sample for more details.
Added the following new properties, methods, events and constants to existing objects.
Added the
setTickCount
method to the TimeSlider. This method allows you to specify the number
of ticks to display on the slider.
Added the version property to ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, ArcGISImageServiceLayer, and FeatureLayer. Added the capability property to the ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer.
Added
minScale
and
maxScale
properties to LayerInfo.
The following new constants were added to the Draw toolbar:
The esri.request method's options argument has the following properties:
Updated the
esri.arcgis.utils.createMap
response object to include itemInfo with the following format:
itemInfo:{ item:<Object>, itemData:<Object> }
The createMap method appends base for all basemap layers and operational
for operational layers to the index of each layer in the map. This allows
you to easily access either the basemap or operational layers.
var layers = response.itemInfo.itemData.operationalLayers;
In addition to the additions above, this release contains several bug fixes and enhancements including the following: