Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geocortex/geocortex"

Index

Functions

Private _extensionsToJson

Private _getExtensions

Private _getProperties

  • Parameters

    Returns any

Private _propertiesToJson

  • Parameters

    • properties: any

    Returns PropertyParam[]

Private deferredReject

  • deferredReject(def: Deferred, result: any): void
  • Helper function that rejects a {@link dojo.Deferred}.

    Parameters

    • def: Deferred

      The {@link dojo.Deferred} to reject.

    • result: any

      The result to invoke the deferred's reject callback with.

    Returns void

Private deferredResolve

  • deferredResolve(def: Deferred, result: any): void
  • Helper function that resolves a {@link dojo.Deferred}.

    Parameters

    • def: Deferred

      The {@link dojo.Deferred} to resolve.

    • result: any

      The result to invoke the deferred's resolve callback with.

    Returns void

encodeJson

  • encodeJson(objectToEncode: object): object
  • Encodes an object in a format that is ready for serialization as URL parameters or a POST body.

    Parameters

    • objectToEncode: object

      The object to encode for serialization.

    Returns object

isNative

  • isNative(): boolean
  • Determines if this web app is running inside the native app (GMAF).

    Returns boolean

request

  • A wrapper around dojo.io.script.get and dojo.xhrPost. It will determine which one to use depending on the amount of data being sent.

    Parameters

    Returns any

requiresProxy

  • Detects whether a request requires the viewer proxy. This will return true if the request length is greater than the configured GET size limit, or if the request is to a different domain.

    Parameters

    Returns boolean

urlToQueryObject

  • urlToQueryObject(url: string): object
  • Creates a query object from a URL, creating object properties for any URL parameters found in the URL.

    Parameters

    • url: string

      The url to convert.

    Returns object