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

DEFAULT_POINT_FORMATTERS: any = ...
pointFormatter: ((p: Point) => Promise<string>)

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

  • Configure the map caption using the given config

    Parameters

    Returns void

  • Formats a string based on the current basemap projection using mouse map point coordinates

    Parameters

    • p: Point

      the cursor map point

    Returns Promise<string>

    the formatted string using given cursor map coordinates

    formatBasemap

  • Formats a lambert point string using mouse map point coordinates

    Parameters

    • p: Point

      the cursor map point

    Returns Promise<string>

    the formatted string using given cursor map coordinates

    formatLambert

  • Formats a lat/long DD string using mouse map point coordinates

    Parameters

    • p: Point

      the cursor map point

    Returns Promise<string>

    the formatted string using given cursor map coordinates

    formatLatLongDD

  • Formats a lat/long DDM string using mouse map point coordinates

    Parameters

    • p: Point

      the cursor map point

    Returns Promise<string>

    the formatted string using given cursor map coordinates

    formatLatLongDDM

  • Formats a lat/long DMS string using mouse map point coordinates

    Parameters

    • p: Point

      the cursor map point

    Returns Promise<string>

    the formatted string using given cursor map coordinates

    formatLatLongDMSString

  • Formats a mercator point string using mouse map point coordinates

    Parameters

    • p: Point

      the cursor map point

    Returns Promise<string>

    the formatted string using given cursor map coordinates

    formatMercator

  • Formats the map point using the selected formatting function Returns empty string if point is undefined

    Parameters

    • p: undefined | Point

      the cursor map point

    Returns Promise<string>

    the formatted string of the map point

  • Formats a UTM string using mouse map point coordinates

    Parameters

    • p: Point

      the cursor map point

    Returns Promise<string>

    the formatted string using given cursor map coordinates

    formatUTM

  • Sets the current point formatter Will accept the string id of a default formatter, or a new formatter with the correct formatter signature

    If given string id is not valid, then the point formatter is not changed

    Parameters

    • value: string | ((p: Point) => Promise<string>)

    Returns void

    setPointFormatter

  • Updates the attribution on the map-caption bar Applies default ESRI attribution if incoming attribution is disabled or has undefined elements

    Updates map-caption store to notify map-caption component observer

    Parameters

    • newAttribution: undefined | Attribution

      incoming new attribution

    Returns void

    updateAttribution

  • Calculates a scale bar for the current resolution Updates map-caption store to notify map-caption component observer

    Returns void

    updateScale