Hi I have a listener called MyCountyListener that when the page is loaded 
you can click on anywhere in Illinois and an infowindow will popup with a 
link to that county's webpage. This works fine.

I want it so that when I click on the "Measure Distance" button below my 
map, this listener goes away, and therefore I will be able to draw a 
polyline. Right now I am only able to draw a polyline outside of Illinois. 

My page is here: https://netfiles.uiuc.edu/alouchio/shared/mines.shtml

I currently have 
google.maps.event.removeListener(MyCountyListener)
in my draw polyline function, but that is not working. 

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/Dq5pQ3KjMqsJ.
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-js-api-v3?hl=en.

Reply via email to