Class MaptipAPI

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

Export

Hierarchy

Constructors

Properties

#currentCheck: undefined | ScreenPoint = undefined
#lastHit: undefined | GraphicHitResult = undefined

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

Memberof

APIScope

maptipStore: any

Accessors

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

  • get $vApp(): ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
  • The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

    Returns ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>

    Memberof

    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

Generated using TypeDoc