Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PrintViewModel

Hierarchy

Index

Properties

allowedFormats

allowedFormats: string | string[]

Specify the print output file format(s) that the user can select based on the options available from the print service.

Read more...

allowedLayouts

allowedLayouts: string | string[]

Specify the print output layout(s) that the user can select based on the options available from the print service.

Read more...

declaredClass

declaredClass: string

Readonly defaultTemplates

defaultTemplates: Collection<CustomTemplate>

A collection of print templates defined on the Portal.

Read more...

destroyed

destroyed: boolean

Readonly effectivePrintServiceUrl

effectivePrintServiceUrl: string

The effective URL of the REST endpoint of the Export Web Map Task.

Read more...

extraParameters

extraParameters: any

This option allows passing extra parameters to the print (export webmap) requests.

Read more...

includeDefaultTemplates

includeDefaultTemplates: boolean

Indicates whether or not to include defaultTemplates.

Read more...

initialized

initialized: boolean

portal

portal: Portal

It is possible to search a specified portal instance's locator services.

Read more...

printServiceUrl

printServiceUrl: string

The URL of the REST endpoint of the Export Web Map Task.

Read more...

scaleEnabled

scaleEnabled: boolean

When true, scale is used in the printed map.

Read more...

Readonly state

state: "disabled" | "ready" | "error" | "initializing"

The view model's state.

Read more...

Readonly templatesInfo

templatesInfo: any

The service metadata that contains the format and layout information for the printout.

Read more...

updateDelay

updateDelay: number

The time interval in milliseconds between each job status request sent to an asynchronous GP task.

Read more...

view

view: MapView

The view from which the widget will operate.

Read more...

Methods

Protected _get

  • _get(propertyName: string): any
  • _get<T>(propertyName: string): T
  • Parameters

    • propertyName: string

    Returns any

  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

Protected _set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns PrintViewModel

destroy

  • destroy(): void
  • Returns void

get

  • get<T>(propertyName: string): T
  • get(propertyName: string): any
  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

load

  • load(): Promise<any>
  • This method should be called to load the view model's printing resources.

    Read more...

    Returns Promise<any>

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

print

  • Prints (exports) the current MapView according to selected options.

    Read more...

    Parameters

    Returns Promise<any>

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns PrintViewModel

  • Parameters

    Returns PrintViewModel

watch

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

Generated using TypeDoc