new alk.source.DriveTimePolygon(opt_options)
This constructor creates a Source object with which to access the ALK Drive Time Polygon Service.
| Option | Type | Description | 
|---|---|---|
| driveTimePolygonServiceOptions | alk.service.DriveTimePolygonService | This option contains the DriveTimePolygon service options with which to create the DriveTimePolygonService used internally. | 
| wrapX | boolean | undefined | Wrap the world horizontally. Default is  | 
Fires:
- 
            change
- This event is fired when after the request to the
                        alk.service.DriveTimePolygonServiceis processed and a feature is added.
- 
            change:driveTimePolygons
- Fires the 'change:driveTimePolygons' event when done processing the response.
- 
            change:updating
- This event is fired when the request is being made and when it returns.
Extends
- ol.source.Vector
Methods
- 
    addDriveTimePolygon(opt_options, success, failure)
- 
    This method combines the given options with the base options used to create this layer before making a call to the underlying DriveTimePolygonServiceService. The response is taken from the DriveTimePolygonServiceService call and handed off to alk.source.DriveTimePolygon#processResponsebefore being given to the 'success' callback given here.Name Type Description optionsalkx.DriveTimePolygonServiceOptions Option Type Description apiKeystring This option contains the ALK ApiKey that gives you permission to extract data from ALK Servers. datasetalk.val.Dataset | number | string The option contains the Dataset parameter for the Service. This option specifies an area dataset that may be pertinent to the request. hostURLstring This option contains the the host and port URL for the particular service. This option is not set by the user, but is automatically generated from the particular service being used. pathstring This option is the path part of the URL for the particular service. This option is not set by the user, but is automatically generated from the particular service being used. regionalk.val.Region | number | string This option tells the service in which region the retrieved data is to pertain. Some ALK Services switch underlying services due to this option. For instance, traffic data for North America and Europe may come from different underlying services. srsalk.val.SRS | number | string This option tells the service the particular projection that is used any GIS data given to the service. centerArray.<number> | string This option contains the center of the search. minutesnumber | string This option contains the number of driving minutes, with which to size the polygon. vehicleTypealk.val.VehicleType | number | string This option tells the service the type of vehicle that is requesting the route. routeTypealk.val.RouteType | number | string This option tells the service the type of the route requested. It can be alk.val.RouteType.Practicaloralk.val.RouteType.Shortest.highwayOnlyboolean | number | string This option tells the service to generate a route that will travel mostly along highways. avoidFavorsboolean | number | string This option tells the service whether or not to use avoids and favors while routing. overrideClassArray.<(alk.val.OverrideClass|number)> | string This option tells the service the classes of vehicle travel. Such as alk.val.OverrideClass.NationalNetworkoralk.val.OverrideClass.FiftyThreeFoot.distanceUnitsalk.val.DistanceUnits | number | string This option tells the service that any distance measurements will be delivered in these units, such as alk.val.DistanceUnits.Kilometersoralk.val.DistanceUnits.Miles.avoidTollsboolean | number | string This option tells the service to avoid toll roads and bridges while creating the route. openBordersboolean | number | string This option tells the service if the borders are open for travel. overrideRestrictboolean | number | string This option tells the service whether to override truck restrictions. hazMatalk.val.HazMat | number | string This option tells the service the hazardous material type. vehicleDimensionUnitsalk.val.VehicleDimensionUnits | number | string This option tells the service in what units, metric or otherwise, the vehicle measurements are presented. Can be either - alk.val.VehicleDimensionUnits.English- 12'6", 12.0 (feet)
 
- alk.val.VehicleDimensionUnits.Metric- 4.114 (meters)
 
 vehicleHeightnumber | string This option contains the height measurement of the vehicle. vehicleLengthnumber | string This option contains the length measurement of the vehicle. vehicleWidthnumber | string This option contains the width measurement of the vehicle. vehicleWeightnumber | string This option contains the weight measurement of the vehicle. axlesnumber | string This option contains the number of axles on the vehicle. truckConfigalk.val.TruckConfig | number | string This option specifies the particular vehicle configuration, such as alk.val.TruckConfig.FullSizeVan, etc.lcvboolean | number | string This option tells whether the truck is a multi-trailer or longer combination vehicle. elevationLimitnumber | string This option tells the service the distance above sea level to keep the route. Its value is interpreted according to the 'distanceUnits' option. afSetIdsArray.<(string|number)> | string This option lists the avoid/favor sets to the route. ferryDiscourageboolean | number | string This option tells the service to avoid ferries when creating the route. governorSpeedLimitnumber | string This option tells the service the maximum average road speed to use in route calculations that overrides all other road speeds when the are above this value. Default is disabled and valid values are between 1 and 100mph. TODO: Is this always in MPH when distanceUnits is Kilometers? tollDiscourageboolean | number | string This option tells the service to avoid tolls. Use 'avoidTolls'. classOverridesArray.<(alk.val.OverrideClass|number)> | string This option tells the service the travel class overrides. Use 'classOverrides'. routingTypealk.val.RouteType | number | string This option tells the route type. See alkx.RouteServiceOptions#routeType.hazMatTypealk.val.HazMat | number | string This option tells the service the HazMat conditions in effect. Use 'hazMat'. trkUnitsalk.val.VehicleDimensionUnits | number | string This option contains the measurement units for the vehicle. Use 'vehicleDimensionUnits'. trkHeightnumber | string This option contains the height of the vehicle. Use 'vehicleHeight'. trkLengthnumber | string This option contains the length of the vehicle. Use 'vehicleLength'. trkWidthnumber | string This option contains the width of the vehicle. Use 'vehicleWidth'. trkWeightnumber | string This option contains the weight of the vehicle. Use 'vehicleHeight'. trkAxlesnumber | string This option contains the number of axles on the vehicle. Use 'axles'. trkLCVboolean | number | string This option indicates whether the vehicle is a multi-trailer or longer combination. Use 'lcv'. successfunction failurefunction Fires:- 
            change:driveTimePolygons
- Fires the 'change:driveTimePolygons' event when done processing the response.
 
- 
    getDriveTimePolygonService(){alk.service.DriveTimePolygonService}
- 
- 
    setDriveTimePolygonService(service)
- 
  Name Type Description servicealk.service.DriveTimePolygonService