Georeferencing API
    Preparing search index...

    Function imageViewToExtent

    • Map extent covering an image viewport, for "map follows image" navigation. Samples the viewport edges through the fit, so nonlinear models are enclosed.

      Parameters

      • fit: Fit

        Current fit in workingCrs.

      • imageView: [number, number, number, number]

        Canonical image viewport [x, y, width, height].

      • workingCrs: string

        CRS of the fit.

      • mapCrs: string

        CRS of the returned extent.

      • definitions: Definitions = {}

      Returns Extent | null

      Extent in mapCrs, or null when the view leaves the projection domain.