PointCollection
Mixin Extends:
Direct Subclass:
A collection of points sharing the same parameters and coordinate referencing system.
Constructor Summary
Public Constructor | ||
public |
constructor(covcoll: CoverageCollection, options: Object) |
Method Summary
Public Methods | ||
public |
bindPopupEach(fn: function(cov: Coverage): String | HTMLElement | L.Popup) Binds a popup to each point instance. |
|
public |
Returns the geographic bounds of the coverage collection. |
|
public |
Return the displayed value of the point coverage closest to the given position and within the given maximum distance. |
|
public |
redraw() Redraw each point layer. |
Public Constructors
public constructor(covcoll: CoverageCollection, options: Object) source
Params:
Name | Type | Attribute | Description |
covcoll | CoverageCollection | The coverage collection to visualize. |
|
options | Object |
|
The options object. |
options.parameter | string |
|
The key of the parameter 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', 'fov', or specific: [-10,10]. |
options.defaultColor | string |
|
The color to use for missing data or if no parameter is set. |
options.pointClass | class |
|
The PointDataLayer class to use for the individual points. |
options.pointOptionsFn | function |
|
A function that returns additional options to apply for each point class instance. |
Public Methods
public bindPopupEach(fn: function(cov: Coverage): String | HTMLElement | L.Popup) source
Binds a popup to each point instance.
Params:
Name | Type | Attribute | Description |
fn | function(cov: Coverage): String | HTMLElement | L.Popup | Returns the popup for a given point coverage. |