A base class for anything requiring access to the InstanceApi and instance of Vue app controlled by it.

APIScope

Hierarchy (view full)

Constructors

Properties

The instance of RampMap API scoped to a single Vue R4MP application.

APIScope

maptipStore: any

Accessors

  • get $element(): App<Element>
  • Returns App<Element>

  • get $vApp(): ComponentPublicInstance
  • The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

    Returns ComponentPublicInstance

    APIScope

Methods

  • Checks for a graphic at the given screen coordinates. On a graphic hit the point is put in the maptip store and the map/graphichit event is fired.

    Parameters

    • screenPoint: ScreenPoint

      The screen coordinates for the hitTest

    Returns Promise<void>

    resolves after the event is fired or no new graphic is hit.

  • Set the html string for the maptip If empty string is provided, the maptip will use the default content

    Parameters

    • content: string

      the new maptip html content

    Returns void

  • Set the current maptip point. Undefined = maptip wont be shown.

    Parameters

    Returns void