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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -