Class MapAgentRequestBuilder
Constructors
constructor
-
Parameters
-
agentUri: string
-
Default value locale: string = DEFAULT_LOCALE
Properties
Protected agentUri
agentUri: string
Methods
createSession
- createSession(username: string, password: string): Promise<string>
-
Parameters
-
username: string
-
password: string
Returns Promise<string>
get
- get<T>(url: string): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
getResource
- getResource<T>(resourceId: Common.ResourceIdentifier, args?: any): Promise<T>
-
Type parameters
Parameters
-
resourceId: Common.ResourceIdentifier
-
Optional args: any
Returns Promise<T>
getServerSessionTimeout
- getServerSessionTimeout(session: string): Promise<number>
-
Parameters
Returns Promise<number>
getTileTemplateUrl
- getTileTemplateUrl(resourceId: string, groupName: string, xPlaceholder: string, yPlaceholder: string, zPlaceholder: string): string
-
Parameters
-
resourceId: string
-
groupName: string
-
xPlaceholder: string
-
yPlaceholder: string
-
zPlaceholder: string
Returns string
post
- post<T>(url: string, data: any): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
The mapagent client
MapAgentRequestBuilder
{Request.RequestBuilder}