Simulate mouse clicks on openlayer-3?

Viewed 1025

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.

1 Answers

The link that @Chase Choi provided allows the ability to simulate a user in open layers map... Here

Related