pointCloud

The pointCloud object enables you to load point cloud layers into the project and provides access to all loaded layers. The following method is available:

§  create

create

create(description, url, layer, showInMyLayersMenu) → {Cesium.promise}

Loads a point cloud layer into the project.

Parameters

Name

Type

Description

description

String

The name of the layer as it appears in the Layers tab of the TE4W sidebar.

url

String

The URL of the SkylineGlobe Server (SGS) from which the layer is loaded, e.g., http://www.SkylineGlobe.com/SG.

layer

String

The ID or alias of the layer in the SkylineGlobe Server. You can obtain the layer ID by looking it up in the SGS Manager.

showInMyLayersMenu

Boolean

Determines whether the created layer is listed in TE4W’s sidebar (with a star by the layer entry to indicate that it was loaded into the project from SkylineGlobe Server). If showInMyLayersMenu is set to false, the layer is not listed.

Example

The following example creates a point cloud layer:

var promise = TerraExplorer.layers.pointCloud.create ("Tile-5-4-1-1",

                                            "http://www.YourDomain.com/SG",

                                            "401980",

                                             true);

promise.then(function(teObject) {

   alert(teObject.description);

    teObject.show = false;

}).otherwise(function (err) {

   alert(err);

});

 

Returns

Cesium.promise - A promise (Cesium.promise) that resolves to the newly created point cloud TerraExplorerObject object when loaded or an error string if the URL failed to load.