@JsType(isNative=true,
namespace="Cesium",
name="ImageryLayerCollection")
public class ImageryLayerCollection
extends Collection<ImageryLayer>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ImageryLayerCollection.Listener |
| Modifier and Type | Field and Description |
|---|---|
Event |
layerAdded
An event that is raised when a layer is added to the collection.
|
Event |
layerMoved
An event that is raised when a layer changes position in the collection.
|
Event |
layerRemoved
An event that is raised when a layer is removed from the collection.
|
Event |
layerShownOrHidden
An event that is raised when a layer is shown or hidden by setting the ImageryLayer#show property.
|
| Constructor and Description |
|---|
ImageryLayerCollection()
An ordered collection of imagery layers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ImageryLayer layer,
int index)
Adds a layer to the collection.
|
ImageryLayer |
addImageryProvider(ImageryProvider imageryProvider)
Creates a new layer using the given ImageryProvider and adds it to the collection.
|
ImageryLayer |
addImageryProvider(ImageryProvider imageryProvider,
int index)
Creates a new layer using the given ImageryProvider and adds it to the collection.
|
int |
indexOf(ImageryLayer layer)
Determines the index of a given layer in the collection.
|
void |
lower(ImageryLayer layer)
Lowers a layer down one position in the collection.
|
void |
lowerToBottom(ImageryLayer layer)
Lowers a layer to the bottom of the collection.
|
Promise<ImageryLayerFeatureInfo[],Void> |
pickImageryLayerFeatures(Ray ray,
Scene scene)
Asynchronously determines the imagery layer features that are intersected by a pick ray.
|
void |
raise(ImageryLayer layer)
Raises a layer up one position in the collection.
|
void |
raiseToTop(ImageryLayer layer)
Raises a layer to the top of the collection.
|
boolean |
remove(ImageryLayer layer,
boolean destroy)
Removes a layer from this collection, if present.
|
void |
removeAll(boolean destroy)
Removes all layers from this collection.
|
@JsProperty public Event layerAdded
@JsProperty public Event layerMoved
@JsProperty public Event layerRemoved
@JsProperty public Event layerShownOrHidden
@JsConstructor public ImageryLayerCollection()
@JsMethod public void add(ImageryLayer layer, int index)
layer - the layer to add.index - the index to add the layer at. If omitted, the layer will added on top of all existing layers.@JsMethod public ImageryLayer addImageryProvider(ImageryProvider imageryProvider)
imageryProvider - the imagery provider to create a new layer for.@JsMethod public ImageryLayer addImageryProvider(ImageryProvider imageryProvider, int index)
imageryProvider - the imagery provider to create a new layer for.index - the index to add the layer at. If omitted, the layer will added on top of all existing layers.@JsMethod public int indexOf(ImageryLayer layer)
layer - The layer to find the index of.@JsMethod public void lower(ImageryLayer layer)
layer - the layer to move.@JsMethod public void lowerToBottom(ImageryLayer layer)
layer - the layer to move.@JsMethod public Promise<ImageryLayerFeatureInfo[],Void> pickImageryLayerFeatures(Ray ray, Scene scene)
ray - The ray to test for intersection.scene - The scene.@JsMethod public void raise(ImageryLayer layer)
layer - the layer to move.@JsMethod public void raiseToTop(ImageryLayer layer)
layer - the layer to move.@JsMethod public boolean remove(ImageryLayer layer, boolean destroy)
layer - The layer to remove.destroy - whether to destroy the layers in addition to removing them. Default: true@JsMethod public void removeAll(boolean destroy)
destroy - whether to destroy the layers in addition to removing them. Default: trueCopyright © 2019. All rights reserved.