Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

The MapGuide HTTP client

export
class

Client

implements

{Request.IMapGuideClient}

Hierarchy

  • Client

Implements

Index

Constructors

constructor

Methods

createRuntimeMap

createSession

  • createSession(username: string, password: string): Promise<string>
  • Creates a new MapGuide session

    memberof

    Client

    Parameters

    • username: string
    • password: string

    Returns Promise<string>

describeRuntimeMap

get

  • get<T>(url: string): Promise<T>
  • Performs a generic GET request at the specified URL

    template

    T The type of the object you are expecting to receive

    memberof

    Client

    Type parameters

    • T

    Parameters

    • url: string

      The url to make the request to

    Returns Promise<T>

    A promise for the value of the requested type

getResource

  • getResource<T>(resourceId: Common.ResourceIdentifier, args?: any): Promise<T>
  • Retrieves the requested resource

    template

    T

    memberof

    Client

    Type parameters

    Parameters

    • resourceId: Common.ResourceIdentifier
    • Optional args: any

    Returns Promise<T>

getServerSessionTimeout

  • getServerSessionTimeout(session: string): Promise<number>
  • Gets the server session timeout for the given session id

    memberof

    Client

    Parameters

    • session: string

    Returns Promise<number>

getText

  • getText(url: string): Promise<string>
  • Parameters

    • url: string

    Returns Promise<string>

getTileTemplateUrl

  • getTileTemplateUrl(resourceId: string, groupName: string, xPlaceholder: string, yPlaceholder: string, zPlaceholder: string): string
  • Gets the tile template URL used by the viewer to send tile requests

    memberof

    Client

    Parameters

    • resourceId: string
    • groupName: string
    • xPlaceholder: string
    • yPlaceholder: string
    • zPlaceholder: string

    Returns string

post

  • post<T>(url: string, data: any): Promise<T>
  • Performs a generic POST request at the specified URL

    template

    T The type of the object you are expecting to receive

    memberof

    Client

    Type parameters

    • T

    Parameters

    • url: string

      The url to make the request to

    • data: any

      The POST form data

    Returns Promise<T>

    A promise for the value of the requested type

queryMapFeatures

Generated using TypeDoc