The following are new features in version 1.4 of the ArcGIS JavaScript API.
Version 1.4 allows for connections to Microsoft Virtual Earth map layers and geocoding. The Virtual Earth road and aerial maps can add detailed context to your Web applications, while the Virtual Earth geocoder can place points on the map from addresses or place names.
Virtual Earth services require a subscription, as well as an extra page configured on your Web server that allows you to get authentication tokens.
New classes include:
The ArcGIS JavaScript API can now work with ArcGIS Server network analysis services to find routes and driving directions. The routing is done through the new Route Task and its associated classes. The Route Task makes it easy to do simple point-to-point routing and get driving directions. Because ArcGIS Network Analyst does the routing work on the server, you can also do complex routing that avoids barriers, complies with time windows, and finds the best path to multiple stops.
New classes include:
A renderer defines how you symbolize a set of graphics. Previously with the ArcGIS JavaScript API, you had to symbolize each graphic separately as it was added to the map. Now you can choose to do the work with renderers that automatically supply symbology based on attributes in your data. The simple renderer, unique value renderer, and class breaks renderer included with Version 1.4 make it easier to do thematic mapping with the ArcGIS JavaScript API. For more information, see Symbolizing graphics with renderers.
New classes include:
Version 1.4 supports multiple graphics layers in the map, which makes it much easier to organize different types of graphics. For example, you can put polygon graphics representing counties in one graphics layer and point graphics representing traffic incidents in another graphics layer. Then you can easily add or remove either layer as needed.
Updated classes include:
renderers
property.graphicsLayerIds
property. Other changes include the first parameter in reorderLayer
is Layer instead of id; the addLayer
method returns Layer.The following updates were made to the Geometry classes:
setSpatialReference
method returns Geometry
.update
; setX
and setY
methods return Point.addPoint
method returns Multipoint.insertPoint
and setPoint
; addPath
method returns Polyline.insertPoint
and setPoint
; addRing
method returns Polygon.update
method returns Extent.The following changes were made to namespace classes:
geographicToWebMercator
, getScale
, and webMercatorToGeogrpahic
.The return object dojo.Deferred was added to asynchronous task methods. This object monitors the status of a request and manages the communication of asynchronous threads. Classes that have methods that return dojo.Deferred object include:
Performance improvements in drawing vector graphics in Internet Explorer. Drawing graphics with polygons is approximately twice as fast at 1.4 as compared to earlier versions of the API.
When you reference the ArcGIS JavaScript API in your code, you also get a reference to version 1.3.1 of the Dojo Toolkit.
The following are the identification numbers and summaries for bug fixes and enhancements in version 1.4: