google maps - Get the coordinates when the Pegman is dropped. -


how can co-ordinates of location pegman dropped? couldn't find helpful articles here in stackoverflow , in google api. there event can captured on pegman drop?

for map try listener on click event

  google.maps.event.addlistener(map,    'click',    function(event){                 alert(event.latlng );             }); 

for streetview @ google sample (below see concept complete sample better)

 google.maps.event.addlistener(panorama, 'position_changed', function() {      alert(panorama.getposition()) ;  }); 

Comments