VerticalProfile
Mixin Extends:
Implements:
Renderer for Coverages conforming to the CovJSON domain type VerticalProfile
.
This will simply display a dot on the map and fire a click event when a user clicks on it. The dot either has a defined standard color, or it uses a palette together with a target depth if a parameter is chosen.
Example:
var cov = ... // get Coverage data
var layer = new C.VerticalProfile(cov, {
parameter: 'salinity',
vertical: 30,
defaultColor: 'black',
palette: C.linearPalette(['#FFFFFF', '#000000'])
})
Constructor Summary
Public Constructor | ||
public |
constructor(cov: Coverage | Domain, options: Object) An optional vertical axis target value can be defined with the 'vertical' property. |
Member Summary
Public Members | ||
public get |
The coverage object associated to this layer. |
|
public get |
The parameter that is visualized. |
|
public get |
The currently active vertical coordinate, or undefined if no coordinate is set. |
|
public set |
Sets the currently active vertical coordinate to the one closest to the given value. |
|
public get |
The vertical slices that make up the coverage. |
Method Summary
Public Methods | ||
public |
Returns the geographic bounds of the coverage, which is a degenerate box collapsed to a point. |
|
public |
Returns the geographical position of the coverage. |
|
public |
Return the displayed value (number, or null for no-data), or undefined if not fixed to a z-coordinate or parameter. |
|
public |
Return the displayed value if within the given distance of the reference point. |
Public Constructors
public constructor(cov: Coverage | Domain, options: Object) source
An optional vertical axis target value can be defined with the 'vertical' property. The closest values on the vertical axis is chosen.
Params:
Name | Type | Attribute | Description |
cov | Coverage | Domain | The coverage or domain object to visualize. |
|
options | Object |
|
The options object. |
options.parameter | string |
|
The key of the parameter to display, not needed for domain objects. |
options.vertical | number |
|
The initial vertical slice to display. |
options.palette | Palette |
|
The initial color palette to use, the default depends on the parameter type. |
options.paletteExtent | string |
|
The initial palette extent, either 'full' or specific: [-10,10]. |
options.defaultColor | string |
|
The color to use for missing data or if no parameter is set. |
options.showNoData | boolean |
|
Whether to draw the point if there is no data. |
Public Members
public get vertical: number | undefined source
The currently active vertical coordinate, or undefined if no coordinate is set.
Public Methods
public getBounds(): L.LatLngBounds source
Returns the geographic bounds of the coverage, which is a degenerate box collapsed to a point.
public getValue(): number | null | undefined source
Return the displayed value (number, or null for no-data), or undefined if not fixed to a z-coordinate or parameter.