createImageLabel Method

Creates a new label with an image only.

createImageLabel(position, imageURL, [name]);

 

Parameter

Description

position

The position of the object, defined by its coordinates in the  3D world

Can be one of the following: SGCoord3D, SGCoord2D, SGPosition

imageURL

The URL of the image to appear on the label

name

Optional

The node name

Return Value

An SGNode object. If the method fails, the return value is null. SGWorld.lastError will contain the failure reason.

Remarks

To modify other properties of the image label, access the node innerObj. See SGNode.innerObj property and ITerrainImageLabel5 interface for more details.