Implementation of universal methods for the layer (for Mapbox and Leaflet) To be extended by framework specific implementation Wrapps some methods of WxLayer

Hierarchy

  • FrameworkParentClass

Implements

Constructors

Properties

_needUpdateDSManager: boolean = false

A boolean flag indicating whether the dataset manager needs to be updated or not.

id: string

Accessors

Methods

  • Set the style of the source by its name from default styles.

    Returns

    A promise that resolves when the style is set.

    Parameters

    • wxstyleName: string

      Name of the new style to set.

    • reload: boolean = true

      If true, the source will be reloaded and rerendered.

    Returns Promise<void>

  • Set time and render the source. If the time is not available, the closest time will be used.

    Returns

    A promise that resolves with current time step when the time is set and the source is loaded and rendered.

    Parameters

    • Optional time: WxDate

      Time to set.

    • Optional requestInit: WxRequestInit

      Request options for fetch.

    Returns Promise<string>

Generated using TypeDoc