I have defined coordinates. I need to know if there is any way to know the layers or features that exist in those coordinates. Is that possible?
I have used the following function, but this does it with respect to the map pixels and I want with respect to some coordinates
var result = ol_interaction_Snap.prototype.snapTo.call(this, pixel, pixelCoordinate, map);
if (result.snapped) {
var p = map.getPixelFromCoordinate(pixel);
var feature = map.getFeaturesAtPixel(p);
this.dispatchEvent(new mgis_ObjectEvent("aftersnap", feature));
}
return result;