Hey ,

This is a link to my map .
http://www.itwiz.co.in/maps/map_main.html

When the user clicks on the map , the position is recorded and a route
is drawn from the user position to a preset position . Also included
in this click event is the printing of the distance from the
getDistance() function . However , the first time i click on the map
somehow the getDistance() data does not show up . If I click again the
route chages accordingly and then the data shows up . This is weird
because i have included a flag to make sure that once the user selects
a source position he/she cannot select another source unless they
reload the page or click on the reset source button . The flag was
working fine till i introduced this getDistance() function .

What is going on ?

thanks ,
Jit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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