1 Reply Latest reply: Dec 26, 2012 8:13 AM by evrm RSS

    Google Map and Apex

    928943
      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
          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