This discussion is archived
1 Reply Latest reply: Dec 26, 2012 6:13 AM by evrm RSS

Google Map and Apex

928943 Newbie
Currently Being Moderated
Hello Dear Friends,

I am facing a problem to manage Google map with apex, if somebody can help me for this solution.
I am showing some marker on Google map through database and I need to get latitude and longitude where user click on apex display item to show some information about the click latitude and longitude.

Regard

Saleem Qureshi
  • 1. Re: Google Map and Apex
    evrm Pro
    Currently Being Moderated
    Hi,

    you can use the event object property latLng
    google.maps.event.addListener(<YOUR_MAP_ELEMENT>, 'click', function(event){
           alert('Latitude: ' + event.latLng.lat() + ' Longitude: ' + event.latLng.lng());
    });
    regards,
    Erik-jan

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points