hasFeatureAtPixel(pixel, opt_options) {
    if (!this.frameState_) {
      return false;
    }
    const coordinate = this.getCoordinateFromPixelInternal(pixel);
    opt_options = opt_options !== undefined ? opt_options : {};
    const layerFilter =
      opt_options.layerFilter !== undefined ? opt_options.layerFilter : TRUE;
    const hitTolerance =
      opt_options.hitTolerance !== undefined ? opt_options.hitTolerance : 0;
    const checkWrapped = opt_options.checkWrapped !== false;
    return this.renderer_.hasFeatureAtCoordinate(
      coordinate,
      this.frameState_,
      hitTolerance,
      checkWrapped,
      layerFilter,
      null
    );
  }
/**
   * Detect if features intersect a pixel on the viewport. Layers included in the
   * detection can be configured through `opt_layerFilter`.
   * @param {import("./pixel.js").Pixel} pixel Pixel.
   * @param {AtPixelOptions} [opt_options] Optional options.
   * @return {boolean} Is there a feature at the given pixel?
   * @api
   */
Detect if features intersect a pixel on the viewport. Layers included in the
detection can be configured through `opt_layerFilter`.
Detect if features intersect a pixel on the viewport . Layers included in the detection can be configured through ` opt_layerFilter ` .
hasFeatureAtPixel(pixel, opt_options) {
    if (!this.frameState_) {
      return false;
    }
    const coordinate = this.getCoordinateFromPixelInternal(pixel);
    opt_options = opt_options !== undefined ? opt_options : {};
    const layerFilter =
      opt_options.layerFilter !== undefined ? opt_options.layerFilter : TRUE;
    const hitTolerance =
      opt_options.hitTolerance !== undefined ? opt_options.hitTolerance : 0;
    const checkWrapped = opt_options.checkWrapped !== false;
    return this.renderer_.hasFeatureAtCoordinate(
      coordinate,
      this.frameState_,
      hitTolerance,
      checkWrapped,
      layerFilter,
      null
    );
  }
hasFeatureAtPixel ( pixel , opt_options ) { if ( ! this . frameState_ ) { return false ; } const coordinate = this . getCoordinateFromPixelInternal ( pixel ) ; opt_options = opt_options !== undefined ? opt_options : { } ; const layerFilter = opt_options . layerFilter !== undefined ? opt_options . layerFilter : TRUE ; const hitTolerance = opt_options . hitTolerance !== undefined ? opt_options . hitTolerance : 0 ; const checkWrapped = opt_options . checkWrapped !== false ; return this . renderer_ . hasFeatureAtCoordinate ( coordinate , this . frameState_ , hitTolerance , checkWrapped , layerFilter , null ) ; }
Detect if features intersect a pixel on the viewport.
Detect if features intersect a pixel on the viewport .