WxAPI is an initialisation object for the library. See WxAPIOptions for options.

Example

import { WxAPI } from 'wx-tiles';
const wxapi = new WxAPI({
dataServerURL: 'https://server.com/',
// other options
});

Hierarchy

  • WxAPI

Constructors

Properties

dataServerURL: string
initDone: Promise<void>

resolved when WxAPI is ready to be used

loadMaskFunc: ((__namedParameters: XYZ) => Promise<ImageData>)

Type declaration

    • (__namedParameters: XYZ): Promise<ImageData>
    • Internal

      function to load mask tiles

      Parameters

      • __namedParameters: XYZ

      Returns Promise<ImageData>

maskChannel: number
maskDepth: number
maskURL: string
qtree: QTree

instance of the qtree object

requestInit?: RequestInit

Methods

  • Returns datasets names which have given variable

    Argument

    varName - variable name to search for in datasets

    Returns

    • list of datasets' names

    Parameters

    • varName: string

    Returns Promise<string[]>

  • Get the list of all available datasets' names

    Returns

    • list of all available datasets' names

    Returns Promise<string[]>

  • Get all variables for the given dataset name.

    Returns

    • list of all available variables for the dataset

    Parameters

    • datasetName: string

      dataset name

    Returns Promise<undefined | string[]>

Generated using TypeDoc