Constructors

Properties

$element: App<Element>
$i18n: Composer<{}, {}, {}, string, never, string>
$vApp: ComponentPublicInstance

The instance of Vue R4MP application controlled by this InstanceAPI.

InstanceAPI

event: EventAPI
fixture: FixtureAPI
geo: GeoAPI
panel: PanelAPI
startRequired: boolean = false
ui: {
    escapeHtml: ((content: string) => string);
    exposeMeasurements: boolean;
    exposeOids: boolean;
    formatNumber: ((num: number) => string);
    getZoomIcon: (() => string);
    isPlainText: ((content: any) => boolean);
    maptip: MaptipAPI;
    scrollToInstance: boolean;
    suppressNumberLocalization: boolean;
}

Accessors

  • get animate(): boolean
  • The current animation status.

    Returns boolean

    InstanceAPI

  • get isFullscreen(): boolean
  • Whether the app is fullscreen.

    Returns boolean

    InstanceAPI

  • get language(): string
  • The current locale string for the app.

    Returns string

    InstanceAPI

  • get screenSize(): null | string
  • The 'screen' size for the app. Returns the largest screen class on the element; 'lg', 'md', 'sm' or 'xs'.

    Returns null | string

    InstanceAPI

  • get started(): boolean
  • Whether the app has been started.

    Returns boolean

    InstanceAPI

Methods

  • Retrieves a global Vue component by its id.

    Parameters

    • id: string

    Returns any

    InstanceAPI

  • Registers a global Vue component given an id and a constructor.

    Type Parameters

    • VC extends DefineComponent

    Parameters

    • id: string
    • vueConstructor: any

    Returns VC

    InstanceAPI

  • Return whether the string contains valid html content (i.e. a html element with opening and closing tags)

    Parameters

    • content: string

    Returns boolean

  • Gets the [cloned] config linked to the current language of the app.

    Returns any

    InstanceAPI

  • Reloads Vue R4MP instance with a new config

    Parameters

    • Optionalconfigs: RampConfigs

      language-keyed R4MP config

    • Optionaloptions: RampOptions

      startup options for this R4MP instance

    Returns void

  • Return whether the string represents an object or array

    Parameters

    • content: string

    Returns boolean

  • If scrollToInstance is set to true in the configuration file, scrolls the browser to this RAMP component.

    Returns void

    InstanceAPI

  • Sets the language of the app to the specified string (e.g. 'en' or 'fr').

    Parameters

    • language: string

      The locale string to switch to

    Returns void

    InstanceAPI

  • Toggles fullscreen for the app.

    Returns void

    InstanceAPI

  • Updates the screen reader alert. Use this to inform screen reader users of visual changes in the app (pieces of ui appearing/leaving).

    Parameters

    • alert: string

      the alert to make available to screen readers

    Returns void

    InstanceAPI

  • Returns the pinia store of the specified id, if it exists, else returns undefined.

    Type Parameters

    • T

    Parameters

    • id: string

      the id of the store to return

    Returns undefined | Readonly<T>

    InstanceAPI