Field data layer class, through which field data is loaded.
Name | Type | Description |
---|---|---|
context |
Context | webgl context object. |
Example:
var layer = new FieldLayer3D(scene, context,urls);
scene.primitives.add(layer);
Members
-
Get or set the field data of the layer.
-
layerBounds : Rectangle
-
Get or set the X and Y direction range of layer data.
-
Get or set the NetCDF field data layer. The NetCDF field layer object has five parameters: longitude, latitude, uwnd, vwnd, and timeOrder [optional]. longitude: The longitude dimension of the NetCDF field data. longitude: The longitude dimension of the NetCDF field data. uwnd: U component (zonal wind) wind speed of NetCDF field data, unit: m/s. vwnd: V component (meridional wind) wind speed of NetCDF field data, unit: m/s. timeOrder: the time index corresponding to the NetCDF field data。
Example:
var option = { longitude:'lon', latitude:'lat', uwnd:'uwnd', vwnd:'uwnd' } fieldLayer.NetCDFData = option;
-
Get or set the header file information of NetCDF field data, including dimensions, variables and corresponding attribute information.
-
Gets the layer's particle effect renderer.
-
Get the layer type id.
-
Get or set the visibility of the layer.
-
zBounds : Cartesian2
-
Get or set the Z direction range of layer data.
Methods
-
Destroys the object and frees its webgl resources.
Once an object is destroyed, it can no longer be used; calling any method on the destroyed object will throw a
DeveloperError
exception.Returns:
Undefined。- FieldLayer3D#isDestroyed
Example:
layer = layer && layer.destroy();
See: