Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

Properties

_activeDrawInteraction: null | Draw
_busyWorkers: number
_comp: undefined | IViewerComponent
_layerSetGroups: Dictionary<MgLayerSetGroup>
_mouseTooltip: undefined | MouseTrackingTooltip
_ovMap: undefined | OverviewMap
_select: undefined | Select
_selectTooltip: undefined | SelectedFeaturesTooltip
_supportsTouch: boolean

Indicates if touch events are supported.

_triggerZoomRequestOnMoveEnd: boolean
_zoomSelectBox: undefined | DragBox
mockMode: undefined | MapGuideMockMode = undefined

Methods

  • addBaseTileLoadFunction(mapName: string, layerName: string, func: LoadFunction): void
  • Adds a custom tile load function for a given base image tile layer.

    NOTE: Unlike other load function registrations this must be done before the viewer is mounted. New load functions added at runtime will not be recognized

    since

    0.14

    Parameters

    • mapName: string
    • layerName: string

      The base layer this function should apply for

    • func: LoadFunction

      The custom tile load function

    Returns void

  • addFeatureToHighlight(feat: undefined | OLFeature, bAppend: boolean): void
  • addHandler(eventName: string, handler: Function): void
  • addImageLoadFunction(mapName: string, layerName: string, func: LoadFunction): void
  • Adds a custom image load function for a given overlay image layer

    since

    0.14

    Parameters

    • mapName: string
    • layerName: string

      The layer this function should apply for

    • func: LoadFunction

      The custom tile load function

    Returns void

  • addImageLoaded(): void
  • addImageLoading(): void
  • addInteraction<T>(interaction: T): T
  • addOverlay(overlay: Overlay): void
  • EXPERIMENTAL: Adds the given application state subscribers

    NOTE: Calling this method will trigger a re-render of the component. Due to this quirk, calling this method again while a re-render is taking place may cause the subscriber to not actually be registered. Calling this method multiple times in succession is therefore not advised. If you need to add multiple subscribers, pass an array of the subscribers to register in a single method call.

    Parameters

    Returns string[]

  • addTileLoadFunction(mapName: string, layerName: string, func: LoadFunction): void
  • Adds a custom tile load function for a given overlay image tile layer

    since

    0.14

    Parameters

    • mapName: string
    • layerName: string

      The layer this function should apply for

    • func: LoadFunction

      The custom tile load function

    Returns void

  • cancelDigitization(): void
  • clearMouseTooltip(): void
  • clearSelection(): void
  • decrementBusyWorker(): void
  • detachFromComponent(): void
  • dismissToast(key: string): void
  • dispatch(action: any): void
  • Dispatches the given action

    remarks

    Usage outside of the react component context (eg. Plain HTML Task Pane content) should be used sparingly. In particular you should avoid trying to call this method multiple times in succession. You should call this method once in response to a DOM element event (eg. A button click)

    Parameters

    • action: any

    Returns void

  • getBaseTileSourceLoaders(mapName: string): Dictionary<LoadFunction>
  • getImageSourceLoaders(mapName: string): Dictionary<LoadFunction>
  • getMapName(): string
  • getMetersPerUnit(): number
  • getOLView(): View
  • getProjection(): ProjectionLike
  • getProviderName(): string
  • getResolution(): undefined | number
  • getScaleForExtent(bounds: Bounds): number
  • getSelectedFeatures(): undefined | Collection<Feature<Geometry>>
  • Returns the collection of selected client-side vector features. This collection is observable, so you may hold onto a reference to this collection and subscribe to events on this collection for when new features are added or removed from this collection

    Returns undefined | Collection<Feature<Geometry>>

  • getSelectionXml(selection: FeatureSet, layerIds?: string[]): string
  • getSessionId(): string
  • getSubscribers(): string[]
  • getTileSourceLoaders(mapName: string): Dictionary<LoadFunction>
  • getViewRotation(): number
  • handleHighlightHover(e: any): void
  • handleMouseTooltipMouseMove(e: any): void
  • hideAllPopups(): void
  • hideSelectedVectorFeaturesTooltip(): void
  • incrementBusyWorker(): void
  • initContext(layerSet: MgLayerSetGroup, locale?: string, overviewMapElementSelector?: () => null | Element): void
  • initialView(): void
  • isDigitizing(): boolean
  • isFeatureTooltipEnabled(): boolean
  • isMouseOverTooltip(): boolean
  • isReady(): boolean
  • isViewRotationEnabled(): boolean
  • onImageError(e: any): void
  • onKeyDown(e: any): void
  • onMapClick(e: MapBrowserEvent<any>): void
  • onMouseMove(e: any): void
  • onProviderMapClick(px: [number, number]): void
  • onZoomSelectBox(e: any): void
  • pushDrawInteraction<T>(digitizingType: string, draw: Draw, handler: DigitizerCallback<T>, prompt?: string): void
  • queryWmsFeatures(mapName: undefined | string, coord: Coordinate2D, bAppendMode: boolean): Promise<boolean>
  • removeActiveDrawInteraction(): void
  • removeHandler(eventName: string, handler: Function): void
  • removeInteraction<T>(interaction: T): void
  • removeOverlay(overlay: Overlay): void
  • removeSubscribers(names: string[]): boolean
  • resolutionToScale(resolution: number): number
  • scaleToResolution(scale: number): number
  • screenToMapUnits(x: number, y: number): [number, number]
  • selectFeaturesByExtent(geom: Polygon): void
  • setFeatureTooltipEnabled(enabled: boolean): void
  • setMouseTooltip(text: string): void
  • setToasterRef(ref: RefObject<Toaster>): void
  • setViewRotation(rotation: number): void
  • setViewRotationEnabled(enabled: boolean): void
  • showSelectedVectorFeatures(features: Collection<OLFeature>, pixel: [number, number], featureToLayerMap: [OLFeature, OLLayer][], locale?: string): void
  • toastError(iconName: string, message: string | Element): undefined | string
  • toastPrimary(iconName: string, message: string | Element): undefined | string
  • toastSuccess(iconName: string, message: string | Element): undefined | string
  • toastWarning(iconName: string, message: string | Element): undefined | string
  • updateOverviewMapElement(overviewMapElementSelector: () => null | Element): void
  • updateSize(): void
  • zoomByDelta(delta: number): void
  • zoomDelta(delta: number): void
  • zoomToExtent(extent: Bounds): void
  • zoomToView(x: number, y: number, scale: number): void

Generated using TypeDoc