3. Loading 3D Layers |
In the 3D scene, you can open all layers in the 3D scene and the specified layers in the scene, such as the terrain, image, model, vector layer, etc. Layers are divided into six categories in the SuperMap iClient 7C for 3D: the terrain image layer, the 3D model layer, the image layer, the vector layer, the KML layer and the KMZ layer.
Different layers have different loading methods, the 3D model layer, the image layer, the vector layer, the KML layer and the KMZ layer are loaded by the LayerD type, the terrain image layer is loaded by the TerrainLayer type. When loading the layers, you need to know the type and name of the layer and the data path, which can be obtained by the Layer3DServicesList class. The Layer3DServicesList class records all 3D layer set services and the information of each layer in the 3D layer set.
Interface | Description | |
---|---|---|
count | Obtains the total number of the layer services in the layer set. | |
item | Obtains the 3D layer service information with the specified layer index number (Nember type) or name (String type) in the 3D layer set. | |
sceneName | Obtains the name of the belonged scene service. | |
sceneAddress | Obtains the service address of the layer set. |
Interface | Description | |
---|---|---|
load | Obtains the lists of the layer set services in the specified scene. | |
removeAll | Removes all the layer service information in the layer service set. |
Interface | Description | |
---|---|---|
count | Obtains the total number of the 3D layer objects in a given 3D layer set. | |
isVisible | Gets or sets the visibility of the 3D layer set. | |
item | Obtains the 3D layer object with the specified index number (Nember type) or the specified layer name type (String type) in the 3D layer set. If the specified layer doesn't exist, Null will be returned. |
Interface | Description | |
---|---|---|
add | Add 3D layers with the type of the 3DImage, 3DModel and KML to the 3D layer set. | |
indexOf | Finds the index number of the specified layer name in the 3D layer set. | |
insert | Inserts 3D layers with the type of the Image, Model or KML to the specified location in the 3D layer set. | |
moveDown | Moves the 3D layer with the specified index number in the 3D layer set down one level. | |
moveTo | >Moves the 3D layer with the specified index number in the 3D layer set to the location with the specified index number. | |
moveToBottom | Moves the 3D layer with the specified index number in the 3D layer set to the bottom. | |
moveToTop | Moves the 3D layer with the specified index number in the 3D layer set to the top. | |
moveUp | Moves the 3D layer with the specified index number in the 3D layer set up one level. | |
removeAll | Removes all the layers in the layer set. | |
removeAt | Removes the layers with the specified layer name or index number. |
Interface | Explanation | |
---|---|---|
count | Obtains the total number of the terrain layer objects in the specified terrain layer set. | |
item | Obtains the terrain layer object with the specified index number (Nember type) or the specified layer name (String type) in the terrain layer set. |
Interface | Description | |
---|---|---|
add | Add the terrain layers to the terrain layer set. | |
indexOf | finds the index number with the specified layer name in the terrain layer set. | |
insert | Inserts terrain layers to the specified location in the 3D layer set. | |
moveDown | Moves the terrain layer with the specified index number in the terrain layer set down one level. | |
moveTo | Moves the terrain layer with the specified index number in the terrain layer set to the location with the specified index number. | |
moveToBottom | Moves the terrain layer with the specified index number in the terrain layer set to the bottom. | |
moveToTop | Moves the terrain layer with the specified index number in the terrain layer set to the top. | |
moveUp | Moves the terrain layer with the specified index number in the terrain layer set up one level. | |
removeAll | Removes all the layers in the terrain layer set. | |
removeAt | Removes layers with the specified layer name or index number. |
JavaScript | |
---|---|
<!--the scene layer list--> |
JavaScript | |
---|---|
|
JavaScript | |
---|---|
|
JavaScript | |
---|---|
|
Figure 1 Load the specified layers (image layers) in the scene