browser-image
    Preparing search index...

    Pipeline and DRA statistics for a GpuCorrectedTileLayer over a picture tile source. Pass it as the layer's correction, and to an EnhanceControl (setSource) to drive it with the panel.

    const correction = new TileCorrection();
    const layer = new GpuCorrectedTileLayer({ source: new ImageTile({ url, crossOrigin: 'anonymous' }), correction });
    enhance.setSource(correction);

    Hierarchy

    • Observable
      • TileCorrection
    Index
    • Locks the DRA range: updateDra keeps the statistics it has instead of following the view. DRA settings still apply to the kept statistics. Unlocking lets the next updateDra take the view again.

      Parameters

      • locked: boolean

      Returns void

    • Asks the layer for new DRA statistics of what map shows: they are taken from the next frame it draws, and again once the visible tiles have loaded. Call it on the map's moveend. Does nothing when the pipeline has no autoStretch, the view has not changed, or the range is locked (TileCorrection.setDraLocked) and already has statistics.

      Parameters

      • map: Map

      Returns Promise<void>