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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -