Packageorg.openscales.core.routing
Classpublic class SampleRouting
InheritanceSampleRouting Inheritance AbstractRouting Inheritance Handler Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[override]
AbstractRouting
 InheritedendPoint : Marker
he routing end point
AbstractRouting
 InheritedendPointClass : Class
[write-only] set the picture behind the stop point
AbstractRouting
 InheritedforceStartPoint : Boolean
This attribute forces the itinerary to add/change the location of start point by a click event or when you call the addPoint Function
AbstractRouting
 InheritedintermedPointClass : Class
[write-only] set the picture behind intermediary point
AbstractRouting
 Inheritedmap : Map
[override]
AbstractRouting
 InheritedresultsLayer : VectorLayer
The layer which contains the results of the request
AbstractRouting
 InheritedstartPoint : Marker
the routing start point
AbstractRouting
 InheritedstartPointclass : Class
[write-only] Set the picture behind the start point
AbstractRouting
 InheritedtoggleHandlerActivity : Function
Getter and setter of the callback function used when the handler's activity changes
Handler
Public Methods
 MethodDefined By
  
SampleRouting(map:Map = null, active:Boolean = false, resultsLayer:VectorLayer = null)
SampleRouting
 Inherited
To add an intermediary point to the itinerary
AbstractRouting
 Inherited
addIntermediaryPoints(intermedPointsArray:Vector.<PointFeature>):void
To add an array of intermediaries point to the itinerary
AbstractRouting
 Inherited
AbstractRouting
 Inherited
AbstractRouting
 Inherited
Number of intermediary points
AbstractRouting
 Inherited
for refreshing the itinerary
AbstractRouting
 Inherited
To remove an intermediary point from the itinerary
AbstractRouting
 Inherited
removeIntermediaryPoints(intermedPointsArray:Vector.<PointFeature>):void
To remove an array of intermediary point from the itinerary
AbstractRouting
  
[override] his function returns the points list ordered by distances from the start point
SampleRouting
  
sortOnValue(a:Number, b:Number):Number
SampleRouting
Protected Methods
 MethodDefined By
 Inherited
displayResult(results:Vector.<Point>):void
This function displays the request's results on the concerned layer
AbstractRouting
 Inherited
Add the listeners to the associated map
Handler
 Inherited
Remove the listeners to the associated map
Handler
Constructor Detail
SampleRouting()Constructor
public function SampleRouting(map:Map = null, active:Boolean = false, resultsLayer:VectorLayer = null)



Parameters
map:Map (default = null)
 
active:Boolean (default = false)
 
resultsLayer:VectorLayer (default = null)
Method Detail
sendRequest()method
override public function sendRequest():void

his function returns the points list ordered by distances from the start point

sortOnValue()method 
public function sortOnValue(a:Number, b:Number):Number

Parameters

a:Number
 
b:Number

Returns
Number