Class PrintService

Hierarchy

  • PrintService

Properties

$http_: IHttpService
gettextCatalog_: gettextCatalog
goodnessOfFit_: number
ngeoLayerHelper_: LayerHelper
printNativeAngle_: boolean
url_: string
vectorEncoder: default

Methods

  • Cancel a report.

    Returns

    HTTP promise.

    Parameters

    • ref: string

      Print report reference.

    • Optional opt_httpConfig: IRequestShortcutConfig

      $http config object.

    Returns IHttpPromise<Object>

  • Create a report specification.

    Returns

    The print spec.

    Parameters

    • map: Map

      Map.

    • scale: number

      Scale.

    • rotation: number

      Rotation.

    • dpi: number

      DPI.

    • layout: string

      Layout.

    • format: string

      Formats.

    • customAttributes: Object

      Custom attributes.

    • Optional email: string

      Email to send the file to.

    • Optional goodnessOfFit: number

      Goodness of fit.

    Returns MapFishPrintSpec

  • Parameters

    • arr: MapFishPrintLayer[]

      Array.

    • layer: BaseLayer

      Layer.

    • resolution: number

      Resolution.

    • destinationPrintDpi: number

      The destination print DPI.

    Returns void

  • Parameters

    • map: Map

      Map.

    • scale: number

      Scale.

    • object: MapFishPrintMap

      Object.

    • destinationPrintDpi: number

      The destination print DPI.

    Returns void

  • Parameters

    • arr: MapFishPrintLayer[]

      Array.

    • layer: VectorLayer<VectorSource<Geometry>>

      Layer.

    • resolution: number

      Resolution.

    • destinationPrintDpi: number

      The destination print DPI.

    Returns void

  • Return an opacity value for the specified layer.

    Returns

    opacity Opacity value.

    Parameters

    • layer: BaseLayer

      Layer.

    Returns number

  • Get the URL of a report.

    Returns

    The report URL for this ref.

    Parameters

    • ref: string

      Print report reference.

    Returns string

  • Return the WMTS URL to use in the print spec.

    Returns

    URL.

    Parameters

    • source: WMTS

      The WMTS source.

    Returns string

Generated using TypeDoc