How does Openlayer5 api get which layer the click layer behavior is on?

the problem is to click the annotation on the layer and pop up the popup, that is, the Overlay layer. How can I tell that I am currently clicking on the pop-up layer, not the vector layer or something else.

checked the api on the official website and found one that seems to be possible, no.

1, var feature = Map.forEachLayerAtPixel (evt.pixel, function (feature) {

)
      debugger
      return feature
    })
    
    vectorMap

error: Failed to execute "getImageData" on" CanvasRenderingContext2D": The canvas has been tainted by cross-origin data.


my example can get the feature on the current layer, and can tell whether it is the pop-up layer
constructor () {
state.map.on ('click', this.clickSouth);
}

.

clickSouth = (evt) = > {

    let coordinate = evt.coordinate;
    /*  */
    this.clickSouth = coordinate;
    /*  */
    let pixel = this.mapObj.map.getEventPixel(evt.originalEvent);
    let feature = this.mapObj.map.forEachFeatureAtPixel(pixel, function (feature, layer) {
        if (layer === this.mapObj.portLayer) {
        ......
        }  

}

Click (feature,layer,element,popLayer) {

    $("-sharppopup-content").html(feature.G.disInfo);
    popLayer.setPosition(this.clickSouth);
    $("-sharppopup").removeClass('popup_');
} 
Menu