Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TypeApi

export interface TypeApi extends API, Event, Projection, Plugin {} //#427

Hierarchy

  • API
  • Event
  • Plugin
    • TypeApi

Index

Properties

#pluginsReady: number = 0
AT_TARGET: number
BUBBLING_PHASE: number
CAPTURING_PHASE: number
NONE: number
addUiComponent: ((targetDivId: string, component: ReactElement<any, string | JSXElementConstructor<any>>) => void) = addUiComponent

Type declaration

    • (targetDivId: string, component: ReactElement<any, string | JSXElementConstructor<any>>): void
    • Add a UI component to a custom div. Do not listen to event from here, pass in the props

      Parameters

      • targetDivId: string

        the div id to insert the component in

      • component: ReactElement<any, string | JSXElementConstructor<any>>

        the UI react component

      Returns void

bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

cancelBubble: boolean
cancelable: boolean

Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.

composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

currentTarget: null | EventTarget

Returns the object whose event listener's callback is currently being invoked.

dateUtilities: DateMgt
defaultPrevented: boolean

Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.

event: Event
eventNames: { APPBAR: Record<AppbarEventKey, EventStringId>; ATTRIBUTION: Record<"EVENT_ATTRIBUTION_UPDATE", EventStringId>; BASEMAP: Record<"EVENT_BASEMAP_LAYERS_UPDATE", EventStringId>; DETAILS_PANEL: Record<"EVENT_DETAILS_PANEL_CROSSHAIR_ENTER", EventStringId>; DRAWER: Record<"EVENT_DRAWER_OPEN_CLOSE", EventStringId>; FOOTERBAR: Record<"EVENT_FOOTERBAR_EXPAND_COLLAPSE", EventStringId>; FOOTER_TABS: Record<FooterTabsEventKey, EventStringId>; LAYER: Record<LayerEventKey, EventStringId>; MAP: Record<MapEventKey, EventStringId>; MARKER_ICON: Record<MarkerIconEventKey, EventStringId>; MODAL: Record<ModalEventKey, EventStringId>; NAVBAR: Record<NavbarEventKey, EventStringId>; OVERVIEW_MAP: Record<"EVENT_OVERVIEW_MAP_TOGGLE", EventStringId>; PANEL: Record<PanelEventKey, EventStringId>; SLIDER: Record<SliderEventKey, EventStringId>; SNACKBAR: Record<"EVENT_SNACKBAR_OPEN", EventStringId>; VECTOR: Record<VectorEventKey, EventStringId> } = EVENT_NAMES

Type declaration

  • APPBAR: Record<AppbarEventKey, EventStringId>
  • ATTRIBUTION: Record<"EVENT_ATTRIBUTION_UPDATE", EventStringId>
  • BASEMAP: Record<"EVENT_BASEMAP_LAYERS_UPDATE", EventStringId>
  • DETAILS_PANEL: Record<"EVENT_DETAILS_PANEL_CROSSHAIR_ENTER", EventStringId>
  • DRAWER: Record<"EVENT_DRAWER_OPEN_CLOSE", EventStringId>
  • FOOTERBAR: Record<"EVENT_FOOTERBAR_EXPAND_COLLAPSE", EventStringId>
  • FOOTER_TABS: Record<FooterTabsEventKey, EventStringId>
  • LAYER: Record<LayerEventKey, EventStringId>
  • MAP: Record<MapEventKey, EventStringId>
  • MARKER_ICON: Record<MarkerIconEventKey, EventStringId>
  • MODAL: Record<ModalEventKey, EventStringId>
  • NAVBAR: Record<NavbarEventKey, EventStringId>
  • OVERVIEW_MAP: Record<"EVENT_OVERVIEW_MAP_TOGGLE", EventStringId>
  • PANEL: Record<PanelEventKey, EventStringId>
  • SLIDER: Record<SliderEventKey, EventStringId>
  • SNACKBAR: Record<"EVENT_SNACKBAR_OPEN", EventStringId>
  • VECTOR: Record<VectorEventKey, EventStringId>
eventPhase: number

Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.

generateId: ((id?: null | string) => string) = generateId

Type declaration

    • (id?: null | string): string
    • Generate a unique id if an id was not provided

      Parameters

      • Optional id: null | string

        an id to return if it was already passed

      Returns string

      the generated id

geoUtilities: GeoUtilities
isReady: number = 0
isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

layerTypes: Record<LayerTypesKey, TypeWebLayers> = CONST_LAYER_TYPES
maps: Record<string, MapViewer> = {}
markerDefinitions: __module = MarkerDefinitions
plugin: Plugin
plugins: TypeRecordOfPlugin = {}
pluginsLoaded: boolean = false
projectNames: { LATLNG: string; LCC: string; WM: string } = PROJECTION_NAMES

Type declaration

  • LATLNG: string
  • LCC: string
  • WM: string
projection: Projection
readyCallback?: (() => void)

Type declaration

    • (): void
    • Returns void

returnValue: boolean
deprecated
srcElement: null | EventTarget
deprecated
target: null | EventTarget

Returns the object to which event is dispatched (its target).

timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

type: string

Returns the type of event, e.g. "click", "hashchange", or "submit".

Methods

  • callInitCallback(): void
  • composedPath(): EventTarget[]
  • Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.

    Returns EventTarget[]

  • initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void
  • deprecated

    Parameters

    • type: string
    • Optional bubbles: boolean
    • Optional cancelable: boolean

    Returns void

  • loadPlugin(mapIndex: number, pluginIndex: number): void
  • A function that will load each plugin on a map then checks if there are a next plugin to load

    Parameters

    • mapIndex: number

      the map index to load the plugin at

    • pluginIndex: number

      the plugin index to load

    Returns void

  • loadPlugins(): void
  • loadScript(id: string): Promise<any>
  • map(id: string): MapViewer
  • Get the instance of a map by it's ID to access API functions

    Parameters

    • id: string

      the map id

    Returns MapViewer

    map api functions

  • preventDefault(): void
  • If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

    Returns void

  • ready(callback: (() => void)): void
  • Check if map rendering / drawing is ready then run the callback function Timeout does not effect rendering speed, each map will cancel the previous timer after it renders so timing of rendering will be based on device specs.

    Parameters

    • callback: (() => void)

      a callback to make once the map has rendered

        • (): void
        • Returns void

    Returns void

  • removePlugin(pluginId: string, mapId?: string): void
  • Delete a plugin

    Parameters

    • pluginId: string

      the id of the plugin to delete

    • Optional mapId: string

      the map id to remove the plugin from (if not provided then plugin will be removed from all maps)

    Returns void

  • removePlugins(mapId: string): void
  • Delete all plugins loaded in a map

    Parameters

    • mapId: string

      the map id to remove the plugin from (if not provided then plugin will be removed from all maps)

    Returns void

  • stopImmediatePropagation(): void
  • Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

    Returns void

  • stopPropagation(): void
  • When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

    Returns void

Generated using TypeDoc