When using ‘Google maps v3 plugin for jQuery and jQuery Mobile’, how to retrieve the latitude and longitude values under the mouse pointer when clicked on the map?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Even though the click event listener is already added to the map inside the plugin, the event object returned, does not give the latLng value.
Adding the click event listener to the map object from my code, worked for me (found the solution by referring this answer).