@tak-ps/node-cot
    Preparing search index...

    Class Basemap

    Helper class for creating and parsing Basemap XML documents

    Hierarchy

    • default<BasemapType>
      • Basemap
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • raw: {
            customMapSource: {
                backgroundColor?: { _text: string };
                maxZoom: { _text: number };
                minZoom: { _text: number };
                name: { _text: string };
                tileType: { _text: string };
                tileUpdate?: { _text: string };
                url?: { _text: string };
            };
        }

      Returns Basemap

    Properties

    raw: {
        customMapSource: {
            backgroundColor?: { _text: string };
            maxZoom: { _text: number };
            minZoom: { _text: number };
            name: { _text: string };
            tileType: { _text: string };
            tileUpdate?: { _text: string };
            url?: { _text: string };
        };
    }

    Methods

    • Returns {
          backgroundColor: undefined | string;
          maxZoom: undefined | number;
          minZoom: undefined | number;
          name: undefined | string;
          tileType: undefined | string;
          tileUpdate: undefined | string;
          url: string;
      }

    • Type Parameters

      • U

      Parameters

      • input: string
      • check: ValidateFunction<unknown>

      Returns U

    • Return a Basemap from a string XML representation

      Parameters

      • input: string | Buffer<ArrayBufferLike>

      Returns Basemap