Creates an SGNode of type group.
createGroup(groupName);
Parameter |
Description |
groupName |
The SGNode name |
Return Value
An SGNode object that represents the newly created group.
Remarks
A group in the Skyline Globe world is an SGNode object that can have child nodes. It is, in many cases, useful to group together several nodes in a hierarchy that has logical meaning. For example, a polygon and a label can reside in a group called “Lake Tahoe” which in itself can reside in a group called “Lakes”.
Example
The following example illustrates the use of the createGroup method.
function createGroup()
{
var group = globe.creator.createGroup(“Lake Tahoe”);
globe.root.appendChild(group);
}