An imagery layer that displays tiled image data from a single imagery provider
on a
Globe
.
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
imageryProvider |
ImageryProvider | The imagery provider to use. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
optional
Object with the following properties:
|
Members
This value is used as the default threshold for color-to-alpha if one is not provided
during construction or by the imagery provider.
-
Default Value:
0.004
This value is used as the default brightness for the imagery layer if one is not provided during construction
or by the imagery provider. This value does not modify the brightness of the imagery.
-
Default Value:
1.0
This value is used as the default contrast for the imagery layer if one is not provided during construction
or by the imagery provider. This value does not modify the contrast of the imagery.
-
Default Value:
1.0
This value is used as the default gamma for the imagery layer if one is not provided during construction
or by the imagery provider. This value does not modify the gamma of the imagery.
-
Default Value:
1.0
This value is used as the default hue for the imagery layer if one is not provided during construction
or by the imagery provider. This value does not modify the hue of the imagery.
-
Default Value:
0.0
static Cesium.MapGISGeojsonLayer.DEFAULT_MAGNIFICATION_FILTER : TextureMagnificationFilter
This value is used as the default texture magnification filter for the imagery layer if one is not provided
during construction or by the imagery provider.
-
Default Value:
TextureMagnificationFilter.LINEAR
static Cesium.MapGISGeojsonLayer.DEFAULT_MINIFICATION_FILTER : TextureMinificationFilter
This value is used as the default texture minification filter for the imagery layer if one is not provided
during construction or by the imagery provider.
-
Default Value:
TextureMinificationFilter.LINEAR
This value is used as the default saturation for the imagery layer if one is not provided during construction
or by the imagery provider. This value does not modify the saturation of the imagery.
-
Default Value:
1.0
static Cesium.MapGISGeojsonLayer.DEFAULT_SPLIT : ImagerySplitDirection
This value is used as the default split for the imagery layer if one is not provided during construction
or by the imagery provider.
-
Default Value:
ImagerySplitDirection.NONE
The alpha blending value of this layer, with 0.0 representing fully transparent and
1.0 representing fully opaque.
-
Default Value:
1.0
The brightness of this layer. 1.0 uses the unmodified imagery color. Less than 1.0
makes the imagery darker while greater than 1.0 makes it brighter.
-
Default Value:
MapGISGeojsonLayer.DEFAULT_BRIGHTNESS
colorToAlpha : Color
Color value that should be set to transparent.
Normalized (0-1) threshold for color-to-alpha.
The contrast of this layer. 1.0 uses the unmodified imagery color. Less than 1.0 reduces
the contrast while greater than 1.0 increases it.
-
Default Value:
MapGISGeojsonLayer.DEFAULT_CONTRAST
cutoutRectangle : Rectangle
Rectangle cutout in this layer of imagery.
The alpha blending value of this layer on the day side of the globe, with 0.0 representing fully transparent and
1.0 representing fully opaque. This only takes effect when
Globe#enableLighting
is true
.
-
Default Value:
1.0
The gamma correction to apply to this layer. 1.0 uses the unmodified imagery color.
-
Default Value:
MapGISGeojsonLayer.DEFAULT_GAMMA
The hue of this layer in radians. 0.0 uses the unmodified imagery color.
-
Default Value:
MapGISGeojsonLayer.DEFAULT_HUE
readonly imageryProvider : ImageryProvider
Gets the imagery provider for this layer.
magnificationFilter : TextureMagnificationFilter
The
TextureMagnificationFilter
to apply to this layer.
Possible values are TextureMagnificationFilter.LINEAR
(the default)
and TextureMagnificationFilter.NEAREST
.
To take effect, this property must be set immediately after adding the imagery layer.
Once a texture is loaded it won't be possible to change the texture filter used.
-
Default Value:
MapGISGeojsonLayer.DEFAULT_MAGNIFICATION_FILTER
minificationFilter : TextureMinificationFilter
The
TextureMinificationFilter
to apply to this layer.
Possible values are TextureMinificationFilter.LINEAR
(the default)
and TextureMinificationFilter.NEAREST
.
To take effect, this property must be set immediately after adding the imagery layer.
Once a texture is loaded it won't be possible to change the texture filter used.
-
Default Value:
MapGISGeojsonLayer.DEFAULT_MINIFICATION_FILTER
The alpha blending value of this layer on the night side of the globe, with 0.0 representing fully transparent and
1.0 representing fully opaque. This only takes effect when
Globe#enableLighting
is true
.
-
Default Value:
1.0
readonly rectangle : Rectangle
Gets the rectangle of this layer. If this rectangle is smaller than the rectangle of the
ImageryProvider
, only a portion of the imagery provider is shown.
The saturation of this layer. 1.0 uses the unmodified imagery color. Less than 1.0 reduces the
saturation while greater than 1.0 increases it.
-
Default Value:
MapGISGeojsonLayer.DEFAULT_SATURATION
Determines if this layer is shown.
-
Default Value:
true
splitDirection : ImagerySplitDirection
The
ImagerySplitDirection
to apply to this layer.
-
Default Value:
MapGISGeojsonLayer.DEFAULT_SPLIT
开启卷帘对比分析
-
Default Value:
false
单独控制该图层是否进行反转,小于0不反转,大于0时反转,等于0失效。该属性的控制优先级高于
Scene#swipeController
中的inverse属性.若要取消该属性对本图层的独立控制需要将该属性置为0.
-
Default Value:
0
透明度属性
Methods
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
release of WebGL resources, instead of relying on the garbage collector to destroy this object.
Once an object is destroyed, it should not be used; calling any function other than
Once an object is destroyed, it should not be used; calling any function other than
isDestroyed
will result in a DeveloperError
exception. Therefore,
assign the return value (undefined
) to the object as done in the example.
Throws:
-
DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
MapGISGeojsonLayer = MapGISGeojsonLayer && MapGISGeojsonLayer.destroy();
See:
获取该图层所有原始矢量数据
Example:
var MapGISGeojsonLayer=Cesium.viewer.imageryLayers.addVectorProvider(new MapGISVectorProvider(options));
MapGISGeojsonLayer.getAllFeatures().then(function(data){
doSomething(data);
})
根据id获取绘制矢量数据的相关对象
Name | Type | Description |
---|---|---|
id |
Number | 矢量数据的id |
Returns:
由一个GeometryInstance和一个Primitive组成的对象,若查找不到则返回undefined
Example:
var mapGisVectorLayer = webGlobe.appendMapGISVectorLayer('http://localhost:6163/igs/rest/mrms/docs/二维矢量',options);
var vectorObject = VectorLayers[2].getVectorById(192);
var vectorPrimitive = vectorObject.primitive;
var vectorGeometryInstance = vectorObject.geometryInstance;
根据id获取绘制矢量数据边框线的GeometryInstance与所属的Primitive
Name | Type | Description |
---|---|---|
id |
Number | 矢量数据的id |
Returns:
由一个GeometryInstance和一个Primitive组成的对象,若查找不到则返回undefined
Example:
var mapGisVectorLayer = webGlobe.appendMapGISVectorLayer('http://localhost:6163/igs/rest/mrms/docs/二维矢量',options);
var vectorOutlineObject = VectorLayers[2].getVectorOutlineById(192);
var vectorOutlinePrimitive = vectorObject.primitive;
var vectorOutlineGeometryInstance = vectorObject.geometryInstance;
getViewableRectangle() → Promise.<Rectangle>
Computes the intersection of this layer's rectangle with the imagery provider's availability rectangle,
producing the overall bounds of imagery that can be produced by this layer.
Returns:
A promise to a rectangle which defines the overall bounds of imagery that can be produced by this layer.
Example:
// Zoom to an imagery layer.
MapGISGeojsonLayer.getViewableRectangle().then(function (rectangle) {
return camera.flyTo({
destination: rectangle
});
});
Gets a value indicating whether this layer is the base layer in the
ImageryLayerCollection
. The base layer is the one that underlies all
others. It is special in that it is treated as if it has global rectangle, even if
it actually does not, by stretching the texels at the edges over the entire
globe.
Returns:
true if this is the base layer; otherwise, false.
Returns true if this object was destroyed; otherwise, false.
If this object was destroyed, it should not be used; calling any function other than
If this object was destroyed, it should not be used; calling any function other than
isDestroyed
will result in a DeveloperError
exception.
Returns:
True if this object was destroyed; otherwise, false.
更新发生更改的Primitive,供updateVectorById,removeVectorById使用
Name | Type | Description |
---|---|---|
primitive |
Primitive | 进行更新的Primitive |