Georeferencing API
    Preparing search index...

    Function extentToImageView

    • Image viewport covering a map extent, for "image follows map" navigation. Uses the exact inverse, skipping points where it does not converge.

      Parameters

      • fit: Fit

        Current fit in workingCrs.

      • extent: Extent

        Visible map extent in mapCrs.

      • mapCrs: string

        CRS of extent.

      • workingCrs: string

        CRS of the fit.

      • definitions: Definitions = {}

      Returns [number, number, number, number] | null

      Canonical image viewport [x, y, width, height], or null if no point maps back.