Implements methods for working with vehicles.
OpenLayersTools. | Implements methods for working with vehicles. |
Functions | |
Vehicle | Initialize the object of Vehicle. |
addVehicle | Creates and adds a marker of the vehicle on OpenLayers.Map |
moveVehicle | Moves existing marker vehicle to new coordinates |
removeVehicle | Removes marker vehicle. |
visibilityVehicle | Hides of displays the marker of the vehicle. |
addVehicle: function ( layerName, coordinates, attributes )
Creates and adds a marker of the vehicle on OpenLayers.Map
layerName | The layer name to which you want to add a marker. |
coordinates | Object coordinates of the vehicle. |
attributes | The object with the attributes of a marker. |
TRUE if function successful.
moveVehicle: function ( layerName, vehicleId, coordinates )
Moves existing marker vehicle to new coordinates
layerName | The layer name to which you want to move a marker. |
vehicleId | ID of the vehicle to be moved. |
coordinates | Coordinates in which to move the marker. |
TRUE if function successful.
visibilityVehicle: function ( layerName, vehicleId, visibility )
Hides of displays the marker of the vehicle.
layerName | The layer name to which you want to hide\show a marker. |
vehicleId | ID of the vehicle to be hides\shows. |
visibility | A flag that indicates whether to hide or display the marker. |
TRUE if function successful.
Initialize the object of Vehicle.
function Vehicle( parent )
Creates and adds a marker of the vehicle on OpenLayers.Map
addVehicle: function ( layerName, coordinates, attributes )
Moves existing marker vehicle to new coordinates
moveVehicle: function ( layerName, vehicleId, coordinates )
Removes marker vehicle.
removeVehicle: function ( layerName, vehicleId )
Hides of displays the marker of the vehicle.
visibilityVehicle: function ( layerName, vehicleId, visibility )