I want to get the latitude and longitude from the Gmap control into textboxes

Posted by chamara on Stack Overflow See other posts from Stack Overflow or by chamara
Published on 2010-06-15T18:05:57Z Indexed on 2010/06/16 3:42 UTC
Read the original article Hit count: 176

Hi All. I tried with the following but it doesn't work

var txtlat=document.getElementById('TextBox1').value=GMap1.getCenter().lat();
var txtlong=document.getElementById('TextBox2').value=GMap1.getCenter().lng();

It gives a JavaScript error as "Object doesn't support this property or method".

How can i do this????

I really need help...

Thank you!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript