Welcome to our forum and thanks for contacting us with your question!
I don't understand what exactly you want to do. Can you provide details? Do you want to change the marker direction based on the mouse movement? If you could reproduce what you already have on e.g. JSFiddle, it would be easier to help me.
Here you have the most basic demo on which to do it: https://jsfiddle.net/BlackLabel/sgn5w6qr/