MultiPolygon
Mixin Extends:
Implements:
Renderer for Coverages and Domains conforming to CovJSON domain type MultiPolygon
.
Example:
var cov = ... // get Coverage data
var layer = new C.MultiPolygon(cov, {
parameter: 'salinity',
defaultColor: 'black',
palette: C.linearPalette(['#FFFFFF', '#000000'])
})
Constructor Summary
Public Constructor | ||
public |
constructor(cov: Coverage | Domain, options: Object) The key of the parameter to display can be given in the 'parameter' options property, it will be ignored if the coverage data object is a Domain object. |
Member Summary
Public Members | ||
public get |
The coverage object associated to this layer. |
|
public get |
The parameter that is visualized. |
Method Summary
Public Methods | ||
public |
Returns the geographic bounds of the coverage. |
|
public |
Returns the geographical center position of the coverage based on its bounding box. |
|
public |
getValueAt(latlng: L.LatLng): number | null | undefined Return the displayed value at a given geographic position. |
|
public |
redraw() Redraw the layer. |
Public Constructors
public constructor(cov: Coverage | Domain, options: Object) source
The key of the parameter to display can be given in the 'parameter' options property, it will be ignored if the coverage data object is a Domain object.
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.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. |
Public Members
Public Methods
public getLatLng(): L.LatLng source
Returns the geographical center position of the coverage based on its bounding box.