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

VerticalProfilePlot

Extends:

leaflet~L.Popup → VerticalProfilePlot

Displays a popup with an interactive plot showing the data of the vertical profile coverage.

Example:

layer.bindPopup(new C.VerticalProfilePlot(coverage))

Constructor Summary

Public Constructor
public

constructor(coverage: Coverage | Array<Coverage>, options: object)

Creates a vertical profile plot popup.

Public Constructors

public constructor(coverage: Coverage | Array<Coverage>, options: object) source

Creates a vertical profile plot popup.

Params:

NameTypeAttributeDescription
coverage Coverage | Array<Coverage>

The vertical profile coverage to visualize. If an array of vertical profile coverages is given, then the vertical reference systems are assumed to be identical.

options object
  • optional

Popup options. See also http://leafletjs.com/reference.html#popup-options.

options.parameters Array | Array<Array>
  • optional

The parameters to display. For a single coverage, an array of parameter keys, each parameter is accessible in a drop down. The default for a single coverage is to display all parameters. For multiple coverages, an array of parameter key groups, each group is accessible in a drop down. Each group array is ordered as the coverage array and determines which parameter of each coverage is displayed in a single plot. In each group, at least one item must be defined. The default for multiple coverages is to display all parameters and treat each one as a separate group.

options.language string
  • optional

A language tag, indicating the preferred language to use for labels.

options.precision string
  • optional
  • default: 4

The number of significant digits to display.