forEachLayerAtPixel(pixel, callback, opt_options) {
    if (!this.frameState_) {
      return;
    }
    const options = opt_options || {};
    const hitTolerance =
      options.hitTolerance !== undefined ? options.hitTolerance : 0;
    const layerFilter = options.layerFilter || TRUE;
    return this.renderer_.forEachLayerAtPixel(
      pixel,
      this.frameState_,
      hitTolerance,
      callback,
      layerFilter
    );
  }
/**
   * Detect layers that have a color value at a pixel on the viewport, and
   * execute a callback with each matching layer. Layers included in the
   * detection can be configured through `opt_layerFilter`.
   *
   * Note: this may give false positives unless the map layers have had different `className`
   * properties assigned to them.
   *
   * @param {import("./pixel.js").Pixel} pixel Pixel.
   * @param {function(this: S, import("./layer/Layer.js").default, (Uint8ClampedArray|Uint8Array)): T} callback
   *     Layer callback. This callback will receive two arguments: first is the
   *     {@link module:ol/layer/Layer layer}, second argument is an array representing
   *     [R, G, B, A] pixel values (0 - 255) and will be `null` for layer types
   *     that do not currently support this argument. To stop detection, callback
   *     functions can return a truthy value.
   * @param {AtPixelOptions} [opt_options] Configuration options.
   * @return {T|undefined} Callback result, i.e. the return value of last
   * callback execution, or the first truthy callback return value.
   * @template S,T
   * @api
   */
Detect layers that have a color value at a pixel on the viewport, and
execute a callback with each matching layer. Layers included in the
detection can be configured through `opt_layerFilter`.

this may give false positives unless the map layers have had different `className`
properties assigned to them.


Detect layers that have a color value at a pixel on the viewport and execute a callback with each matching layer . Layers included in the detection can be configured through ` opt_layerFilter ` . this may give false positives unless the map layers have had different ` className ` properties assigned to them .
forEachLayerAtPixel(pixel, callback, opt_options) {
    if (!this.frameState_) {
      return;
    }
    const options = opt_options || {};
    const hitTolerance =
      options.hitTolerance !== undefined ? options.hitTolerance : 0;
    const layerFilter = options.layerFilter || TRUE;
    return this.renderer_.forEachLayerAtPixel(
      pixel,
      this.frameState_,
      hitTolerance,
      callback,
      layerFilter
    );
  }
forEachLayerAtPixel ( pixel , callback , opt_options ) { if ( ! this . frameState_ ) { return ; } const options = opt_options || { } ; const hitTolerance = options . hitTolerance !== undefined ? options . hitTolerance : 0 ; const layerFilter = options . layerFilter || TRUE ; return this . renderer_ . forEachLayerAtPixel ( pixel , this . frameState_ , hitTolerance , callback , layerFilter ) ; }
Detect layers that have a color value at a pixel on the viewport, and
 execute a callback with each matching layer.
Detect layers that have a color value at a pixel on the viewport and execute a callback with each matching layer .