OpenLayersTools.Vehicle

Implements methods for working with vehicles.

Summary
OpenLayersTools.VehicleImplements methods for working with vehicles.
Functions
VehicleInitialize the object of Vehicle.
addVehicleCreates and adds a marker of the vehicle on OpenLayers.Map
moveVehicleMoves existing marker vehicle to new coordinates
removeVehicleRemoves marker vehicle.
visibilityVehicleHides of displays the marker of the vehicle.

Functions

Vehicle

function Vehicle(parent)

Initialize the object of Vehicle.

Parameters

parentObject that is the parent of this class.

Returns

Object of Vehicle.

addVehicle

addVehicle: function (layerName,
coordinates,
attributes)

Creates and adds a marker of the vehicle on OpenLayers.Map

Parameters

layerNameThe layer name to which you want to add a marker.
coordinatesObject coordinates of the vehicle.
attributesThe object with the attributes of a marker.

Returns

TRUE if function successful.

moveVehicle

moveVehicle: function (layerName,
vehicleId,
coordinates)

Moves existing marker vehicle to new coordinates

Parameters

layerNameThe layer name to which you want to move a marker.
vehicleIdID of the vehicle to be moved.
coordinatesCoordinates in which to move the marker.

Returns

TRUE if function successful.

removeVehicle

removeVehicle: function (layerName,
vehicleId)

Removes marker vehicle.

Parameters

layerNameThe layer name to which you want to remove a marker.
vehicleIdID of the vehicle to be removed.

Returns

TRUE if function successful.

visibilityVehicle

visibilityVehicle: function (layerName,
vehicleId,
visibility)

Hides of displays the marker of the vehicle.

Parameters

layerNameThe layer name to which you want to hide\show a marker.
vehicleIdID of the vehicle to be hides\shows.
visibilityA flag that indicates whether to hide or display the marker.

Returns

TRUE if function successful.

function Vehicle(parent)
Initialize the object of Vehicle.
addVehicle: function (layerName,
coordinates,
attributes)
Creates and adds a marker of the vehicle on OpenLayers.Map
moveVehicle: function (layerName,
vehicleId,
coordinates)
Moves existing marker vehicle to new coordinates
removeVehicle: function (layerName,
vehicleId)
Removes marker vehicle.
visibilityVehicle: function (layerName,
vehicleId,
visibility)
Hides of displays the marker of the vehicle.
Close