Trying to simulate mouse clicks on a open layer-3 map. I've tried the usual jquery click on co-ordinates but that does not seem to work.
What I tried:
function simulateClick(x, y) {
jQuery(document.elementFromPoint(x, y)).click();
}
simulateClick(450,820);
Does not want to click a open layers map. I want it to draw an object in case you are wondering.
Any suggestions appreciated.