FieldLayer3D

new SuperMap3D.FieldLayer3D(context)

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

fieldData : Array

Get or set the field data of the layer.

layerBounds : Rectangle

Get or set the X and Y direction range of layer data.

NetCDFData

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;

NetCDFInfo

Get or set the header file information of NetCDF field data, including dimensions, variables and corresponding attribute information.

particleVelocityFieldEffect : Object

Gets the layer's particle effect renderer.

readonlytype : String

Get the layer type id.

visible : Boolean

Get or set the visibility of the layer.

zBounds : Cartesian2

Get or set the Z direction range of layer data.

Methods

destroy()undefined

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。
Example:
layer = layer && layer.destroy();
See:
  • FieldLayer3D#isDestroyed