Represents a control for displaying weather information on a map. The control shows details about the weather dataset, including variable metadata, dataset information, and weather values at a given position.

Param

The HTMLDivElement that represents the control's container.

Param

The position (longitude, latitude) of the control.

Hierarchy

  • WxInfoControl

Constructors

Properties

Methods

Constructors

Properties

div: HTMLDivElement
pos: {
    lat: number;
    lng: number;
} = ...

Type declaration

  • lat: number
  • lng: number

Methods

  • Returns methods to integrate this control with a Leaflet map.

    Returns

    An object containing the onAdd and onRemove methods for Leaflet integration.

    Returns {
        onAdd: (() => HTMLDivElement);
        onRemove: (() => void);
    }

    • onAdd: (() => HTMLDivElement)
        • (): HTMLDivElement
        • Returns HTMLDivElement

    • onRemove: (() => void)
        • (): void
        • Returns void

  • Updates the control with new weather information and position.

    Parameters

    • wxsource: undefined | WxTileSource

      The WxTileSource instance used to retrieve weather data.

    • map: any

      The map object (typically for map-based operations, but suppressed here).

    • Optional pos_: {
          lat: number;
          lng: number;
      }

      An optional position to update the control's location.

      • lat: number
      • lng: number

    Returns void

Generated using TypeDoc