Specialised vector layer which allows simple adding of a route.
| Inherits from: | OpenLayers.Layer.Vector |
| EMS. | Specialised vector layer which allows simple adding of a route. |
| Constants | |
| EVENT_TYPES | {Array} |
| Properties | |
| style | {Object} Line style use to draw the route. |
| Constructor | |
| EMS. | Create a new vector layer |
| Functions | |
| setRoute | |
| getRoute | {EMS.Route} The current route response held. |
| clearRoute | Clears the current route off the layer, releasing all resources. |
| setVisibility | Override of super class method to ensure that if the layer was previously not visible and is turned on, that route information is refreshed. |
| Constants | |
| DEFAULT_STYLE | Default vector style used when rendering the route line. |
{Object} Line style use to draw the route. This will default to EMS.Layer.Route.DEFAULT_STYLE if nothing was passed in as an option.
setRoute: function( route )
| route | {Mixed} This maybe an {Object} representing a route request, a {String} which is an existing route handle, an {Array} of waypoints or an EMS.Route object. |
getRoute: function()
{EMS.Route} The current route response held. This may return null if nothing was set.
setRoute: function( route )
{EMS.Route} The current route response held.
getRoute: function()
Clears the current route off the layer, releasing all resources.
clearRoute: function()
Override of super class method to ensure that if the layer was previously not visible and is turned on, that route information is refreshed.
setVisibility: function( visibility )