# ImageDrapingLayer
The ImageDrapingLayer allows you to add style to an image draping type element.
API Reference
# Type
The ImageDrapingLayer is of the type draping.
# Example
// style it with an image draping
let imageDrapingLayer = new ImageDrapingLayer({
getPlatformLocation: {
dataSourceIds: [platformLocationDataSource.getId()],
handler: function (rec) {
return {
x: rec.loc.lon,
y: rec.loc.lat,
z: rec.loc.alt - 184
};
}
},
getPlatformOrientation: {
dataSourceIds: [platformOrientationDataSource.getId()],
handler: function (rec) {
return {
heading : rec.attitude.yaw,
pitch: rec.attitude.pitch,
roll: rec.attitude.roll
};
}
},
getGimbalOrientation: {
dataSourceIds: [gimbalOrientationDataSource.getId()],
handler: function (rec) {
return {
heading : rec.attitude.yaw,
pitch: rec.attitude.pitch,
roll: rec.attitude.roll
};
}
},
cameraModel: {
camProj: new Matrix3(747.963/1280., 0.0, 650.66/1280.,
0.0, 769.576/738., 373.206/738.,
0.0, 0.0, 1.0),
camDistR: new Cartesian3(-2.644e-01, 8.4e-02, 0.0),
camDistT: new Cartesian2(-8.688e-04, 6.123e-04)
},
icon: 'images/car-location.png',
iconAnchor: [16, 40],
imageSrc: videoCanvas,
name: 'Solo draping'
});