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.