Home Reference Source Repository
import {VerticalProfileCollection} from 'leaflet-coverage/'
public class | source

VerticalProfileCollection

Extends:

L.LayerPointCollection → VerticalProfileCollection

A collection of vertical profiles sharing the same parameters and coordinate referencing system.

See:

Constructor Summary

Public Constructor
public

constructor(covcoll: CoverageCollection, options: Object)

Member Summary

Public Members
public set

Sets the currently active vertical coordinate for all vertical profiles to the one closest to the given value.

Inherited Summary

From class PointCollection
public get

The parameter that is visualized.

public

Binds a popup to each point instance.

public

Returns the geographic bounds of the coverage collection.

public

getValueAt(latlng: L.LatLng, maxDistance: number): number | null | undefined

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

Override:

PointCollection#constructor

Params:

NameTypeAttributeDescription
covcoll CoverageCollection

The coverage collection to visualize.

options Object
  • optional

The options object.

options.parameter string
  • optional

The key of the parameter to display.

options.palette Palette
  • optional

The initial color palette to use, the default depends on the parameter type.

options.paletteExtent string
  • optional
  • default: 'full'

The initial palette extent, either 'full', 'fov', or specific: [-10,10].

options.defaultColor string
  • optional
  • default: 'black'

The color to use for missing data or if no parameter is set.

Public Members

public set vertical: number | undefined source

Sets the currently active vertical coordinate for all vertical profiles to the one closest to the given value.