InsertLayer
InsertLayer (path, type) à TBLayer70 |
Loads a new imagery or elevation layer into the project.
Parameters
Name |
Type |
Description |
path |
string |
A full path to the layer file to be loaded by TerraBuilder. Layers can also be loaded from SGS using the following format: <LayerName>@<SkylineGlobe Server URL>/SG, e.g., [email protected]/SG Note: When loading an MPT or TBP file from a SkylineGlobe Server over a secure connection (configured to use SSL), use <Layer Name>@<SkylineGlobe Server URL>$/SG, e.g., [email protected]$/SG e.g., project.layers.InsertLayer("[email protected]$/SG", "imagery") Note: In JavaScript, double slashes (\\) must be used for path strings, e.g. "C:\\Users\\Administrator\\Documents". |
type |
string |
The layer type: ‘Imagery’ or ‘Elevation’. |
Return Value
TBLayer70
A TBLayer70 representing the newly inserted layer.