Yes there is. But using javascript alone can be very tricky.
If you need to implement jquery then this link .
If you are talking about a real map image (like google maps or something), once you get the coordinates of the mouse, just multiply the map scale. :)
Lucas
source
to share