function drawVehicle(vehicle) {
			let x = projection([vehicle.lon, vehicle.lat])[0],
				y = projection([vehicle.lon, vehicle.lat])[1];

			svg.append("svg:image")
				.attr("xlink:href", "assets/images/up-arrow.svg")
				.attr("id", vehicle.id)
				.attr("name", "vehicles")
				.attr("width", 10)
				.attr("height", 10)
				.attr("transform", " translate(" + x + ", " + y + ") rotate(" + parseInt(vehicle.heading) + ")");
		}
/**
		 * Plots the vehicle on the map. The vehicle svg is rotated
		 * according to the direction in which the vehicle is headed.
		 * @param {object} vehicle The vehicle object.
		 */
Plots the vehicle on the map. The vehicle svg is rotated
according to the direction in which the vehicle is headed.
@param {object} vehicle The vehicle object.
Plots the vehicle on the map . The vehicle svg is rotated according to the direction in which the vehicle is headed . @param { object } vehicle The vehicle object .
function drawVehicle(vehicle) {
			let x = projection([vehicle.lon, vehicle.lat])[0],
				y = projection([vehicle.lon, vehicle.lat])[1];
			svg.append("svg:image")
				.attr("xlink:href", "assets/images/up-arrow.svg")
				.attr("id", vehicle.id)
				.attr("name", "vehicles")
				.attr("width", 10)
				.attr("height", 10)
				.attr("transform", " translate(" + x + ", " + y + ") rotate(" + parseInt(vehicle.heading) + ")");
		}
function drawVehicle ( vehicle ) { let x = projection ( [ vehicle . lon , vehicle . lat ] ) [ 0 ] , y = projection ( [ vehicle . lon , vehicle . lat ] ) [ 1 ] ; svg . append ( "svg:image" ) . attr ( "xlink:href" , "assets/images/up-arrow.svg" ) . attr ( "id" , vehicle . id ) . attr ( "name" , "vehicles" ) . attr ( "width" , 10 ) . attr ( "height" , 10 ) . attr ( "transform" , " translate(" + x + ", " + y + ") rotate(" + parseInt ( vehicle . heading ) + ")" ) ; }
Plots the vehicle on the map.
Plots the vehicle on the map .