Hi I have the following webpage sample:

https://netfiles.uiuc.edu/alouchio/shared/zcoal-mines.shtml

When I click on my measure distance button, it first removes the listener I 
have in the initialize function.

I can then click on the map and then single-click to end the line, and then 
i get an alert displaying the length, and after that it hides the line. This 
is working fine. 

However, if someone mistakenly clicks on the button twice in a row, it then 
gives me 2 alerts: one with length 0 and one with the correct length.  It 
also won’t hide the polyline. I’m guessing it thinks I’ve added two 
listeners now. Is there any way around this? Thank you for any help.

-- 
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