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_');
} 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf43cc-3a29c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf43cc-3a29c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?