Hide Table of Contents
Tutorials
About the API
Work with the API
Graphics and feature layers
Popups and Info Windows
Geoprocessor
Operations Dashboard
Create extensions
Mobile
ArcGIS Server Services
References
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.
setTickCount method to the TimeSlider. This method allows you to specify the number of ticks to display on the slider.
version property to ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, ArcGISImageServiceLayer, and FeatureLayer. Added the capability property to the ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer.
minScale and maxScale properties to LayerInfo.
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: