Results 1 to 3 of 3
Thread: Google Maps - Get Mouse Position
Mar 3, 2011, 10:28 #1
- Join Date
- Dec 2003
- 29 Post(s)
- 0 Thread(s)
Google Maps - Get Mouse Position
I have problem that should be stupidly simple... but I seem to be a extra stupid. =p
Basically I'm implementing the Google Maps API (v3). I've set up an event so when it's right-clicked, a context menu pops up.
Now, the problem: I want to get the x/y of the mouse (so I can center the context menu). However, Google seems to have stripped this out of the MouseEvent which they send (no pageX/pageY).
So, how can I get the mouse position? (Not the LatLng, that's easy. =p)
Thanks.Xazure.Net - My Blog - About Programming and Web Development
Follow Me on Twitter!