Hello,
I want to assign the next map "click" listener when a "click" event is
set. I can get this to work in Firefox but not in IE6 (it immediately
executes both listeners):
// example of problem
google.maps.addListenerOnce(map, "click", function(event) {
var first_point = event.latLng();
google.maps.addListenerOnce(map, "click", function(event) {
var second_point = event.latLng();
var path = [first_point, second_point];
}
}
Any clues? Is nesting listeners like this incorrect?
Sincerely,
-Michael
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.