i have done while draging on mouse it shows to the lat,longs and now i
have added 4 textfields in that
lat,long,addmarkar,addcooment but i need exatly like
both  lat,longs->i need to mention my textstring in   that markar can
you please help on this..
//
if (GBrowserIsCompatible())
                                  {
                                          map = new 
GMap2(document.getElementById("mapa"));
                                          map.addControl(new 
GLargeMapControl());
                                          map.addControl(new 
GMapTypeControl(3));
                                          map.setCenter( new 
GLatLng(20.593684,78.96288),5,0);
                                         
GEvent.addListener(map,'mousemove',function(point)
                                          {
                                                  
document.getElementById('latspan').innerHTML = point.lat()
                                                  
document.getElementById('lngspan').innerHTML =
point.lng()
                                          });
                                           
GEvent.addListener(map,'click',function(overlay,point)
                                          {
                                                  
document.getElementById('latclicked').value = point.lat()
                                                  
document.getElementById('longclicked').value =point.lng()
                                          });
                  }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to