The 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 the 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 latitude of NetCDF field data. longitude: The longitude latitude of NetCDF field data. uwnd: U component (zonal wind) wind speed of NetCDF field data, unit: m/s. vwnd: The wind speed of the V component (the meridional wind) of the NetCDF field data, in meters/second. 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 header file information of NetCDF field data, including dimensions, variables and corresponding attribute information.
-
Get the particle effect renderer of the layer.
-
Get the ID of the layer type.
-
Get or set the visibility of the layer.
-
zBounds : Cartesian2
-
Get or set the Z direction range of the layer data.
Methods
-
Destroy the object and release its webgl resources.
Once the object is destroyed, it can no longer be used; calling any method of the destroyed object will throw an
DeveloperError
exception.Returns:
- FieldLayer3D#isDestroyed
Example:
layer = layer && layer.destroy();
See: