@geogirafe/lib-geoportal
    Preparing search index...

    An interface class that manages printing functionality (including legend).

    Index

    Constructors

    Properties

    customizer: BaseCustomizer
    encoder: MFPEncoder
    legendEncoder: MFPLegendEncoder

    Methods

    • Cancels a report.

      Parameters

      • printUrl: string
      • ref: string

      Returns Promise<MFPCancelResponse>

      A promise that resolves with the cancellation response.

    • Retrieves the download URL for a given request report.

      Parameters

      • requestReport: string
      • response: MFPReportResponse
      • interval: number = 1000
      • timeout: number = 30000

      Returns Promise<string>

      A promise that resolves to the download URL.

    • Calculates the extent of the paper based on the given scale and center coordinates.

      Parameters

      • pageSize: number[]
      • scale: number
      • center: number[]

      Returns Extent

      The extent of the paper.

    • Requests a print report.

      Parameters

      • printUrl: string
      • spec: MFPSpec

      Returns Promise<MFPReportResponse>

      A promise that resolves with the response from the report request.