ProjectedLayer

Projected layers are draped onto other data from the given perspective

Constructor

new ProjectedLayer(properties, showFrustumopt, chromaKeyingopt, chromaKeyopt, chromaKeyToleranceopt)

construct a projected layer that will project a three.js onto other loaded geospatial data from the given perspective.
Parameters:
NameTypeAttributesDefaultDescription
propertiesObject
Properties
NameTypeAttributesDefaultDescription
idString | Numberlayer id should be unique
nameStringthe name can be anything you want and is intended for labeling
textureTHREE.Texture<optional>
nulla three.js texture
fovNumber<optional>
20frustum vertical field of view of the video camera.
farNumber<optional>
3000maximum distance for projecting the texture in meters
cameraLLHTHREE.Vector3<optional>
new THREE.Vector3(0,0,0)the position of the camera in longitude (degrees) latitude (degrees) height (meters)
yawNumber<optional>
0Yaw angle in degrees
pitchNumber<optional>
-90Pitch angle in degrees.
rollNumber<optional>
0Roll angle in degrees.
depthTestBoolean<optional>
truedepth test prevents drawing the projected texture behind occluders but the precision is limitted at long distances
visibleBoolean<optional>
truelayer will be rendered if true (true by default)
showFrustumBoolean<optional>
trueshow the projection camera frustum
chromaKeyingBoolean<optional>
falseuse chroma key (green screen)
chromaKeyTHREE.Vector3<optional>
new THREE.Vector3(0.5,1.0,0.5)chroma key color
chromaKeyToleranceNumber<optional>
0.5tolerance for chroma key (0 to sqrt(3))

Methods

setCameraFromLLHYawPitchRollFov(llh, yaw, pitch, roll, fov, far)

Sets the video camera's position and orientation based on Longitude, Latitude, Height, Yaw, Pitch, Roll, and FOV.
Parameters:
NameTypeDescription
llhTHREE.Vector3A Vector3 where: - x = Longitude in degrees - y = Latitude in degrees - z = Height in meters
yawnumberYaw angle in degrees. (0 points north ccw rotation)
pitchnumberPitch angle in degrees (-90 to 90)
rollnumberRoll angle in degrees. - Rotation around the Forward vector (local Y-axis).
fovnumberThe camera's vertical field of view in degrees.
farnumberThe max distance to project the texture.

setTexture()

Set a texture to be projected