Printer Friendly Version      Send     
Click to Rate and Give Feedback
Virtual Earth Map Control SDK, version 6.1
VERouteOptions Properties

The properties of the VERouteOptions class are listed here. For a complete list of VERouteOptions class members, see the VERouteOptions Class topic.

Property Description

VERouteOptions.DistanceUnit Property

A VERouteDistanceUnit Enumeration value specifying the units used by the route. Optional. The default value is VERouteDistanceUnit.Miles.

VERouteOptions.DrawRoute Property

A Boolean value specifying whether the route is drawn on the map. The default value is true, which means the route is drawn on the map.

VERouteOptions.RouteCallback Property

The name of the function called when the method has generated the route. Optional. The default value is null. The called function receives a VERoute Class object.

VERouteOptions.RouteColor Property

The VEColor Class object specifying the color of the route line. The default value is default is VEColor(0,169,235,0.7).

VERouteOptions.RouteMode Property

A VERouteMode Enumeration value specifying the mode of route to return. The default value is VERouteMode.Driving.

VERouteOptions.RouteOptimize Property

A VERouteOptimize Enumeration object specifying how the route is optimized. The default value is VERouteOptimize.MinimizeTime.

VERouteOptions.RouteWeight Property

The thickness, in pixels, of the route line. The default value is 6 pixels.

VERouteOptions.SetBestMapView Property

A Boolean value specifying whether the map view is set to the best view of the route after it is drawn. The default is true, which means that the map view is set.

VERouteOptions.ShowDisambiguation Property

A Boolean value specifying whether a disambiguation dialog box is shown. Optional. The default value is true, which means the disambiguation dialog box is shown. If false, no disambiguation dialogs are displayed and the route uses the first geocoded response for each location.

VERouteOptions.ShowErrorMessages Property

Whether to show any error messages. The default value is true.

VERouteOptions.UseMWS Property

A Boolean value specifying whether to use the MapPoint Web Service to generate the route. The default value is false.

VERouteOptions.UseTraffic Property

A Boolean value specifying whether to calculate the route using traffic information. The default value is false.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker